Beispiel #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);
Beispiel #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);
Beispiel #3
0
 /// <summary>
 /// </summary>
 internal EncoderParams(NvJpeg nvJpeg, CudaStream stream)
 {
     _nvJpeg = nvJpeg;
     _params = new nvjpegEncoderParams();
     res     = NvJpegNativeMethods.nvjpegEncoderParamsCreate(nvJpeg.Handle, ref _params, stream.Stream);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegEncoderParamsCreate", res));
     if (res != nvjpegStatus.Success)
     {
         throw new NvJpegException(res);
     }
 }
Beispiel #4
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyHuffmanTables(
     nvjpegEncoderState encoder_state,
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Beispiel #5
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyQuantizationTables(
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Beispiel #6
0
 public static extern nvjpegStatus nvjpegEncoderParamsCopyMetadata(
     nvjpegEncoderState encoder_state,
     nvjpegEncoderParams encode_params,
     nvjpegJpegStream jpeg_stream,
     CUstream stream);
Beispiel #7
0
 public static extern nvjpegStatus nvjpegEncodeGetBufferSize(
     nvjpegHandle handle,
     nvjpegEncoderParams encoder_params,
     int image_width,
     int image_height,
     ref SizeT max_stream_length);
Beispiel #8
0
 public static extern nvjpegStatus nvjpegEncoderParamsSetSamplingFactors(
     nvjpegEncoderParams encoder_params,
     nvjpegChromaSubsampling chroma_subsampling,
     CUstream stream);
Beispiel #9
0
 public static extern nvjpegStatus nvjpegEncoderParamsSetOptimizedHuffman(
     nvjpegEncoderParams encoder_params,
     int optimized,
     CUstream stream);
Beispiel #10
0
 public static extern nvjpegStatus nvjpegEncoderParamsSetEncoding(
     nvjpegEncoderParams encoder_params,
     nvjpegJpegEncoding etype,
     CUstream stream);
Beispiel #11
0
 public static extern nvjpegStatus nvjpegEncoderParamsSetQuality(
     nvjpegEncoderParams encoder_params,
     int quality,
     CUstream stream);
Beispiel #12
0
 public static extern nvjpegStatus nvjpegEncoderParamsDestroy(nvjpegEncoderParams encoder_params);
Beispiel #13
0
 public static extern nvjpegStatus nvjpegEncoderParamsCreate(
     nvjpegHandle handle,
     ref nvjpegEncoderParams encoder_params,
     CUstream stream);