Get frames from libArgus to cv::Mat "Random black lines appearing on the Y channel "

Any body faced the issue of getting random black lines when using nvbuffer to get frames.

UniqueObj frame(iFrameConsumer->acquireFrame());
IFrame *iFrame = interface_cast

if (!iFrame)
      break;

Image *image = iFrame->getImage();
   
EGLStream::NV::IImageNativeBuffer *iImageNativeBuffer = interface_cast<EGLStream::NV::IImageNativeBuffer>(image);
int fd = iImageNativeBuffer->createNvBuffer(size,
           NvBufferColorFormat_YUV420, NvBufferLayout_Pitch, &status);
NvBufferParams params;
NvBufferGetParams(fd, &params);

Cr and Cb channel looks fine but the Y channel seems to have some random black lines appearing and going away randomly.

Any proper documentation source for libArgus ?

Hi Ttheekshana,

How do you use cv::Mat? Could you describe it in detail?

Please also share the BSP you are using. Thanks!

It is a similar topic that use NvBufferMemMap for NvBuffer.

https://devtalk.nvidia.com/default/topic/996666/jetson-tx1/msync-with-ms_sync-option-failure/post/5101903/#5101903

Not sure if you are using mmap.