Пример #1
0
 public static extern nvjpegStatus nvjpegDecodeJpeg(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegJpegStream jpeg_bitstream,
     ref nvjpegImage destination,
     nvjpegDecodeParams decode_params,
     CUstream stream);
Пример #2
0
 /// <summary>
 /// </summary>
 internal JpegDecoder(NvJpeg nvJpeg, nvjpegBackend backend)
 {
     _nvJpeg  = nvJpeg;
     _decoder = new nvjpegJpegDecoder();
     res      = NvJpegNativeMethods.nvjpegDecoderCreate(nvJpeg.Handle, backend, ref _decoder);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegDecoderCreate", res));
     if (res != nvjpegStatus.Success)
     {
         throw new NvJpegException(res);
     }
 }
Пример #3
0
 public static extern nvjpegStatus nvjpegDecodeJpegDevice(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     ref nvjpegImage destination,
     CUstream stream);
Пример #4
0
 public static extern nvjpegStatus nvjpegDecodeJpegTransferToDevice(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Пример #5
0
 public static extern nvjpegStatus nvjpegDecodeJpegHost(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegDecodeParams decode_params,
     nvjpegJpegStream jpeg_stream);
Пример #6
0
 public static extern nvjpegStatus nvjpegDecoderStateCreate(nvjpegHandle nvjpeg_handle,
                                                            nvjpegJpegDecoder decoder_handle,
                                                            ref nvjpegJpegState decoder_state);
Пример #7
0
 public static extern nvjpegStatus nvjpegDecoderJpegSupported(nvjpegJpegDecoder decoder_handle,
                                                              nvjpegJpegStream jpeg_stream,
                                                              nvjpegDecodeParams decode_params,
                                                              ref int is_supported);
Пример #8
0
 public static extern nvjpegStatus nvjpegDecoderDestroy(nvjpegJpegDecoder decoder_handle);
Пример #9
0
 public static extern nvjpegStatus nvjpegDecoderCreate(nvjpegHandle nvjpeg_handle,
                                                       nvjpegBackend implementation,
                                                       ref nvjpegJpegDecoder decoder_handle);