Merge branch 'topic/docs-next' into v4l_for_linus
[sfrench/cifs-2.6.git] / Documentation / media / uapi / v4l / pixfmt-sgbrg8.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _V4L2-PIX-FMT-SGBRG8:
4
5 ****************************
6 V4L2_PIX_FMT_SGBRG8 ('GBRG')
7 ****************************
8
9 *man V4L2_PIX_FMT_SGBRG8(2)*
10
11 Bayer RGB format
12
13
14 Description
15 ===========
16
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 green and blue value, the second row of a red and green value. This
22 scheme repeats to the right and down for every two columns and rows.
23
24 **Byte Order.**
25 Each cell is one byte.
26
27
28
29 .. flat-table::
30     :header-rows:  0
31     :stub-columns: 0
32     :widths:       2 1 1 1 1
33
34
35     -  .. row 1
36
37        -  start + 0:
38
39        -  G\ :sub:`00`
40
41        -  B\ :sub:`01`
42
43        -  G\ :sub:`02`
44
45        -  B\ :sub:`03`
46
47     -  .. row 2
48
49        -  start + 4:
50
51        -  R\ :sub:`10`
52
53        -  G\ :sub:`11`
54
55        -  R\ :sub:`12`
56
57        -  G\ :sub:`13`
58
59     -  .. row 3
60
61        -  start + 8:
62
63        -  G\ :sub:`20`
64
65        -  B\ :sub:`21`
66
67        -  G\ :sub:`22`
68
69        -  B\ :sub:`23`
70
71     -  .. row 4
72
73        -  start + 12:
74
75        -  R\ :sub:`30`
76
77        -  G\ :sub:`31`
78
79        -  R\ :sub:`32`
80
81        -  G\ :sub:`33`