Esempio n. 1
0
 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);
Esempio n. 2
0
 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);
Esempio n. 3
0
 /// <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);
     }
 }
Esempio n. 4
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyHuffmanTables(
     nvjpegEncoderState encoder_state,
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Esempio n. 5
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyMetadata(
     nvjpegEncoderState encoder_state,
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Esempio n. 6
0
 public static extern nvjpegStatus nvjpegEncodeRetrieveBitstream(
     nvjpegHandle handle,
     nvjpegEncoderState encoder_state,
     IntPtr data,
     ref SizeT length,
     CUstream stream);
Esempio n. 7
0
 public static extern nvjpegStatus nvjpegEncoderStateDestroy(nvjpegEncoderState encoder_state);
Esempio n. 8
0
 public static extern nvjpegStatus nvjpegEncoderStateCreate(
     nvjpegHandle handle,
     ref nvjpegEncoderState encoder_state,
     CUstream stream);