| Updated: October 28, 2024 |
Format for semi-planar video
#include <sensor/sensor_api.h>
typedef struct sensor_format_video_semiplanar_t {
uint32_t height;
uint32_t width;
uint32_t stride;
int64_t chroma_offset;
int64_t chroma_stride;
} sensor_format_video_semiplanar_t;
Stride is often called pitch.
On a device where there isn't a gap between the Y-plane and chroma-plane, the chroma_offset is height times stride bytes.
Stride is often called pitch.
This format is used for semi-planar video where luminance and chrominance information is stored in two separate planes.