Using Jetson TX2 with JetPack 3.3 (R28.2.1),
I am trying to send YUV 4:2:2 (UYVY) video to NvEglRenderer to render to display via HDMI but
the NvEglRenderer fails with the following message(s):
[ERROR] (NvEglRenderer.cpp:393) glDrawArrays arrays failed:1285
According to Parker TRM, the video controller supports Y/Cb/Cr 4:2:2 inputs?
What should I do to make it work?
I have created a stream that captures the following to DMA Buffer from a camera source using libArgus:
NvBufferCreateParams input_params = {0};
input_params.payloadType = NvBufferPayload_SurfArray;
input_params.width = 1920;
input_params.height = 1080;
input_params.layout = NvBufferLayout_BlockLinear;
input_params.colorFormat = colorFormat;
input_params.nvbuf_tag = NvBufferTag_NONE;
NvBufferCreateEx(&dmabuf_fd, &input_params);
The captured dma buffer is then fed to the NvEglRenderer (eglRenderer)
eglRenderer->render(dmabuf_fd);
Here are the results using different colorFormat settings:
(4:2:0) NvBufferColorFormat_YUV420 : renders correctly with no error
(4:2:0) NvBufferColorFormat_NV12 : renders correctly with no error
(4:2:2) NvBufferColorFormat_UYVY : does not render and produce afore mentioned error
(RGB) NvBufferColorFormat_ARGB32 : renders correctly with no error