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/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
10 .. _V4L2-PIX-FMT-SRGGB12P:
11 .. _v4l2-pix-fmt-sbggr12p:
12 .. _v4l2-pix-fmt-sgbrg12p:
13 .. _v4l2-pix-fmt-sgrbg12p:
15 *******************************************************************************************************************************
16 V4L2_PIX_FMT_SRGGB12P ('pRAA'), V4L2_PIX_FMT_SGRBG12P ('pgAA'), V4L2_PIX_FMT_SGBRG12P ('pGAA'), V4L2_PIX_FMT_SBGGR12P ('pBAA'),
17 *******************************************************************************************************************************
20 12-bit packed Bayer formats
26 These four pixel formats are packed raw sRGB / Bayer formats with 12
27 bits per colour. Every two consecutive samples are packed into three
28 bytes. Each of the first two bytes contain the 8 high order bits of
29 the pixels, and the third byte contains the four least significants
30 bits of each pixel, in the same order.
32 Each n-pixel row contains n/2 green samples and n/2 blue or red
33 samples, with alternating green-red and green-blue rows. They are
34 conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc.
35 Below is an example of a small V4L2_PIX_FMT_SBGGR12P image:
38 Each cell is one byte.
40 .. tabularcolumns:: |p{2.0cm}|p{1.0cm}|p{1.0cm}|p{2.7cm}|p{1.0cm}|p{1.0cm}|p{2.7cm}|
46 :widths: 2 1 1 1 1 1 1
52 - G\ :sub:`01low`\ (bits 7--4)
54 B\ :sub:`00low`\ (bits 3--0)
57 - G\ :sub:`03low`\ (bits 7--4)
59 B\ :sub:`02low`\ (bits 3--0)
64 - R\ :sub:`11low`\ (bits 7--4)
66 G\ :sub:`10low`\ (bits 3--0)
69 - R\ :sub:`13low`\ (bits 3--2)
71 G\ :sub:`12low`\ (bits 3--0)
75 - G\ :sub:`21low`\ (bits 7--4)
77 B\ :sub:`20low`\ (bits 3--0)
80 - G\ :sub:`23low`\ (bits 7--4)
82 B\ :sub:`22low`\ (bits 3--0)
86 - R\ :sub:`31low`\ (bits 7--4)
88 G\ :sub:`30low`\ (bits 3--0)
91 - R\ :sub:`33low`\ (bits 3--2)
93 G\ :sub:`32low`\ (bits 3--0)