Merge branch 'work.iget' into work.misc
[sfrench/cifs-2.6.git] / Documentation / media / uapi / v4l / pixfmt-srggb10.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _V4L2-PIX-FMT-SRGGB10:
4 .. _v4l2-pix-fmt-sbggr10:
5 .. _v4l2-pix-fmt-sgbrg10:
6 .. _v4l2-pix-fmt-sgrbg10:
7
8 ***************************************************************************************************************************
9 V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'),
10 ***************************************************************************************************************************
11
12 *man V4L2_PIX_FMT_SRGGB10(2)*
13
14 V4L2_PIX_FMT_SGRBG10
15 V4L2_PIX_FMT_SGBRG10
16 V4L2_PIX_FMT_SBGGR10
17 10-bit Bayer formats expanded to 16 bits
18
19
20 Description
21 ===========
22
23 These four pixel formats are raw sRGB / Bayer formats with 10 bits per
24 colour. Each colour component is stored in a 16-bit word, with 6 unused
25 high bits filled with zeros. Each n-pixel row contains n/2 green samples
26 and n/2 blue or red samples, with alternating red and blue rows. Bytes
27 are stored in memory in little endian order. They are conventionally
28 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
29 of one of these formats
30
31 **Byte Order.**
32 Each cell is one byte, high 6 bits in high bytes are 0.
33
34
35
36 .. flat-table::
37     :header-rows:  0
38     :stub-columns: 0
39     :widths:       2 1 1 1 1 1 1 1 1
40
41
42     -  .. row 1
43
44        -  start + 0:
45
46        -  B\ :sub:`00low`
47
48        -  B\ :sub:`00high`
49
50        -  G\ :sub:`01low`
51
52        -  G\ :sub:`01high`
53
54        -  B\ :sub:`02low`
55
56        -  B\ :sub:`02high`
57
58        -  G\ :sub:`03low`
59
60        -  G\ :sub:`03high`
61
62     -  .. row 2
63
64        -  start + 8:
65
66        -  G\ :sub:`10low`
67
68        -  G\ :sub:`10high`
69
70        -  R\ :sub:`11low`
71
72        -  R\ :sub:`11high`
73
74        -  G\ :sub:`12low`
75
76        -  G\ :sub:`12high`
77
78        -  R\ :sub:`13low`
79
80        -  R\ :sub:`13high`
81
82     -  .. row 3
83
84        -  start + 16:
85
86        -  B\ :sub:`20low`
87
88        -  B\ :sub:`20high`
89
90        -  G\ :sub:`21low`
91
92        -  G\ :sub:`21high`
93
94        -  B\ :sub:`22low`
95
96        -  B\ :sub:`22high`
97
98        -  G\ :sub:`23low`
99
100        -  G\ :sub:`23high`
101
102     -  .. row 4
103
104        -  start + 24:
105
106        -  G\ :sub:`30low`
107
108        -  G\ :sub:`30high`
109
110        -  R\ :sub:`31low`
111
112        -  R\ :sub:`31high`
113
114        -  G\ :sub:`32low`
115
116        -  G\ :sub:`32high`
117
118        -  R\ :sub:`33low`
119
120        -  R\ :sub:`33high`