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.
7..
8.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
9
10.. _V4L2-PIX-FMT-SRGGB8:
11.. _v4l2-pix-fmt-sbggr8:
12.. _v4l2-pix-fmt-sgbrg8:
13.. _v4l2-pix-fmt-sgrbg8:
14
15***************************************************************************************************************************
16V4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'),
17***************************************************************************************************************************
18
19
208-bit Bayer formats
21
22
23Description
24===========
25
26These four pixel formats are raw sRGB / Bayer formats with 8 bits per
27sample. Each sample is stored in a byte. Each n-pixel row contains n/2
28green samples and n/2 blue or red samples, with alternating red and
29blue rows. They are conventionally described as GRGR... BGBG...,
30RGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image:
31
32**Byte Order.**
33Each cell is one byte.
34
35
36
37
38.. flat-table::
39    :header-rows:  0
40    :stub-columns: 0
41
42    * - start + 0:
43      - B\ :sub:`00`
44      - G\ :sub:`01`
45      - B\ :sub:`02`
46      - G\ :sub:`03`
47    * - start + 4:
48      - G\ :sub:`10`
49      - R\ :sub:`11`
50      - G\ :sub:`12`
51      - R\ :sub:`13`
52    * - start + 8:
53      - B\ :sub:`20`
54      - G\ :sub:`21`
55      - B\ :sub:`22`
56      - G\ :sub:`23`
57    * - start + 12:
58      - G\ :sub:`30`
59      - R\ :sub:`31`
60      - G\ :sub:`32`
61      - R\ :sub:`33`
62