I’m using NvMediaImageGetBits on a YUV420 plane that was created with NVM_SURF_FMT_SET_ATTR_YUV(surfFormatAttrs,YUV,420,SEMI_PLANAR,UINT,16,BL);
with the color type NVM_SURF_ATTR_COLOR_STD_REC709_ER on a Pegasus using 18.104.22.168, streamed from a GMSL camera.
Locking the image returns the expected number of planes (2) with the expected pitch.
Trying to manually decode the image it doesn’t seem to be UV pairs:
When assuming UV tuples, the color information is doubled in one line. Using width/2 makes the color channel correspond to items in the scene. But then the second plane is missing (verified with a red target; the blue channel is missing). Tried different offsets etc.
The image looks fine on the monitor when using the ipp_raw examples; saving it yields the same wrong image plane result.