Example #1
0
 public static extern nvjpegStatus nvjpegDecodeBatched(
     nvjpegHandle handle,
     nvjpegJpegState jpeg_handle,
     IntPtr[] data,
     SizeT[] lengths,
     nvjpegImage[] destinations,
     CUstream stream);
Example #2
0
 public static extern nvjpegStatus nvjpegDecodeJpeg(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegJpegStream jpeg_bitstream,
     ref nvjpegImage destination,
     nvjpegDecodeParams decode_params,
     CUstream stream);
Example #3
0
 public static extern nvjpegStatus nvjpegDecodeBatchedPreAllocate(
     nvjpegHandle handle,
     nvjpegJpegState jpeg_handle,
     int batch_size,
     int width,
     int height,
     nvjpegChromaSubsampling chroma_subsampling,
     nvjpegOutputFormat output_format);
Example #4
0
 /// <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);
     }
 }
Example #5
0
 public static extern nvjpegStatus nvjpegDecodeJpegDevice(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     ref nvjpegImage destination,
     CUstream stream);
Example #6
0
 public static extern nvjpegStatus nvjpegDecodeJpegTransferToDevice(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Example #7
0
 public static extern nvjpegStatus nvjpegDecodeJpegHost(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegDecodeParams decode_params,
     nvjpegJpegStream jpeg_stream);
Example #8
0
 public static extern nvjpegStatus nvjpegDecoderStateCreate(nvjpegHandle nvjpeg_handle,
                                                            nvjpegJpegDecoder decoder_handle,
                                                            ref nvjpegJpegState decoder_state);
Example #9
0
 public static extern nvjpegStatus nvjpegStateAttachDeviceBuffer(nvjpegJpegState decoder_state,
                                                                 nvjpegBufferDevice device_buffer);
Example #10
0
 public static extern nvjpegStatus nvjpegStateAttachPinnedBuffer(nvjpegJpegState decoder_state,
                                                                 nvjpegBufferPinned pinned_buffer);
Example #11
0
 public static extern nvjpegStatus nvjpegDecodeBatchedInitialize(
     nvjpegHandle handle,
     nvjpegJpegState jpeg_handle,
     int batch_size,
     int max_cpuhreads,
     nvjpegOutputFormat output_format);
Example #12
0
 public static extern nvjpegStatus nvjpegDecode(nvjpegHandle handle, nvjpegJpegState jpeg_handle, IntPtr data,
                                                SizeT length, nvjpegOutputFormat output_format, ref nvjpegImage destination, CUstream stream);
Example #13
0
 public static extern nvjpegStatus nvjpegJpegStateDestroy(nvjpegJpegState jpeg_handle);
Example #14
0
 public static extern nvjpegStatus nvjpegJpegStateCreate(nvjpegHandle handle, ref nvjpegJpegState jpeg_handle);