1.. Permission is granted to copy, distribute and/or modify this 2.. document under the terms of the GNU Free Documentation License, 3.. Version 1.1 or any later version published by the Free Software 4.. Foundation, with no Invariant Sections, no Front-Cover Texts 5.. and no Back-Cover Texts. A copy of the license is included at 6.. Documentation/userspace-api/media/fdl-appendix.rst. 7.. 8.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections 9 10.. _V4L2-PIX-FMT-SRGGB10: 11.. _v4l2-pix-fmt-sbggr10: 12.. _v4l2-pix-fmt-sgbrg10: 13.. _v4l2-pix-fmt-sgrbg10: 14 15*************************************************************************************************************************** 16V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'), 17*************************************************************************************************************************** 18 19 20V4L2_PIX_FMT_SGRBG10 21V4L2_PIX_FMT_SGBRG10 22V4L2_PIX_FMT_SBGGR10 2310-bit Bayer formats expanded to 16 bits 24 25 26Description 27=========== 28 29These four pixel formats are raw sRGB / Bayer formats with 10 bits per 30sample. Each sample is stored in a 16-bit word, with 6 unused 31high bits filled with zeros. Each n-pixel row contains n/2 green samples and 32n/2 blue or red samples, with alternating red and blue rows. Bytes are 33stored in memory in little endian order. They are conventionally described 34as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example of one of 35these formats: 36 37**Byte Order.** 38Each cell is one byte, the 6 most significant bits in the high bytes 39are 0. 40 41 42 43 44.. flat-table:: 45 :header-rows: 0 46 :stub-columns: 0 47 48 * - start + 0: 49 - B\ :sub:`00low` 50 - B\ :sub:`00high` 51 - G\ :sub:`01low` 52 - G\ :sub:`01high` 53 - B\ :sub:`02low` 54 - B\ :sub:`02high` 55 - G\ :sub:`03low` 56 - G\ :sub:`03high` 57 * - start + 8: 58 - G\ :sub:`10low` 59 - G\ :sub:`10high` 60 - R\ :sub:`11low` 61 - R\ :sub:`11high` 62 - G\ :sub:`12low` 63 - G\ :sub:`12high` 64 - R\ :sub:`13low` 65 - R\ :sub:`13high` 66 * - start + 16: 67 - B\ :sub:`20low` 68 - B\ :sub:`20high` 69 - G\ :sub:`21low` 70 - G\ :sub:`21high` 71 - B\ :sub:`22low` 72 - B\ :sub:`22high` 73 - G\ :sub:`23low` 74 - G\ :sub:`23high` 75 * - start + 24: 76 - G\ :sub:`30low` 77 - G\ :sub:`30high` 78 - R\ :sub:`31low` 79 - R\ :sub:`31high` 80 - G\ :sub:`32low` 81 - G\ :sub:`32high` 82 - R\ :sub:`33low` 83 - R\ :sub:`33high` 84