NvMedia Image Block-Linear
This example reads an image surface that represents a YUV 444 8-bit block-linear planar surface.
NvMediaImageSurfaceMap surfaceMap;
NvMediaStatus status;
NvMediaImageLock(image,
NVMEDIA_IMAGE_ACCESS_READ,
&surfaceMap);
status = NvMediaImageGetBits(image,
NULL,
(void **) *buf,
*pitches);