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