camera_frame_nv12_t

A frame descriptor used for NV12 frame types.

Synopsis:

#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;

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 from one row of pixels in memory to the next row of pixels in memory.

Stride is often called pitch. The stride applies to the luminance (Y) plane only.

int64_t uv_offset
The offset from the start of the Y plane to the start of UV plane in this format.

Typically, the offset is equal to the height multiplied by the stride, but may differ depending on the device.

int64_t uv_stride
The number of bytes from one row of pixels in memory to the next row of pixels in memory.

The uv_stride applies to the chrominance (UV) plane only.

Library:

libcamapi

Description:

Use this file descriptor when CAMERA_FRAMETYPE_NV12 is used for the camera_frametype_t.

Last modified: 2013-12-21

comments powered by Disqus