[media] vidioc-g-tuner.rst: improve documentation for tuner type
[cascardo/linux.git] / Documentation / media / uapi / v4l / pixfmt-srggb8.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _V4L2-PIX-FMT-SRGGB8:
4
5 ****************************
6 V4L2_PIX_FMT_SRGGB8 ('RGGB')
7 ****************************
8
9
10 Bayer RGB format
11
12
13 Description
14 ===========
15
16 This is commonly the native format of digital cameras, reflecting the
17 arrangement of sensors on the CCD device. Only one red, green or blue
18 value is given for each pixel. Missing components must be interpolated
19 from neighbouring pixels. From left to right the first row consists of a
20 red and green value, the second row of a green and blue value. This
21 scheme repeats to the right and down for every two columns and rows.
22
23 **Byte Order.**
24 Each cell is one byte.
25
26
27
28
29 .. flat-table::
30     :header-rows:  0
31     :stub-columns: 0
32
33
34     -  .. row 1
35
36        -  start + 0:
37
38        -  R\ :sub:`00`
39
40        -  G\ :sub:`01`
41
42        -  R\ :sub:`02`
43
44        -  G\ :sub:`03`
45
46     -  .. row 2
47
48        -  start + 4:
49
50        -  G\ :sub:`10`
51
52        -  B\ :sub:`11`
53
54        -  G\ :sub:`12`
55
56        -  B\ :sub:`13`
57
58     -  .. row 3
59
60        -  start + 8:
61
62        -  R\ :sub:`20`
63
64        -  G\ :sub:`21`
65
66        -  R\ :sub:`22`
67
68        -  G\ :sub:`23`
69
70     -  .. row 4
71
72        -  start + 12:
73
74        -  G\ :sub:`30`
75
76        -  B\ :sub:`31`
77
78        -  G\ :sub:`32`
79
80        -  B\ :sub:`33`