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 .. flat-table:: struct v4l2_plane_pix_format
29 - Maximum size in bytes required for image data in this plane.
37 - Distance in bytes between the leftmost pixels in two adjacent
38 lines. See struct :ref:`v4l2_pix_format <v4l2-pix-format>`.
46 - Reserved for future extensions. Should be zeroed by drivers and
51 .. _v4l2-pix-format-mplane:
53 .. flat-table:: struct v4l2_pix_format_mplane
65 - Image width in pixels. See struct
66 :ref:`v4l2_pix_format <v4l2-pix-format>`.
74 - Image height in pixels. See struct
75 :ref:`v4l2_pix_format <v4l2-pix-format>`.
83 - The pixel format. Both single- and multi-planar four character
88 - enum :ref:`v4l2_field <v4l2-field>`
92 - See struct :ref:`v4l2_pix_format <v4l2-pix-format>`.
96 - enum :ref:`v4l2_colorspace <v4l2-colorspace>`
100 - See struct :ref:`v4l2_pix_format <v4l2-pix-format>`.
104 - struct :ref:`v4l2_plane_pix_format <v4l2-plane-pix-format>`
106 - ``plane_fmt[VIDEO_MAX_PLANES]``
108 - An array of structures describing format of each plane this pixel
109 format consists of. The number of valid entries in this array has
110 to be put in the ``num_planes`` field.
118 - Number of planes (i.e. separate memory buffers) for this format
119 and the number of valid entries in the ``plane_fmt`` array.
127 - Flags set by the application or driver, see :ref:`format-flags`.
131 - enum :ref:`v4l2_ycbcr_encoding <v4l2-ycbcr-encoding>`
135 - This information supplements the ``colorspace`` and must be set by
136 the driver for capture streams and by the application for output
137 streams, see :ref:`colorspaces`.
141 - enum :ref:`v4l2_quantization <v4l2-quantization>`
145 - This information supplements the ``colorspace`` and must be set by
146 the driver for capture streams and by the application for output
147 streams, see :ref:`colorspaces`.
151 - enum :ref:`v4l2_xfer_func <v4l2-xfer-func>`
155 - This information supplements the ``colorspace`` and must be set by
156 the driver for capture streams and by the application for output
157 streams, see :ref:`colorspaces`.
165 - Reserved for future extensions. Should be zeroed by drivers and