1 .. SPDX-License-Identifier: GFDL-1.1-no-invari !! 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 2 9 3 .. _V4L2-PIX-FMT-SRGGB12P: 10 .. _V4L2-PIX-FMT-SRGGB12P: 4 .. _v4l2-pix-fmt-sbggr12p: 11 .. _v4l2-pix-fmt-sbggr12p: 5 .. _v4l2-pix-fmt-sgbrg12p: 12 .. _v4l2-pix-fmt-sgbrg12p: 6 .. _v4l2-pix-fmt-sgrbg12p: 13 .. _v4l2-pix-fmt-sgrbg12p: 7 14 8 ********************************************** 15 ******************************************************************************************************************************* 9 V4L2_PIX_FMT_SRGGB12P ('pRCC'), V4L2_PIX_FMT_S 16 V4L2_PIX_FMT_SRGGB12P ('pRCC'), V4L2_PIX_FMT_SGRBG12P ('pgCC'), V4L2_PIX_FMT_SGBRG12P ('pGCC'), V4L2_PIX_FMT_SBGGR12P ('pBCC'), 10 ********************************************** 17 ******************************************************************************************************************************* 11 18 12 19 13 12-bit packed Bayer formats 20 12-bit packed Bayer formats 14 --------------------------- 21 --------------------------- 15 22 16 23 17 Description 24 Description 18 =========== 25 =========== 19 26 20 These four pixel formats are packed raw sRGB / 27 These four pixel formats are packed raw sRGB / Bayer formats with 12 21 bits per colour. Every two consecutive samples 28 bits per colour. Every two consecutive samples are packed into three 22 bytes. Each of the first two bytes contain the 29 bytes. Each of the first two bytes contain the 8 high order bits of 23 the pixels, and the third byte contains the fo 30 the pixels, and the third byte contains the four least significants 24 bits of each pixel, in the same order. 31 bits of each pixel, in the same order. 25 32 26 Each n-pixel row contains n/2 green samples an 33 Each n-pixel row contains n/2 green samples and n/2 blue or red 27 samples, with alternating green-red and green- 34 samples, with alternating green-red and green-blue rows. They are 28 conventionally described as GRGR... BGBG..., R 35 conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc. 29 Below is an example of a small V4L2_PIX_FMT_SB 36 Below is an example of a small V4L2_PIX_FMT_SBGGR12P image: 30 37 31 **Byte Order.** 38 **Byte Order.** 32 Each cell is one byte. 39 Each cell is one byte. 33 40 34 .. tabularcolumns:: |p{2.2cm}|p{1.2cm}|p{1.2cm !! 41 .. tabularcolumns:: |p{2.2cm}|p{1.2cm}|p{1.2cm}|p{3.1cm}|p{1.2cm}|p{1.2cm}|p{3.1cm}| 35 42 36 43 37 .. flat-table:: 44 .. flat-table:: 38 :header-rows: 0 45 :header-rows: 0 39 :stub-columns: 0 46 :stub-columns: 0 40 :widths: 2 1 1 1 1 1 1 47 :widths: 2 1 1 1 1 1 1 41 48 42 49 43 - - start + 0: 50 - - start + 0: 44 - B\ :sub:`00high` 51 - B\ :sub:`00high` 45 - G\ :sub:`01high` 52 - G\ :sub:`01high` 46 - G\ :sub:`01low`\ (bits 7--4) 53 - G\ :sub:`01low`\ (bits 7--4) 47 54 48 B\ :sub:`00low`\ (bits 3--0) 55 B\ :sub:`00low`\ (bits 3--0) 49 - B\ :sub:`02high` 56 - B\ :sub:`02high` 50 - G\ :sub:`03high` 57 - G\ :sub:`03high` 51 - G\ :sub:`03low`\ (bits 7--4) 58 - G\ :sub:`03low`\ (bits 7--4) 52 59 53 B\ :sub:`02low`\ (bits 3--0) 60 B\ :sub:`02low`\ (bits 3--0) 54 61 55 - - start + 6: 62 - - start + 6: 56 - G\ :sub:`10high` 63 - G\ :sub:`10high` 57 - R\ :sub:`11high` 64 - R\ :sub:`11high` 58 - R\ :sub:`11low`\ (bits 7--4) 65 - R\ :sub:`11low`\ (bits 7--4) 59 66 60 G\ :sub:`10low`\ (bits 3--0) 67 G\ :sub:`10low`\ (bits 3--0) 61 - G\ :sub:`12high` 68 - G\ :sub:`12high` 62 - R\ :sub:`13high` 69 - R\ :sub:`13high` 63 - R\ :sub:`13low`\ (bits 7--4) !! 70 - R\ :sub:`13low`\ (bits 3--2) 64 71 65 G\ :sub:`12low`\ (bits 3--0) 72 G\ :sub:`12low`\ (bits 3--0) 66 - - start + 12: 73 - - start + 12: 67 - B\ :sub:`20high` 74 - B\ :sub:`20high` 68 - G\ :sub:`21high` 75 - G\ :sub:`21high` 69 - G\ :sub:`21low`\ (bits 7--4) 76 - G\ :sub:`21low`\ (bits 7--4) 70 77 71 B\ :sub:`20low`\ (bits 3--0) 78 B\ :sub:`20low`\ (bits 3--0) 72 - B\ :sub:`22high` 79 - B\ :sub:`22high` 73 - G\ :sub:`23high` 80 - G\ :sub:`23high` 74 - G\ :sub:`23low`\ (bits 7--4) 81 - G\ :sub:`23low`\ (bits 7--4) 75 82 76 B\ :sub:`22low`\ (bits 3--0) 83 B\ :sub:`22low`\ (bits 3--0) 77 - - start + 18: 84 - - start + 18: 78 - G\ :sub:`30high` 85 - G\ :sub:`30high` 79 - R\ :sub:`31high` 86 - R\ :sub:`31high` 80 - R\ :sub:`31low`\ (bits 7--4) 87 - R\ :sub:`31low`\ (bits 7--4) 81 88 82 G\ :sub:`30low`\ (bits 3--0) 89 G\ :sub:`30low`\ (bits 3--0) 83 - G\ :sub:`32high` 90 - G\ :sub:`32high` 84 - R\ :sub:`33high` 91 - R\ :sub:`33high` 85 - R\ :sub:`33low`\ (bits 7--4) !! 92 - R\ :sub:`33low`\ (bits 3--2) 86 93 87 G\ :sub:`32low`\ (bits 3--0) 94 G\ :sub:`32low`\ (bits 3--0)
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.