1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-SRGGB10P:
4 .. _v4l2-pix-fmt-sbggr10p:
5 .. _v4l2-pix-fmt-sgbrg10p:
6 .. _v4l2-pix-fmt-sgrbg10p:
8 *******************************************************************************************************************************
9 V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),
10 *******************************************************************************************************************************
12 *man V4L2_PIX_FMT_SRGGB10P(2)*
17 10-bit packed Bayer formats
23 These four pixel formats are packed raw sRGB / Bayer formats with 10
24 bits per colour. Every four consecutive colour components are packed
25 into 5 bytes. Each of the first 4 bytes contain the 8 high order bits of
26 the pixels, and the fifth byte contains the two least significants bits
27 of each pixel, in the same order.
29 Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
30 with alternating green-red and green-blue rows. They are conventionally
31 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
32 of one of these formats:
35 Each cell is one byte.
57 - B\ :sub:`00low`\ (bits 7--6) G\ :sub:`01low`\ (bits 5--4)
58 B\ :sub:`02low`\ (bits 3--2) G\ :sub:`03low`\ (bits 1--0)
72 - G\ :sub:`10low`\ (bits 7--6) R\ :sub:`11low`\ (bits 5--4)
73 G\ :sub:`12low`\ (bits 3--2) R\ :sub:`13low`\ (bits 1--0)
87 - B\ :sub:`20low`\ (bits 7--6) G\ :sub:`21low`\ (bits 5--4)
88 B\ :sub:`22low`\ (bits 3--2) G\ :sub:`23low`\ (bits 1--0)
102 - G\ :sub:`30low`\ (bits 7--6) R\ :sub:`31low`\ (bits 5--4)
103 G\ :sub:`32low`\ (bits 3--2) R\ :sub:`33low`\ (bits 1--0)