public static extern nvjpegStatus nvjpegEncodeImage( nvjpegHandle handle, nvjpegEncoderState encoder_state, nvjpegEncoderParams encoder_params, ref nvjpegImage source, nvjpegInputFormat input_format, int image_width, int image_height, CUstream stream);
public static extern nvjpegStatus nvjpegEncodeYUV( nvjpegHandle handle, nvjpegEncoderState encoder_state, nvjpegEncoderParams encoder_params, ref nvjpegImage source, nvjpegChromaSubsampling chroma_subsampling, int image_width, int image_height, CUstream stream);
/// <summary> /// </summary> internal EncoderState(NvJpeg nvJpeg, CudaStream stream) { _nvJpeg = nvJpeg; _state = new nvjpegEncoderState(); res = NvJpegNativeMethods.nvjpegEncoderStateCreate(nvJpeg.Handle, ref _state, stream.Stream); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegEncoderStateCreate", res)); if (res != nvjpegStatus.Success) { throw new NvJpegException(res); } }
public static extern nvjpegStatus nvjpegEncoderParamsCopyHuffmanTables( nvjpegEncoderState encoder_state, nvjpegEncoderParams encode_params, nvjpegJpegStream jpeg_stream, CUstream stream);
public static extern nvjpegStatus nvjpegEncoderParamsCopyMetadata( nvjpegEncoderState encoder_state, nvjpegEncoderParams encode_params, nvjpegJpegStream jpeg_stream, CUstream stream);
public static extern nvjpegStatus nvjpegEncodeRetrieveBitstream( nvjpegHandle handle, nvjpegEncoderState encoder_state, IntPtr data, ref SizeT length, CUstream stream);
public static extern nvjpegStatus nvjpegEncoderStateDestroy(nvjpegEncoderState encoder_state);
public static extern nvjpegStatus nvjpegEncoderStateCreate( nvjpegHandle handle, ref nvjpegEncoderState encoder_state, CUstream stream);