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