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