18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
28c2ecf20Sopenharmony_ci
38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB10:
48c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sbggr10:
58c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg10:
68c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg10:
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci***************************************************************************************************************************
98c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'),
108c2ecf20Sopenharmony_ci***************************************************************************************************************************
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SGRBG10
148c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SGBRG10
158c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SBGGR10
168c2ecf20Sopenharmony_ci10-bit Bayer formats expanded to 16 bits
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciDescription
208c2ecf20Sopenharmony_ci===========
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_ciThese four pixel formats are raw sRGB / Bayer formats with 10 bits per
238c2ecf20Sopenharmony_cisample. Each sample is stored in a 16-bit word, with 6 unused
248c2ecf20Sopenharmony_cihigh bits filled with zeros. Each n-pixel row contains n/2 green samples and
258c2ecf20Sopenharmony_cin/2 blue or red samples, with alternating red and blue rows. Bytes are
268c2ecf20Sopenharmony_cistored in memory in little endian order. They are conventionally described
278c2ecf20Sopenharmony_cias GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example of one of
288c2ecf20Sopenharmony_cithese formats:
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci**Byte Order.**
318c2ecf20Sopenharmony_ciEach cell is one byte, the 6 most significant bits in the high bytes
328c2ecf20Sopenharmony_ciare 0.
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ci.. flat-table::
388c2ecf20Sopenharmony_ci    :header-rows:  0
398c2ecf20Sopenharmony_ci    :stub-columns: 0
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci    * - start + 0:
428c2ecf20Sopenharmony_ci      - B\ :sub:`00low`
438c2ecf20Sopenharmony_ci      - B\ :sub:`00high`
448c2ecf20Sopenharmony_ci      - G\ :sub:`01low`
458c2ecf20Sopenharmony_ci      - G\ :sub:`01high`
468c2ecf20Sopenharmony_ci      - B\ :sub:`02low`
478c2ecf20Sopenharmony_ci      - B\ :sub:`02high`
488c2ecf20Sopenharmony_ci      - G\ :sub:`03low`
498c2ecf20Sopenharmony_ci      - G\ :sub:`03high`
508c2ecf20Sopenharmony_ci    * - start + 8:
518c2ecf20Sopenharmony_ci      - G\ :sub:`10low`
528c2ecf20Sopenharmony_ci      - G\ :sub:`10high`
538c2ecf20Sopenharmony_ci      - R\ :sub:`11low`
548c2ecf20Sopenharmony_ci      - R\ :sub:`11high`
558c2ecf20Sopenharmony_ci      - G\ :sub:`12low`
568c2ecf20Sopenharmony_ci      - G\ :sub:`12high`
578c2ecf20Sopenharmony_ci      - R\ :sub:`13low`
588c2ecf20Sopenharmony_ci      - R\ :sub:`13high`
598c2ecf20Sopenharmony_ci    * - start + 16:
608c2ecf20Sopenharmony_ci      - B\ :sub:`20low`
618c2ecf20Sopenharmony_ci      - B\ :sub:`20high`
628c2ecf20Sopenharmony_ci      - G\ :sub:`21low`
638c2ecf20Sopenharmony_ci      - G\ :sub:`21high`
648c2ecf20Sopenharmony_ci      - B\ :sub:`22low`
658c2ecf20Sopenharmony_ci      - B\ :sub:`22high`
668c2ecf20Sopenharmony_ci      - G\ :sub:`23low`
678c2ecf20Sopenharmony_ci      - G\ :sub:`23high`
688c2ecf20Sopenharmony_ci    * - start + 24:
698c2ecf20Sopenharmony_ci      - G\ :sub:`30low`
708c2ecf20Sopenharmony_ci      - G\ :sub:`30high`
718c2ecf20Sopenharmony_ci      - R\ :sub:`31low`
728c2ecf20Sopenharmony_ci      - R\ :sub:`31high`
738c2ecf20Sopenharmony_ci      - G\ :sub:`32low`
748c2ecf20Sopenharmony_ci      - G\ :sub:`32high`
758c2ecf20Sopenharmony_ci      - R\ :sub:`33low`
768c2ecf20Sopenharmony_ci      - R\ :sub:`33high`
77