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.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
10 .. _V4L2-PIX-FMT-SRGGB14P:
11 .. _v4l2-pix-fmt-sbggr14p:
12 .. _v4l2-pix-fmt-sgbrg14p:
13 .. _v4l2-pix-fmt-sgrbg14p:
15 *******************************************************************************************************************************
16 V4L2_PIX_FMT_SRGGB14P ('pREE'), V4L2_PIX_FMT_SGRBG14P ('pgEE'), V4L2_PIX_FMT_SGBRG14P ('pGEE'), V4L2_PIX_FMT_SBGGR14P ('pBEE'),
17 *******************************************************************************************************************************
19 *man V4L2_PIX_FMT_SRGGB14P(2)*
24 14-bit packed Bayer formats
30 These four pixel formats are packed raw sRGB / Bayer formats with 14
31 bits per colour. Every four consecutive samples are packed into seven
32 bytes. Each of the first four bytes contain the eight high order bits
33 of the pixels, and the three following bytes contains the six least
34 significants bits of each pixel, in the same order.
36 Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
37 with alternating green-red and green-blue rows. They are conventionally
38 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
39 of one of these formats:
42 Each cell is one byte.
48 .. tabularcolumns:: |p{1.8cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.1cm}|p{3.3cm}|p{3.3cm}|p{3.3cm}|
53 :widths: 2 1 1 1 1 3 3 3
68 - G\ :sub:`01low bits 1--0`\ (bits 7--6)
70 B\ :sub:`00low bits 5--0`\ (bits 5--0)
72 - R\ :sub:`02low bits 3--0`\ (bits 7--4)
74 G\ :sub:`01low bits 5--2`\ (bits 3--0)
76 - G\ :sub:`03low bits 5--0`\ (bits 7--2)
78 R\ :sub:`02low bits 5--4`\ (bits 1--0)
92 - R\ :sub:`01low bits 1--0`\ (bits 7--6)
94 G\ :sub:`00low bits 5--0`\ (bits 5--0)
96 - G\ :sub:`02low bits 3--0`\ (bits 7--4)
98 R\ :sub:`01low bits 5--2`\ (bits 3--0)
100 - R\ :sub:`03low bits 5--0`\ (bits 7--2)
102 G\ :sub:`02low bits 5--4`\ (bits 1--0)
116 - G\ :sub:`21low bits 1--0`\ (bits 7--6)
118 B\ :sub:`20low bits 5--0`\ (bits 5--0)
120 - R\ :sub:`22low bits 3--0`\ (bits 7--4)
122 G\ :sub:`21low bits 5--2`\ (bits 3--0)
124 - G\ :sub:`23low bits 5--0`\ (bits 7--2)
126 R\ :sub:`22low bits 5--4`\ (bits 1--0)
140 - R\ :sub:`31low bits 1--0`\ (bits 7--6)
141 G\ :sub:`30low bits 5--0`\ (bits 5--0)
143 - G\ :sub:`32low bits 3--0`\ (bits 7--4)
144 R\ :sub:`31low bits 5--2`\ (bits 3--0)
146 - R\ :sub:`33low bits 5--0`\ (bits 7--2)
147 G\ :sub:`32low bits 5--4`\ (bits 1--0)