Multi-planar format structures
The struct v4l2_plane_pix_format structures define size and layout for each of the planes in a multi-planar format. The struct v4l2_pix_format_mplane structure contains information common to all planes (such as image width and height) and an array of struct v4l2_plane_pix_format structures, describing all planes of that format.
v4l2_plane_pix_format
|
__u32 |
|
Maximum size in bytes required for image data in this plane, set by the driver. When the image consists of variable length compressed data this is the number of bytes required by the codec to support the worst-case compression scenario. The driver will set the value for uncompressed images. Clients are allowed to set the sizeimage field for variable length compressed data flagged with |
|
__u32 |
|
Distance in bytes between the leftmost pixels in two adjacent lines. See struct |
|
__u16 |
|
Reserved for future extensions. Should be zeroed by drivers and applications. |
v4l2_pix_format_mplane
|
__u32 |
|
Image width in pixels. See struct |
|
__u32 |
|
Image height in pixels. See struct |
|
__u32 |
|
The pixel format. Both single- and multi-planar four character codes can be used. |
|
__u32 |
|
Field order, from enum |
|
__u32 |
|
Colorspace encoding, from enum |
|
struct |
|
An array of structures describing format of each plane this pixel format consists of. The number of valid entries in this array has to be put in the |
|
__u8 |
|
Number of planes (i.e. separate memory buffers) for this format and the number of valid entries in the |
|
__u8 |
|
Flags set by the application or driver, see format-flags. |
|
union { |
(anonymous) |
|
|
__u8 |
|
Y'CbCr encoding, from enum |
|
__u8 |
|
HSV encoding, from enum |
|
} |
||
|
__u8 |
|
Quantization range, from enum |
|
__u8 |
|
Transfer function, from enum |
|
__u8 |
|
Reserved for future extensions. Should be zeroed by drivers and applications. |