1 .. -*- coding: utf-8; mode: rst -*-
3 ******************************
4 Multi-planar format structures
5 ******************************
7 The :ref:`struct v4l2_plane_pix_format <v4l2-plane-pix-format>` structures define size
8 and layout for each of the planes in a multi-planar format. The
9 :ref:`struct v4l2_pix_format_mplane <v4l2-pix-format-mplane>` structure contains
10 information common to all planes (such as image width and height) and an
11 array of :ref:`struct v4l2_plane_pix_format <v4l2-plane-pix-format>` structures,
12 describing all planes of that format.
15 .. _v4l2-plane-pix-format:
17 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
19 .. flat-table:: struct v4l2_plane_pix_format
31 - Maximum size in bytes required for image data in this plane.
39 - Distance in bytes between the leftmost pixels in two adjacent
40 lines. See struct :ref:`v4l2_pix_format <v4l2-pix-format>`.
48 - Reserved for future extensions. Should be zeroed by drivers and
53 .. _v4l2-pix-format-mplane:
55 .. tabularcolumns:: |p{4.4cm}|p{4.4cm}|p{8.7cm}|
57 .. flat-table:: struct v4l2_pix_format_mplane
69 - Image width in pixels. See struct
70 :ref:`v4l2_pix_format <v4l2-pix-format>`.
78 - Image height in pixels. See struct
79 :ref:`v4l2_pix_format <v4l2-pix-format>`.
87 - The pixel format. Both single- and multi-planar four character
92 - enum :ref:`v4l2_field <v4l2-field>`
96 - See struct :ref:`v4l2_pix_format <v4l2-pix-format>`.
100 - enum :ref:`v4l2_colorspace <v4l2-colorspace>`
104 - See struct :ref:`v4l2_pix_format <v4l2-pix-format>`.
108 - struct :ref:`v4l2_plane_pix_format <v4l2-plane-pix-format>`
110 - ``plane_fmt[VIDEO_MAX_PLANES]``
112 - An array of structures describing format of each plane this pixel
113 format consists of. The number of valid entries in this array has
114 to be put in the ``num_planes`` field.
122 - Number of planes (i.e. separate memory buffers) for this format
123 and the number of valid entries in the ``plane_fmt`` array.
131 - Flags set by the application or driver, see :ref:`format-flags`.
135 - enum :ref:`v4l2_ycbcr_encoding <v4l2-ycbcr-encoding>`
139 - This information supplements the ``colorspace`` and must be set by
140 the driver for capture streams and by the application for output
141 streams, see :ref:`colorspaces`.
145 - enum :ref:`v4l2_quantization <v4l2-quantization>`
149 - This information supplements the ``colorspace`` and must be set by
150 the driver for capture streams and by the application for output
151 streams, see :ref:`colorspaces`.
155 - enum :ref:`v4l2_xfer_func <v4l2-xfer-func>`
159 - This information supplements the ``colorspace`` and must be set by
160 the driver for capture streams and by the application for output
161 streams, see :ref:`colorspaces`.
169 - Reserved for future extensions. Should be zeroed by drivers and