1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
3 .. _V4L2-PIX-FMT-SRGGB12P:
4 .. _v4l2-pix-fmt-sbggr12p:
5 .. _v4l2-pix-fmt-sgbrg12p:
6 .. _v4l2-pix-fmt-sgrbg12p:
8 *******************************************************************************************************************************
9 V4L2_PIX_FMT_SRGGB12P ('pRCC'), V4L2_PIX_FMT_SGRBG12P ('pgCC'), V4L2_PIX_FMT_SGBRG12P ('pGCC'), V4L2_PIX_FMT_SBGGR12P ('pBCC'),
10 *******************************************************************************************************************************
13 12-bit packed Bayer formats
14 ---------------------------
20 These four pixel formats are packed raw sRGB / Bayer formats with 12
21 bits per colour. Every two consecutive samples are packed into three
22 bytes. Each of the first two bytes contain the 8 high order bits of
23 the pixels, and the third byte contains the four least significants
24 bits of each pixel, in the same order.
26 Each n-pixel row contains n/2 green samples and n/2 blue or red
27 samples, with alternating green-red and green-blue rows. They are
28 conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc.
29 Below is an example of a small V4L2_PIX_FMT_SBGGR12P image:
32 Each cell is one byte.
34 .. tabularcolumns:: |p{2.2cm}|p{1.2cm}|p{1.2cm}|p{3.1cm}|p{1.2cm}|p{1.2cm}|p{3.1cm}|
40 :widths: 2 1 1 1 1 1 1
46 - G\ :sub:`01low`\ (bits 7--4)
48 B\ :sub:`00low`\ (bits 3--0)
51 - G\ :sub:`03low`\ (bits 7--4)
53 B\ :sub:`02low`\ (bits 3--0)
58 - R\ :sub:`11low`\ (bits 7--4)
60 G\ :sub:`10low`\ (bits 3--0)
63 - R\ :sub:`13low`\ (bits 3--2)
65 G\ :sub:`12low`\ (bits 3--0)
69 - G\ :sub:`21low`\ (bits 7--4)
71 B\ :sub:`20low`\ (bits 3--0)
74 - G\ :sub:`23low`\ (bits 7--4)
76 B\ :sub:`22low`\ (bits 3--0)
80 - R\ :sub:`31low`\ (bits 7--4)
82 G\ :sub:`30low`\ (bits 3--0)
85 - R\ :sub:`33low`\ (bits 3--2)
87 G\ :sub:`32low`\ (bits 3--0)