Exemple #1
0
 public void AttachBuffer(BufferPinned buffer)
 {
     res = NvJpegNativeMethods.nvjpegStateAttachPinnedBuffer(_state, buffer.Buffer);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegStateAttachPinnedBuffer", res));
     if (res != nvjpegStatus.Success)
     {
         throw new NvJpegException(res);
     }
 }