Exemple #1
0
 public static extern nvjpegStatus nvjpegJpegStreamParse(
     nvjpegHandle handle,
     byte[] data,
     SizeT length,
     int save_metadata,
     int save_stream,
     nvjpegJpegStream jpeg_stream);
Exemple #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);
Exemple #3
0
 /// <summary>
 /// </summary>
 internal JpegStream(NvJpeg nvJpeg)
 {
     _nvJpeg = nvJpeg;
     _stream = new nvjpegJpegStream();
     res     = NvJpegNativeMethods.nvjpegJpegStreamCreate(nvJpeg.Handle, ref _stream);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegJpegStreamCreate", res));
     if (res != nvjpegStatus.Success)
     {
         throw new NvJpegException(res);
     }
 }
Exemple #4
0
 public static extern nvjpegStatus nvjpegDecodeJpegHost(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegDecodeParams decode_params,
     nvjpegJpegStream jpeg_stream);
Exemple #5
0
 public static extern nvjpegStatus nvjpegDecodeBatchedSupportedEx(nvjpegHandle handle,
                                                                  nvjpegJpegStream jpeg_stream,
                                                                  nvjpegDecodeParams decode_params,
                                                                  ref int is_supported);
Exemple #6
0
 public static extern nvjpegStatus nvjpegDecodeBatchedSupported(nvjpegHandle handle,
                                                                nvjpegJpegStream jpeg_stream,
                                                                ref int is_supported);
Exemple #7
0
 public static extern nvjpegStatus nvjpegDecoderJpegSupported(nvjpegJpegDecoder decoder_handle,
                                                              nvjpegJpegStream jpeg_stream,
                                                              nvjpegDecodeParams decode_params,
                                                              ref int is_supported);
Exemple #8
0
 public static extern nvjpegStatus nvjpegJpegStreamCreate(
     nvjpegHandle handle,
     ref nvjpegJpegStream jpeg_stream);
Exemple #9
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyQuantizationTables(
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Exemple #10
0
 public static extern nvjpegStatus nvjpegJpegStreamGetComponentsNum(
     nvjpegJpegStream jpeg_stream,
     ref uint components_num);
Exemple #11
0
 public static extern nvjpegStatus nvjpegJpegStreamGetFrameDimensions(
     nvjpegJpegStream jpeg_stream,
     ref uint width,
     ref uint height);
Exemple #12
0
 public static extern nvjpegStatus nvjpegJpegStreamGetJpegEncoding(
     nvjpegJpegStream jpeg_stream,
     ref nvjpegJpegEncoding jpeg_encoding);
Exemple #13
0
 public static extern nvjpegStatus nvjpegJpegStreamParseHeader(
     nvjpegHandle handle,
     byte[] data,
     SizeT length,
     nvjpegJpegStream jpeg_stream);
Exemple #14
0
 public static extern nvjpegStatus nvjpegJpegStreamDestroy(nvjpegJpegStream jpeg_stream);
Exemple #15
0
 public static extern nvjpegStatus nvjpegDecodeJpegTransferToDevice(
     nvjpegHandle handle,
     nvjpegJpegDecoder decoder,
     nvjpegJpegState decoder_state,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Exemple #16
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyMetadata(
     nvjpegEncoderState encoder_state,
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Exemple #17
0
 public static extern nvjpegStatus nvjpegJpegStreamGetComponentDimensions(
     nvjpegJpegStream jpeg_stream,
     uint component,
     ref uint width,
     ref uint height);
Exemple #18
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyHuffmanTables(
     nvjpegEncoderState encoder_state,
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Exemple #19
0
 public static extern nvjpegStatus nvjpegJpegStreamGetChromaSubsampling(
     nvjpegJpegStream jpeg_stream,
     ref nvjpegChromaSubsampling chroma_subsampling);