How to get the U and V of the composited frame in the sample “13_multi_camera”?

I mapped the composited frame to an EGLimage, then run Handle_EGLimage function in NvCudaProc.cpp.

I can get the Y plane at eglFrame.frame.pPitch[0], but got garbage data at eglFrame.frame.pPitch[1]. How can I get the data for U and V?

If the NvBufSurface buffer is in YUV420, please check pitch[1],width[1],height[1] in NvBufSurfacePlaneParams for U plane. And pitch[2],width[2],height[2] for V plane.

If you can get correct Y plane, the issue should be pitch of U/V plane is not considered while accessing the plane data.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.