How to build nvv4l2camerasrc which support YUV420 and NV12

I’d like to add YUV420 and NV12 support to nvv4l2camerasrc.
But I’m not familiar with the NvBuffer.
Could you show us how I should modify the gstnvv4l2camerasrc.cpp ?

Do yo use USB cameras? Would like to know which type of cameras you are using.

For YUV422 formats, it is single plane and no need to consider alignment in most cases. But for YUV420 and NV12, would need to consider data alignment in most cases. this would need to check if the camera source can generate frame data in desired alignment.

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