18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB14P:
48c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sbggr14p:
58c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg14p:
68c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg14p:
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci*******************************************************************************************************************************
98c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SRGGB14P ('pREE'), V4L2_PIX_FMT_SGRBG14P ('pgEE'), V4L2_PIX_FMT_SGBRG14P ('pGEE'), V4L2_PIX_FMT_SBGGR14P ('pBEE'),
108c2ecf20Sopenharmony_ci*******************************************************************************************************************************
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci*man V4L2_PIX_FMT_SRGGB14P(2)*
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SGRBG14P
158c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SGBRG14P
168c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SBGGR14P
178c2ecf20Sopenharmony_ci14-bit packed Bayer formats
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciDescription
218c2ecf20Sopenharmony_ci===========
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ciThese four pixel formats are packed raw sRGB / Bayer formats with 14
248c2ecf20Sopenharmony_cibits per colour. Every four consecutive samples are packed into seven
258c2ecf20Sopenharmony_cibytes. Each of the first four bytes contain the eight high order bits
268c2ecf20Sopenharmony_ciof the pixels, and the three following bytes contains the six least
278c2ecf20Sopenharmony_cisignificants bits of each pixel, in the same order.
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciEach n-pixel row contains n/2 green samples and n/2 blue or red samples,
308c2ecf20Sopenharmony_ciwith alternating green-red and green-blue rows. They are conventionally
318c2ecf20Sopenharmony_cidescribed as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
328c2ecf20Sopenharmony_ciof one of these formats:
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci**Byte Order.**
358c2ecf20Sopenharmony_ciEach cell is one byte.
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci.. raw:: latex
388c2ecf20Sopenharmony_ci
398c2ecf20Sopenharmony_ci    \footnotesize
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci.. tabularcolumns:: |p{1.8cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.1cm}|p{3.3cm}|p{3.3cm}|p{3.3cm}|
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ci.. flat-table::
448c2ecf20Sopenharmony_ci    :header-rows:  0
458c2ecf20Sopenharmony_ci    :stub-columns: 0
468c2ecf20Sopenharmony_ci    :widths:       2 1 1 1 1 3 3 3
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci    -  .. row 1
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_ci       -  start + 0
528c2ecf20Sopenharmony_ci
538c2ecf20Sopenharmony_ci       -  B\ :sub:`00high`
548c2ecf20Sopenharmony_ci
558c2ecf20Sopenharmony_ci       -  G\ :sub:`01high`
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci       -  B\ :sub:`02high`
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_ci       -  G\ :sub:`03high`
608c2ecf20Sopenharmony_ci
618c2ecf20Sopenharmony_ci       -  G\ :sub:`01low bits 1--0`\ (bits 7--6)
628c2ecf20Sopenharmony_ci
638c2ecf20Sopenharmony_ci	  B\ :sub:`00low bits 5--0`\ (bits 5--0)
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci       -  B\ :sub:`02low bits 3--0`\ (bits 7--4)
668c2ecf20Sopenharmony_ci
678c2ecf20Sopenharmony_ci	  G\ :sub:`01low bits 5--2`\ (bits 3--0)
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci       -  G\ :sub:`03low bits 5--0`\ (bits 7--2)
708c2ecf20Sopenharmony_ci
718c2ecf20Sopenharmony_ci	  B\ :sub:`02low bits 5--4`\ (bits 1--0)
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci    -  .. row 2
748c2ecf20Sopenharmony_ci
758c2ecf20Sopenharmony_ci       -  start + 7
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci       -  G\ :sub:`10high`
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci       -  R\ :sub:`11high`
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci       -  G\ :sub:`12high`
828c2ecf20Sopenharmony_ci
838c2ecf20Sopenharmony_ci       -  R\ :sub:`13high`
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci       -  R\ :sub:`11low bits 1--0`\ (bits 7--6)
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_ci	  G\ :sub:`10low bits 5--0`\ (bits 5--0)
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci       -  G\ :sub:`12low bits 3--0`\ (bits 7--4)
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci	  R\ :sub:`11low bits 5--2`\ (bits 3--0)
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci       -  R\ :sub:`13low bits 5--0`\ (bits 7--2)
948c2ecf20Sopenharmony_ci
958c2ecf20Sopenharmony_ci	  G\ :sub:`12low bits 5--4`\ (bits 1--0)
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci    -  .. row 3
988c2ecf20Sopenharmony_ci
998c2ecf20Sopenharmony_ci       -  start + 14
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci       -  B\ :sub:`20high`
1028c2ecf20Sopenharmony_ci
1038c2ecf20Sopenharmony_ci       -  G\ :sub:`21high`
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci       -  B\ :sub:`22high`
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_ci       -  G\ :sub:`23high`
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci       -  G\ :sub:`21low bits 1--0`\ (bits 7--6)
1108c2ecf20Sopenharmony_ci
1118c2ecf20Sopenharmony_ci	  B\ :sub:`20low bits 5--0`\ (bits 5--0)
1128c2ecf20Sopenharmony_ci
1138c2ecf20Sopenharmony_ci       -  B\ :sub:`22low bits 3--0`\ (bits 7--4)
1148c2ecf20Sopenharmony_ci
1158c2ecf20Sopenharmony_ci	  G\ :sub:`21low bits 5--2`\ (bits 3--0)
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci       -  G\ :sub:`23low bits 5--0`\ (bits 7--2)
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ci	  B\ :sub:`22low bits 5--4`\ (bits 1--0)
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci    -  .. row 4
1228c2ecf20Sopenharmony_ci
1238c2ecf20Sopenharmony_ci       -  start + 21
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci       -  G\ :sub:`30high`
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci       -  R\ :sub:`31high`
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci       -  G\ :sub:`32high`
1308c2ecf20Sopenharmony_ci
1318c2ecf20Sopenharmony_ci       -  R\ :sub:`33high`
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ci       -  R\ :sub:`31low bits 1--0`\ (bits 7--6)
1348c2ecf20Sopenharmony_ci	  G\ :sub:`30low bits 5--0`\ (bits 5--0)
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_ci       -  G\ :sub:`32low bits 3--0`\ (bits 7--4)
1378c2ecf20Sopenharmony_ci	  R\ :sub:`31low bits 5--2`\ (bits 3--0)
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci       -  R\ :sub:`33low bits 5--0`\ (bits 7--2)
1408c2ecf20Sopenharmony_ci	  G\ :sub:`32low bits 5--4`\ (bits 1--0)
1418c2ecf20Sopenharmony_ci
1428c2ecf20Sopenharmony_ci.. raw:: latex
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_ci    \normalsize
1458c2ecf20Sopenharmony_ci
146