Linux 4.8.3
[linux/fpc-iii.git] / Documentation / media / uapi / v4l / pixfmt-srggb8.rst
blobe88de4c48d47a972719104d4d0a14860709f87c6
1 .. -*- coding: utf-8; mode: rst -*-
3 .. _V4L2-PIX-FMT-SRGGB8:
5 ****************************
6 V4L2_PIX_FMT_SRGGB8 ('RGGB')
7 ****************************
9 *man V4L2_PIX_FMT_SRGGB8(2)*
11 Bayer RGB format
14 Description
15 ===========
17 This is commonly the native format of digital cameras, reflecting the
18 arrangement of sensors on the CCD device. Only one red, green or blue
19 value is given for each pixel. Missing components must be interpolated
20 from neighbouring pixels. From left to right the first row consists of a
21 red and green value, the second row of a green and blue value. This
22 scheme repeats to the right and down for every two columns and rows.
24 **Byte Order.**
25 Each cell is one byte.
29 .. flat-table::
30     :header-rows:  0
31     :stub-columns: 0
32     :widths:       2 1 1 1 1
35     -  .. row 1
37        -  start + 0:
39        -  R\ :sub:`00`
41        -  G\ :sub:`01`
43        -  R\ :sub:`02`
45        -  G\ :sub:`03`
47     -  .. row 2
49        -  start + 4:
51        -  G\ :sub:`10`
53        -  B\ :sub:`11`
55        -  G\ :sub:`12`
57        -  B\ :sub:`13`
59     -  .. row 3
61        -  start + 8:
63        -  R\ :sub:`20`
65        -  G\ :sub:`21`
67        -  R\ :sub:`22`
69        -  G\ :sub:`23`
71     -  .. row 4
73        -  start + 12:
75        -  G\ :sub:`30`
77        -  B\ :sub:`31`
79        -  G\ :sub:`32`
81        -  B\ :sub:`33`