Hi,
For certain resolutions, pitch is not equivalent to width in NvBufSurface due to data alignment of hardware DMA buffer. Please check if your source can be adjusted to fit the data alignment of NvBufSurface. If yes, you can capture frame data into NvBufSurface directly.
Interesting. So “source can be adjusted” would mean something like choosing a different X-resolution (width) that matches the pitch of the NvBufSurface?
Is there a reason it’s specific to greyscale images?