Exemplo n.º 1
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);
     }
 }