1 .. SPDX-License-Identifier: GPL-2.0 OR GFDL-1.1-no-invariants-or-later
3 ********************************************************************************************************************************************************************************************************************************************************************************
4 V4L2_META_FMT_GENERIC_8 ('MET8'), V4L2_META_FMT_GENERIC_CSI2_10 ('MC1A'), V4L2_META_FMT_GENERIC_CSI2_12 ('MC1C'), V4L2_META_FMT_GENERIC_CSI2_14 ('MC1E'), V4L2_META_FMT_GENERIC_CSI2_16 ('MC1G'), V4L2_META_FMT_GENERIC_CSI2_20 ('MC1K'), V4L2_META_FMT_GENERIC_CSI2_24 ('MC1O')
5 ********************************************************************************************************************************************************************************************************************************************************************************
8 Generic line-based metadata formats
14 These generic line-based metadata formats define the memory layout of the data
15 without defining the format or meaning of the metadata itself.
17 .. _v4l2-meta-fmt-generic-8:
19 V4L2_META_FMT_GENERIC_8
20 -----------------------
22 The V4L2_META_FMT_GENERIC_8 format is a plain 8-bit metadata format. This format
23 is used on CSI-2 for 8 bits per :term:`Data Unit`.
25 Additionally it is used for 16 bits per Data Unit when two bytes of metadata are
26 packed into one 16-bit Data Unit. Otherwise the 16 bits per pixel dataformat is
27 :ref:`V4L2_META_FMT_GENERIC_CSI2_16 <v4l2-meta-fmt-generic-csi2-16>`.
29 **Byte Order Of V4L2_META_FMT_GENERIC_8.**
30 Each cell is one byte. "M" denotes a byte of metadata.
32 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|
34 .. flat-table:: Sample 4x2 Metadata Frame
50 .. _v4l2-meta-fmt-generic-csi2-10:
52 V4L2_META_FMT_GENERIC_CSI2_10
53 -----------------------------
55 V4L2_META_FMT_GENERIC_CSI2_10 contains 8-bit generic metadata packed in 10-bit
56 Data Units, with one padding byte after every four bytes of metadata. This
57 format is typically used by CSI-2 receivers with a source that transmits
58 MEDIA_BUS_FMT_META_10 and the CSI-2 receiver writes the received data to memory
61 The packing of the data follows the MIPI CSI-2 specification and the padding of
62 the data is defined in the MIPI CCS specification.
64 This format is also used in conjunction with 20 bits per :term:`Data Unit`
65 formats that pack two bytes of metadata into one Data Unit. Otherwise the
66 20 bits per pixel dataformat is :ref:`V4L2_META_FMT_GENERIC_CSI2_20
67 <v4l2-meta-fmt-generic-csi2-20>`.
69 This format is little endian.
71 **Byte Order Of V4L2_META_FMT_GENERIC_CSI2_10.**
72 Each cell is one byte. "M" denotes a byte of metadata and "x" a byte of padding.
74 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{.8cm}|
76 .. flat-table:: Sample 4x2 Metadata Frame
94 .. _v4l2-meta-fmt-generic-csi2-12:
96 V4L2_META_FMT_GENERIC_CSI2_12
97 -----------------------------
99 V4L2_META_FMT_GENERIC_CSI2_12 contains 8-bit generic metadata packed in 12-bit
100 Data Units, with one padding byte after every two bytes of metadata. This format
101 is typically used by CSI-2 receivers with a source that transmits
102 MEDIA_BUS_FMT_META_12 and the CSI-2 receiver writes the received data to memory
105 The packing of the data follows the MIPI CSI-2 specification and the padding of
106 the data is defined in the MIPI CCS specification.
108 This format is also used in conjunction with 24 bits per :term:`Data Unit`
109 formats that pack two bytes of metadata into one Data Unit. Otherwise the
110 24 bits per pixel dataformat is :ref:`V4L2_META_FMT_GENERIC_CSI2_24
111 <v4l2-meta-fmt-generic-csi2-24>`.
113 This format is little endian.
115 **Byte Order Of V4L2_META_FMT_GENERIC_CSI2_12.**
116 Each cell is one byte. "M" denotes a byte of metadata and "x" a byte of padding.
118 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{.8cm}|p{.8cm}|
120 .. flat-table:: Sample 4x2 Metadata Frame
123 :widths: 12 8 8 8 8 8 8
140 .. _v4l2-meta-fmt-generic-csi2-14:
142 V4L2_META_FMT_GENERIC_CSI2_14
143 -----------------------------
145 V4L2_META_FMT_GENERIC_CSI2_14 contains 8-bit generic metadata packed in 14-bit
146 Data Units, with three padding bytes after every four bytes of metadata. This
147 format is typically used by CSI-2 receivers with a source that transmits
148 MEDIA_BUS_FMT_META_14 and the CSI-2 receiver writes the received data to memory
151 The packing of the data follows the MIPI CSI-2 specification and the padding of
152 the data is defined in the MIPI CCS specification.
154 This format is little endian.
156 **Byte Order Of V4L2_META_FMT_GENERIC_CSI2_14.**
157 Each cell is one byte. "M" denotes a byte of metadata and "x" a byte of padding.
159 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{.8cm}|p{.8cm}|p{.8cm}|
161 .. flat-table:: Sample 4x2 Metadata Frame
164 :widths: 12 8 8 8 8 8 8 8
183 .. _v4l2-meta-fmt-generic-csi2-16:
185 V4L2_META_FMT_GENERIC_CSI2_16
186 -----------------------------
188 V4L2_META_FMT_GENERIC_CSI2_16 contains 8-bit generic metadata packed in 16-bit
189 Data Units, with one padding byte after every byte of metadata. This format is
190 typically used by CSI-2 receivers with a source that transmits
191 MEDIA_BUS_FMT_META_16 and the CSI-2 receiver writes the received data to memory
194 The packing of the data follows the MIPI CSI-2 specification and the padding of
195 the data is defined in the MIPI CCS specification.
197 Some devices support more efficient packing of metadata in conjunction with
198 16-bit image data. In that case the dataformat is
199 :ref:`V4L2_META_FMT_GENERIC_8 <v4l2-meta-fmt-generic-8>`.
201 This format is little endian.
203 **Byte Order Of V4L2_META_FMT_GENERIC_CSI2_16.**
204 Each cell is one byte. "M" denotes a byte of metadata and "x" a byte of padding.
206 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|
208 .. flat-table:: Sample 4x2 Metadata Frame
211 :widths: 12 8 8 8 8 8 8 8 8
232 .. _v4l2-meta-fmt-generic-csi2-20:
234 V4L2_META_FMT_GENERIC_CSI2_20
235 -----------------------------
237 V4L2_META_FMT_GENERIC_CSI2_20 contains 8-bit generic metadata packed in 20-bit
238 Data Units, with alternating one or two padding bytes after every byte of
239 metadata. This format is typically used by CSI-2 receivers with a source that
240 transmits MEDIA_BUS_FMT_META_20 and the CSI-2 receiver writes the received data
243 The packing of the data follows the MIPI CSI-2 specification and the padding of
244 the data is defined in the MIPI CCS specification.
246 Some devices support more efficient packing of metadata in conjunction with
247 16-bit image data. In that case the dataformat is
248 :ref:`V4L2_META_FMT_GENERIC_CSI2_10 <v4l2-meta-fmt-generic-csi2-10>`.
250 This format is little endian.
252 **Byte Order Of V4L2_META_FMT_GENERIC_CSI2_20.**
253 Each cell is one byte. "M" denotes a byte of metadata and "x" a byte of padding.
255 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{.8cm}|
257 .. flat-table:: Sample 4x2 Metadata Frame
260 :widths: 12 8 8 8 8 8 8 8 8 8 8
285 .. _v4l2-meta-fmt-generic-csi2-24:
287 V4L2_META_FMT_GENERIC_CSI2_24
288 -----------------------------
290 V4L2_META_FMT_GENERIC_CSI2_24 contains 8-bit generic metadata packed in 24-bit
291 Data Units, with two padding bytes after every byte of metadata. This format is
292 typically used by CSI-2 receivers with a source that transmits
293 MEDIA_BUS_FMT_META_24 and the CSI-2 receiver writes the received data to memory
296 The packing of the data follows the MIPI CSI-2 specification and the padding of
297 the data is defined in the MIPI CCS specification.
299 Some devices support more efficient packing of metadata in conjunction with
300 16-bit image data. In that case the dataformat is
301 :ref:`V4L2_META_FMT_GENERIC_CSI2_12 <v4l2-meta-fmt-generic-csi2-12>`.
303 This format is little endian.
305 **Byte Order Of V4L2_META_FMT_GENERIC_CSI2_24.**
306 Each cell is one byte. "M" denotes a byte of metadata and "x" a byte of padding.
308 .. tabularcolumns:: |p{2.4cm}|p{1.2cm}|p{.8cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{.8cm}|p{1.2cm}|p{.8cm}|p{.8cm}|
310 .. flat-table:: Sample 4x2 Metadata Frame
313 :widths: 12 8 8 8 8 8 8 8 8 8 8 8 8