sensor_format_video_planar_t

Format for all planar video formats

Synopsis:

#include <sensor/sensor_api.h>
typedef struct sensor_format_video_planar_t {
    uint32_t height;
    uint32_t width;
    uint32_t y_stride;
    int32_t cb_offset;
    int32_t cb_stride;
    int32_t cr_offset;
    int32_t cr_stride;
} sensor_format_video_planar_t;

Data:

uint32_t height
The height of the frame, in pixels.
uint32_t width
The width of the frame, in pixels.
uint32_t y_stride
The number of bytes between the first pixel of a given row and the first pixel of the next row, in the memory of the luminance (Y) plane.

Stride is often called pitch.

int32_t cb_offset
The number of bytes between the first pixel of the Y-plane and the first pixel of the Cb-plane in memory.
int32_t cb_stride
The number of bytes between the first pixel of a given row and the first pixel of the next row, in the memory of the Cb-plane.
int32_t cr_offset
The number of bytes between the first pixel of the Y-plane and the first pixel of the Cr-plane in memory.
int32_t cr_stride
The number of bytes between the first pixel of a given row and the first pixel of the next row, in the memory of the Cr-plane.

Library:

libsensor