[media] docs-rst: fix cross-references for videodev2.h
[linux-2.6-block.git] / Documentation / media / uapi / v4l / pixfmt-sbggr8.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _V4L2-PIX-FMT-SBGGR8:
4
5****************************
6V4L2_PIX_FMT_SBGGR8 ('BA81')
7****************************
8
5377d91f
MH
9Bayer RGB format
10
11
12Description
13===========
14
15This is commonly the native format of digital cameras, reflecting the
16arrangement of sensors on the CCD device. Only one red, green or blue
17value is given for each pixel. Missing components must be interpolated
18from neighbouring pixels. From left to right the first row consists of a
19blue and green value, the second row of a green and red value. This
20scheme repeats to the right and down for every two columns and rows.
21
056d2ee6 22**Byte Order.**
5377d91f
MH
23Each cell is one byte.
24
25
5377d91f
MH
26.. flat-table::
27 :header-rows: 0
28 :stub-columns: 0
5377d91f
MH
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`