162306a36Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 262306a36Sopenharmony_ci 362306a36Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB10: 462306a36Sopenharmony_ci.. _v4l2-pix-fmt-sbggr10: 562306a36Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg10: 662306a36Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg10: 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci*************************************************************************************************************************** 962306a36Sopenharmony_ciV4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'), 1062306a36Sopenharmony_ci*************************************************************************************************************************** 1162306a36Sopenharmony_ci 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ciV4L2_PIX_FMT_SGRBG10 1462306a36Sopenharmony_ciV4L2_PIX_FMT_SGBRG10 1562306a36Sopenharmony_ciV4L2_PIX_FMT_SBGGR10 1662306a36Sopenharmony_ci10-bit Bayer formats expanded to 16 bits 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciDescription 2062306a36Sopenharmony_ci=========== 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciThese four pixel formats are raw sRGB / Bayer formats with 10 bits per 2362306a36Sopenharmony_cisample. Each sample is stored in a 16-bit word, with 6 unused 2462306a36Sopenharmony_cihigh bits filled with zeros. Each n-pixel row contains n/2 green samples and 2562306a36Sopenharmony_cin/2 blue or red samples, with alternating red and blue rows. Bytes are 2662306a36Sopenharmony_cistored in memory in little endian order. They are conventionally described 2762306a36Sopenharmony_cias GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example of one of 2862306a36Sopenharmony_cithese formats: 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci**Byte Order.** 3162306a36Sopenharmony_ciEach cell is one byte, the 6 most significant bits in the high bytes 3262306a36Sopenharmony_ciare 0. 3362306a36Sopenharmony_ci 3462306a36Sopenharmony_ci 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci 3762306a36Sopenharmony_ci.. flat-table:: 3862306a36Sopenharmony_ci :header-rows: 0 3962306a36Sopenharmony_ci :stub-columns: 0 4062306a36Sopenharmony_ci 4162306a36Sopenharmony_ci * - start + 0: 4262306a36Sopenharmony_ci - B\ :sub:`00low` 4362306a36Sopenharmony_ci - B\ :sub:`00high` 4462306a36Sopenharmony_ci - G\ :sub:`01low` 4562306a36Sopenharmony_ci - G\ :sub:`01high` 4662306a36Sopenharmony_ci - B\ :sub:`02low` 4762306a36Sopenharmony_ci - B\ :sub:`02high` 4862306a36Sopenharmony_ci - G\ :sub:`03low` 4962306a36Sopenharmony_ci - G\ :sub:`03high` 5062306a36Sopenharmony_ci * - start + 8: 5162306a36Sopenharmony_ci - G\ :sub:`10low` 5262306a36Sopenharmony_ci - G\ :sub:`10high` 5362306a36Sopenharmony_ci - R\ :sub:`11low` 5462306a36Sopenharmony_ci - R\ :sub:`11high` 5562306a36Sopenharmony_ci - G\ :sub:`12low` 5662306a36Sopenharmony_ci - G\ :sub:`12high` 5762306a36Sopenharmony_ci - R\ :sub:`13low` 5862306a36Sopenharmony_ci - R\ :sub:`13high` 5962306a36Sopenharmony_ci * - start + 16: 6062306a36Sopenharmony_ci - B\ :sub:`20low` 6162306a36Sopenharmony_ci - B\ :sub:`20high` 6262306a36Sopenharmony_ci - G\ :sub:`21low` 6362306a36Sopenharmony_ci - G\ :sub:`21high` 6462306a36Sopenharmony_ci - B\ :sub:`22low` 6562306a36Sopenharmony_ci - B\ :sub:`22high` 6662306a36Sopenharmony_ci - G\ :sub:`23low` 6762306a36Sopenharmony_ci - G\ :sub:`23high` 6862306a36Sopenharmony_ci * - start + 24: 6962306a36Sopenharmony_ci - G\ :sub:`30low` 7062306a36Sopenharmony_ci - G\ :sub:`30high` 7162306a36Sopenharmony_ci - R\ :sub:`31low` 7262306a36Sopenharmony_ci - R\ :sub:`31high` 7362306a36Sopenharmony_ci - G\ :sub:`32low` 7462306a36Sopenharmony_ci - G\ :sub:`32high` 7562306a36Sopenharmony_ci - R\ :sub:`33low` 7662306a36Sopenharmony_ci - R\ :sub:`33high` 77