18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB14: 48c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sbggr14: 58c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg14: 68c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg14: 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci*************************************************************************************************************************** 108c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SRGGB14 ('RG14'), V4L2_PIX_FMT_SGRBG14 ('GR14'), V4L2_PIX_FMT_SGBRG14 ('GB14'), V4L2_PIX_FMT_SBGGR14 ('BG14'), 118c2ecf20Sopenharmony_ci*************************************************************************************************************************** 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci14-bit Bayer formats expanded to 16 bits 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciDescription 188c2ecf20Sopenharmony_ci=========== 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ciThese four pixel formats are raw sRGB / Bayer formats with 14 bits per 218c2ecf20Sopenharmony_cicolour. Each sample is stored in a 16-bit word, with two unused high 228c2ecf20Sopenharmony_cibits filled with zeros. Each n-pixel row contains n/2 green samples 238c2ecf20Sopenharmony_ciand n/2 blue or red samples, with alternating red and blue rows. Bytes 248c2ecf20Sopenharmony_ciare stored in memory in little endian order. They are conventionally 258c2ecf20Sopenharmony_cidescribed as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an 268c2ecf20Sopenharmony_ciexample of a small V4L2_PIX_FMT_SBGGR14 image: 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci**Byte Order.** 298c2ecf20Sopenharmony_ciEach cell is one byte, the two most significant bits in the high bytes are 308c2ecf20Sopenharmony_cizero. 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci.. flat-table:: 358c2ecf20Sopenharmony_ci :header-rows: 0 368c2ecf20Sopenharmony_ci :stub-columns: 0 378c2ecf20Sopenharmony_ci :widths: 2 1 1 1 1 1 1 1 1 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci * - start + 0: 418c2ecf20Sopenharmony_ci - B\ :sub:`00low` 428c2ecf20Sopenharmony_ci - B\ :sub:`00high` 438c2ecf20Sopenharmony_ci - G\ :sub:`01low` 448c2ecf20Sopenharmony_ci - G\ :sub:`01high` 458c2ecf20Sopenharmony_ci - B\ :sub:`02low` 468c2ecf20Sopenharmony_ci - B\ :sub:`02high` 478c2ecf20Sopenharmony_ci - G\ :sub:`03low` 488c2ecf20Sopenharmony_ci - G\ :sub:`03high` 498c2ecf20Sopenharmony_ci * - start + 8: 508c2ecf20Sopenharmony_ci - G\ :sub:`10low` 518c2ecf20Sopenharmony_ci - G\ :sub:`10high` 528c2ecf20Sopenharmony_ci - R\ :sub:`11low` 538c2ecf20Sopenharmony_ci - R\ :sub:`11high` 548c2ecf20Sopenharmony_ci - G\ :sub:`12low` 558c2ecf20Sopenharmony_ci - G\ :sub:`12high` 568c2ecf20Sopenharmony_ci - R\ :sub:`13low` 578c2ecf20Sopenharmony_ci - R\ :sub:`13high` 588c2ecf20Sopenharmony_ci * - start + 16: 598c2ecf20Sopenharmony_ci - B\ :sub:`20low` 608c2ecf20Sopenharmony_ci - B\ :sub:`20high` 618c2ecf20Sopenharmony_ci - G\ :sub:`21low` 628c2ecf20Sopenharmony_ci - G\ :sub:`21high` 638c2ecf20Sopenharmony_ci - B\ :sub:`22low` 648c2ecf20Sopenharmony_ci - B\ :sub:`22high` 658c2ecf20Sopenharmony_ci - G\ :sub:`23low` 668c2ecf20Sopenharmony_ci - G\ :sub:`23high` 678c2ecf20Sopenharmony_ci * - start + 24: 688c2ecf20Sopenharmony_ci - G\ :sub:`30low` 698c2ecf20Sopenharmony_ci - G\ :sub:`30high` 708c2ecf20Sopenharmony_ci - R\ :sub:`31low` 718c2ecf20Sopenharmony_ci - R\ :sub:`31high` 728c2ecf20Sopenharmony_ci - G\ :sub:`32low` 738c2ecf20Sopenharmony_ci - G\ :sub:`32high` 748c2ecf20Sopenharmony_ci - R\ :sub:`33low` 758c2ecf20Sopenharmony_ci - R\ :sub:`33high` 76