Regarding access to decoded yuv

Hello,

Can I access directly decoded yuv using mmap?

Thank you.

Hi,
This looks to be duplicate of


The decoded buffers are in blocklinear. If you configure MMAP in capture plane, it calls the function internally:

blocklinear buffer -> NvBufferTransform() -> pitchlinear buffer -> NvBufferMemMap()

MMAP and DMABUF actually work identically.

1 Like

Can you tell me what blocklinear and pitchlinear mean?

As expected, NvBuffer is two-dimensional in shape.
Since the cpu buffer is one-dimensional, does this process go through?

If you can explain it with pictures, I think it will be quick to understand.

Hi,
For data order of pitch linear format, please check
https://docs.microsoft.com/en-us/windows/win32/medfound/recommended-8-bit-yuv-formats-for-video-rendering#420-formats-12-bits-per-pixel
NV12 is one Y plane and one UV-interleaved plane.

Detail about block linear is not open for public. Please always convert to pitch linear buffer for your usecase.