Esempio n. 1
0
 // set to desired ROI. set to (0, 0, -1, -1) to disable ROI decode (decode whole image)
 public void SetROI(int offset_x, int offset_y, int roi_width, int roi_height)
 {
     res = NvJpegNativeMethods.nvjpegDecodeParamsSetROI(_params, offset_x, offset_y, roi_width, roi_height);
     Debug.WriteLine(String.Format("{0:G}, {1}: {2}", DateTime.Now, "nvjpegDecodeParamsSetROI", res));
     if (res != nvjpegStatus.Success)
     {
         throw new NvJpegException(res);
     }
 }