YUV camera(5.4M) preview issue

Hi,
There is constraint in data alignment, for width = 2880, it is aligned to pitch = 2944. Please check if your source can output width = 2944 or 2816. If not, you would need to capture frame data to CPU buffer first and then copy to NvBuffer. The buffer copy may impact performance.