A frame descriptor used for NV12 frame types.
#include <camera/camera_api.h>
typedef struct {
uint32_t height ;
uint32_t width ;
uint32_t stride ;
int64_t uv_offset ;
int64_t uv_stride ;
}camera_frame_nv12_t;
BlackBerry 10.0.0
Stride is often called pitch. For more information, see the uv_stride member.
On a device where there is no gap between the Y and UV planes, the uv_offset would be height times stride bytes. This equivalence is not guaranteed across all devices, so it is important to observe the uv_offset value rather than attempting to compute the offset.
For more information, see the stride member.
Use this file descriptor when CAMERA_FRAMETYPE_NV12 is reported as the camera_frametype_t.