162306a36Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 262306a36Sopenharmony_ci 362306a36Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB16: 462306a36Sopenharmony_ci.. _v4l2-pix-fmt-sbggr16: 562306a36Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg16: 662306a36Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg16: 762306a36Sopenharmony_ci 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci*************************************************************************************************************************** 1062306a36Sopenharmony_ciV4L2_PIX_FMT_SRGGB16 ('RG16'), V4L2_PIX_FMT_SGRBG16 ('GR16'), V4L2_PIX_FMT_SGBRG16 ('GB16'), V4L2_PIX_FMT_SBGGR16 ('BYR2'), 1162306a36Sopenharmony_ci*************************************************************************************************************************** 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci==================== 1562306a36Sopenharmony_ci16-bit Bayer formats 1662306a36Sopenharmony_ci==================== 1762306a36Sopenharmony_ci 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ciDescription 2062306a36Sopenharmony_ci=========== 2162306a36Sopenharmony_ci 2262306a36Sopenharmony_ciThese four pixel formats are raw sRGB / Bayer formats with 16 bits per 2362306a36Sopenharmony_cisample. Each sample is stored in a 16-bit word. Each n-pixel row contains 2462306a36Sopenharmony_cin/2 green samples and n/2 blue or red samples, with alternating red and blue 2562306a36Sopenharmony_cirows. Bytes are stored in memory in little endian order. They are 2662306a36Sopenharmony_ciconventionally described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is 2762306a36Sopenharmony_cian example of a small V4L2_PIX_FMT_SBGGR16 image: 2862306a36Sopenharmony_ci 2962306a36Sopenharmony_ci**Byte Order.** 3062306a36Sopenharmony_ciEach cell is one byte. 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci.. flat-table:: 3362306a36Sopenharmony_ci :header-rows: 0 3462306a36Sopenharmony_ci :stub-columns: 0 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci * - start + 0: 3762306a36Sopenharmony_ci - B\ :sub:`00low` 3862306a36Sopenharmony_ci - B\ :sub:`00high` 3962306a36Sopenharmony_ci - G\ :sub:`01low` 4062306a36Sopenharmony_ci - G\ :sub:`01high` 4162306a36Sopenharmony_ci - B\ :sub:`02low` 4262306a36Sopenharmony_ci - B\ :sub:`02high` 4362306a36Sopenharmony_ci - G\ :sub:`03low` 4462306a36Sopenharmony_ci - G\ :sub:`03high` 4562306a36Sopenharmony_ci * - start + 8: 4662306a36Sopenharmony_ci - G\ :sub:`10low` 4762306a36Sopenharmony_ci - G\ :sub:`10high` 4862306a36Sopenharmony_ci - R\ :sub:`11low` 4962306a36Sopenharmony_ci - R\ :sub:`11high` 5062306a36Sopenharmony_ci - G\ :sub:`12low` 5162306a36Sopenharmony_ci - G\ :sub:`12high` 5262306a36Sopenharmony_ci - R\ :sub:`13low` 5362306a36Sopenharmony_ci - R\ :sub:`13high` 5462306a36Sopenharmony_ci * - start + 16: 5562306a36Sopenharmony_ci - B\ :sub:`20low` 5662306a36Sopenharmony_ci - B\ :sub:`20high` 5762306a36Sopenharmony_ci - G\ :sub:`21low` 5862306a36Sopenharmony_ci - G\ :sub:`21high` 5962306a36Sopenharmony_ci - B\ :sub:`22low` 6062306a36Sopenharmony_ci - B\ :sub:`22high` 6162306a36Sopenharmony_ci - G\ :sub:`23low` 6262306a36Sopenharmony_ci - G\ :sub:`23high` 6362306a36Sopenharmony_ci * - start + 24: 6462306a36Sopenharmony_ci - G\ :sub:`30low` 6562306a36Sopenharmony_ci - G\ :sub:`30high` 6662306a36Sopenharmony_ci - R\ :sub:`31low` 6762306a36Sopenharmony_ci - R\ :sub:`31high` 6862306a36Sopenharmony_ci - G\ :sub:`32low` 6962306a36Sopenharmony_ci - G\ :sub:`32high` 7062306a36Sopenharmony_ci - R\ :sub:`33low` 7162306a36Sopenharmony_ci - R\ :sub:`33high` 72