Exemplo n.º 1
0
 public void DecodeBatched(IntPtr[] data, SizeT[] lengths, nvjpegImage[] destinations, nvjpegDecodeParams[] decodeParams, CUstream stream)
 {
     res = NvJpegNativeMethods.nvjpegDecodeBatchedEx(_nvJpeg.Handle, _state, data, lengths, destinations, decodeParams, stream);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegDecodeBatchedEx", res));
     if (res != nvjpegStatus.Success)
     {
         throw new NvJpegException(res);
     }
 }