1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 2 3.. _V4L2-PIX-FMT-SRGGB14: 4.. _v4l2-pix-fmt-sbggr14: 5.. _v4l2-pix-fmt-sgbrg14: 6.. _v4l2-pix-fmt-sgrbg14: 7 8 9*************************************************************************************************************************** 10V4L2_PIX_FMT_SRGGB14 ('RG14'), V4L2_PIX_FMT_SGRBG14 ('GR14'), V4L2_PIX_FMT_SGBRG14 ('GB14'), V4L2_PIX_FMT_SBGGR14 ('BG14'), 11*************************************************************************************************************************** 12 13 1414-bit Bayer formats expanded to 16 bits 15 16 17Description 18=========== 19 20These four pixel formats are raw sRGB / Bayer formats with 14 bits per 21colour. Each sample is stored in a 16-bit word, with two unused high 22bits filled with zeros. Each n-pixel row contains n/2 green samples 23and n/2 blue or red samples, with alternating red and blue rows. Bytes 24are stored in memory in little endian order. They are conventionally 25described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an 26example of a small V4L2_PIX_FMT_SBGGR14 image: 27 28**Byte Order.** 29Each cell is one byte, the two most significant bits in the high bytes are 30zero. 31 32 33 34.. flat-table:: 35 :header-rows: 0 36 :stub-columns: 0 37 :widths: 2 1 1 1 1 1 1 1 1 38 39 40 * - start + 0: 41 - B\ :sub:`00low` 42 - B\ :sub:`00high` 43 - G\ :sub:`01low` 44 - G\ :sub:`01high` 45 - B\ :sub:`02low` 46 - B\ :sub:`02high` 47 - G\ :sub:`03low` 48 - G\ :sub:`03high` 49 * - start + 8: 50 - G\ :sub:`10low` 51 - G\ :sub:`10high` 52 - R\ :sub:`11low` 53 - R\ :sub:`11high` 54 - G\ :sub:`12low` 55 - G\ :sub:`12high` 56 - R\ :sub:`13low` 57 - R\ :sub:`13high` 58 * - start + 16: 59 - B\ :sub:`20low` 60 - B\ :sub:`20high` 61 - G\ :sub:`21low` 62 - G\ :sub:`21high` 63 - B\ :sub:`22low` 64 - B\ :sub:`22high` 65 - G\ :sub:`23low` 66 - G\ :sub:`23high` 67 * - start + 24: 68 - G\ :sub:`30low` 69 - G\ :sub:`30high` 70 - R\ :sub:`31low` 71 - R\ :sub:`31high` 72 - G\ :sub:`32low` 73 - G\ :sub:`32high` 74 - R\ :sub:`33low` 75 - R\ :sub:`33high` 76