Merge remote-tracking branch 'docs-next/docs-next' into devel/docs-next
[cascardo/linux.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
13 V4L2_PIX_FMT_SGRBG10
14 V4L2_PIX_FMT_SGBRG10
15 V4L2_PIX_FMT_SBGGR10
16 10-bit Bayer formats expanded to 16 bits
17
18
19 Description
20 ===========
21
22 These four pixel formats are raw sRGB / Bayer formats with 10 bits per
23 colour. Each colour component is stored in a 16-bit word, with 6 unused
24 high bits filled with zeros. Each n-pixel row contains n/2 green samples
25 and n/2 blue or red samples, with alternating red and blue rows. Bytes
26 are stored in memory in little endian order. They are conventionally
27 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
28 of one of these formats
29
30 **Byte Order.**
31 Each cell is one byte, high 6 bits in high bytes are 0.
32
33
34
35
36 .. flat-table::
37     :header-rows:  0
38     :stub-columns: 0
39
40
41     -  .. row 1
42
43        -  start + 0:
44
45        -  B\ :sub:`00low`
46
47        -  B\ :sub:`00high`
48
49        -  G\ :sub:`01low`
50
51        -  G\ :sub:`01high`
52
53        -  B\ :sub:`02low`
54
55        -  B\ :sub:`02high`
56
57        -  G\ :sub:`03low`
58
59        -  G\ :sub:`03high`
60
61     -  .. row 2
62
63        -  start + 8:
64
65        -  G\ :sub:`10low`
66
67        -  G\ :sub:`10high`
68
69        -  R\ :sub:`11low`
70
71        -  R\ :sub:`11high`
72
73        -  G\ :sub:`12low`
74
75        -  G\ :sub:`12high`
76
77        -  R\ :sub:`13low`
78
79        -  R\ :sub:`13high`
80
81     -  .. row 3
82
83        -  start + 16:
84
85        -  B\ :sub:`20low`
86
87        -  B\ :sub:`20high`
88
89        -  G\ :sub:`21low`
90
91        -  G\ :sub:`21high`
92
93        -  B\ :sub:`22low`
94
95        -  B\ :sub:`22high`
96
97        -  G\ :sub:`23low`
98
99        -  G\ :sub:`23high`
100
101     -  .. row 4
102
103        -  start + 24:
104
105        -  G\ :sub:`30low`
106
107        -  G\ :sub:`30high`
108
109        -  R\ :sub:`31low`
110
111        -  R\ :sub:`31high`
112
113        -  G\ :sub:`32low`
114
115        -  G\ :sub:`32high`
116
117        -  R\ :sub:`33low`
118
119        -  R\ :sub:`33high`