18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB16: 48c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sbggr16: 58c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg16: 68c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg16: 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci*************************************************************************************************************************** 108c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SRGGB16 ('RG16'), V4L2_PIX_FMT_SGRBG16 ('GR16'), V4L2_PIX_FMT_SGBRG16 ('GB16'), V4L2_PIX_FMT_SBGGR16 ('BYR2'), 118c2ecf20Sopenharmony_ci*************************************************************************************************************************** 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci16-bit Bayer formats 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciDescription 188c2ecf20Sopenharmony_ci=========== 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciThese four pixel formats are raw sRGB / Bayer formats with 16 bits per 218c2ecf20Sopenharmony_cisample. Each sample is stored in a 16-bit word. Each n-pixel row contains 228c2ecf20Sopenharmony_cin/2 green samples and n/2 blue or red samples, with alternating red and blue 238c2ecf20Sopenharmony_cirows. Bytes are stored in memory in little endian order. They are 248c2ecf20Sopenharmony_ciconventionally described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is 258c2ecf20Sopenharmony_cian example of a small V4L2_PIX_FMT_SBGGR16 image: 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci**Byte Order.** 288c2ecf20Sopenharmony_ciEach cell is one byte. 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci.. flat-table:: 318c2ecf20Sopenharmony_ci :header-rows: 0 328c2ecf20Sopenharmony_ci :stub-columns: 0 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci * - start + 0: 358c2ecf20Sopenharmony_ci - B\ :sub:`00low` 368c2ecf20Sopenharmony_ci - B\ :sub:`00high` 378c2ecf20Sopenharmony_ci - G\ :sub:`01low` 388c2ecf20Sopenharmony_ci - G\ :sub:`01high` 398c2ecf20Sopenharmony_ci - B\ :sub:`02low` 408c2ecf20Sopenharmony_ci - B\ :sub:`02high` 418c2ecf20Sopenharmony_ci - G\ :sub:`03low` 428c2ecf20Sopenharmony_ci - G\ :sub:`03high` 438c2ecf20Sopenharmony_ci * - start + 8: 448c2ecf20Sopenharmony_ci - G\ :sub:`10low` 458c2ecf20Sopenharmony_ci - G\ :sub:`10high` 468c2ecf20Sopenharmony_ci - R\ :sub:`11low` 478c2ecf20Sopenharmony_ci - R\ :sub:`11high` 488c2ecf20Sopenharmony_ci - G\ :sub:`12low` 498c2ecf20Sopenharmony_ci - G\ :sub:`12high` 508c2ecf20Sopenharmony_ci - R\ :sub:`13low` 518c2ecf20Sopenharmony_ci - R\ :sub:`13high` 528c2ecf20Sopenharmony_ci * - start + 16: 538c2ecf20Sopenharmony_ci - B\ :sub:`20low` 548c2ecf20Sopenharmony_ci - B\ :sub:`20high` 558c2ecf20Sopenharmony_ci - G\ :sub:`21low` 568c2ecf20Sopenharmony_ci - G\ :sub:`21high` 578c2ecf20Sopenharmony_ci - B\ :sub:`22low` 588c2ecf20Sopenharmony_ci - B\ :sub:`22high` 598c2ecf20Sopenharmony_ci - G\ :sub:`23low` 608c2ecf20Sopenharmony_ci - G\ :sub:`23high` 618c2ecf20Sopenharmony_ci * - start + 24: 628c2ecf20Sopenharmony_ci - G\ :sub:`30low` 638c2ecf20Sopenharmony_ci - G\ :sub:`30high` 648c2ecf20Sopenharmony_ci - R\ :sub:`31low` 658c2ecf20Sopenharmony_ci - R\ :sub:`31high` 668c2ecf20Sopenharmony_ci - G\ :sub:`32low` 678c2ecf20Sopenharmony_ci - G\ :sub:`32high` 688c2ecf20Sopenharmony_ci - R\ :sub:`33low` 698c2ecf20Sopenharmony_ci - R\ :sub:`33high` 70