1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-SRGGB12:
4 .. _v4l2-pix-fmt-sbggr12:
5 .. _v4l2-pix-fmt-sgbrg12:
6 .. _v4l2-pix-fmt-sgrbg12:
9 ***************************************************************************************************************************
10 V4L2_PIX_FMT_SRGGB12 ('RG12'), V4L2_PIX_FMT_SGRBG12 ('BA12'), V4L2_PIX_FMT_SGBRG12 ('GB12'), V4L2_PIX_FMT_SBGGR12 ('BG12'),
11 ***************************************************************************************************************************
17 12-bit Bayer formats expanded to 16 bits
23 These four pixel formats are raw sRGB / Bayer formats with 12 bits per
24 colour. Each colour component is stored in a 16-bit word, with 4 unused
25 high bits filled with zeros. Each n-pixel row contains n/2 green samples
26 and n/2 blue or red samples, with alternating red and blue rows. Bytes
27 are stored in memory in little endian order. They are conventionally
28 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
29 of a small V4L2_PIX_FMT_SBGGR12 image:
32 Each cell is one byte, the 4 most significant bits in the high bytes are