public static extern nvjpegStatus nvjpegDecodeBatched( nvjpegHandle handle, nvjpegJpegState jpeg_handle, IntPtr[] data, SizeT[] lengths, nvjpegImage[] destinations, CUstream stream);
public static extern nvjpegStatus nvjpegDecodeJpeg( nvjpegHandle handle, nvjpegJpegDecoder decoder, nvjpegJpegState decoder_state, nvjpegJpegStream jpeg_bitstream, ref nvjpegImage destination, nvjpegDecodeParams decode_params, CUstream stream);
public static extern nvjpegStatus nvjpegDecodeBatchedPreAllocate( nvjpegHandle handle, nvjpegJpegState jpeg_handle, int batch_size, int width, int height, nvjpegChromaSubsampling chroma_subsampling, nvjpegOutputFormat output_format);
/// <summary> /// </summary> internal DecoderState(NvJpeg nvJpeg, JpegDecoder decoder) { _nvJpeg = nvJpeg; _decoder = decoder; _state = new nvjpegJpegState(); res = NvJpegNativeMethods.nvjpegDecoderStateCreate(nvJpeg.Handle, decoder.Decoder, ref _state); Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegDecoderStateCreate", res)); if (res != nvjpegStatus.Success) { throw new NvJpegException(res); } }
public static extern nvjpegStatus nvjpegDecodeJpegDevice( nvjpegHandle handle, nvjpegJpegDecoder decoder, nvjpegJpegState decoder_state, ref nvjpegImage destination, CUstream stream);
public static extern nvjpegStatus nvjpegDecodeJpegTransferToDevice( nvjpegHandle handle, nvjpegJpegDecoder decoder, nvjpegJpegState decoder_state, nvjpegJpegStream jpeg_stream, CUstream stream);
public static extern nvjpegStatus nvjpegDecodeJpegHost( nvjpegHandle handle, nvjpegJpegDecoder decoder, nvjpegJpegState decoder_state, nvjpegDecodeParams decode_params, nvjpegJpegStream jpeg_stream);
public static extern nvjpegStatus nvjpegDecoderStateCreate(nvjpegHandle nvjpeg_handle, nvjpegJpegDecoder decoder_handle, ref nvjpegJpegState decoder_state);
public static extern nvjpegStatus nvjpegStateAttachDeviceBuffer(nvjpegJpegState decoder_state, nvjpegBufferDevice device_buffer);
public static extern nvjpegStatus nvjpegStateAttachPinnedBuffer(nvjpegJpegState decoder_state, nvjpegBufferPinned pinned_buffer);
public static extern nvjpegStatus nvjpegDecodeBatchedInitialize( nvjpegHandle handle, nvjpegJpegState jpeg_handle, int batch_size, int max_cpuhreads, nvjpegOutputFormat output_format);
public static extern nvjpegStatus nvjpegDecode(nvjpegHandle handle, nvjpegJpegState jpeg_handle, IntPtr data, SizeT length, nvjpegOutputFormat output_format, ref nvjpegImage destination, CUstream stream);
public static extern nvjpegStatus nvjpegJpegStateDestroy(nvjpegJpegState jpeg_handle);
public static extern nvjpegStatus nvjpegJpegStateCreate(nvjpegHandle handle, ref nvjpegJpegState jpeg_handle);