camera_frame_nv21_t
A frame descriptor used for NV21 and NV61 semi-planar frame types
Synopsis:
#include <camera/camera_api.h>typedef struct camera_frame_nv21_t {
uint32_t height;
uint32_t width;
uint32_t stride;
int64_t vu_offset;
int64_t vu_stride;
} camera_frame_nv21_t;Data:
- uint32_t height
- The height of the frame in pixels.
- uint32_t width
- The width of the frame in pixels.
- uint32_t stride
- The number of bytes between the first pixel of the first row in memory and the first pixel of the second row in memory of the luminance (Y) plane.
Stride is often called pitch. For more information, see the
vu_stridemember. - int64_t vu_offset
- The number of bytes between the first pixel of the Y plane in memory and the first pixel of the VU plane in memory.
On a device where there is no gap between the Y and VU planes, the vu_offset would be height times stride bytes. This equivalence is not guaranteed across all devices, so it is important to observe the vu_offset value rather than attempting to compute the offset.
- int64_t vu_stride
- The number of bytes between the first pixel of the first row in memory and the first pixel of the second row in memory of the chrominance (VU) plane.
For more information, see the
stridemember.
Library:
libcamapiDescription:
You can use this frame descriptor when CAMERA_FRAMETYPE_NV21 or CAMERA_FRAMETYPE_NV61 is reported as the camera_frametype_t.
Page updated:
