Commit | Line | Data |
---|---|---|
5377d91f MH |
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 | ||
30 | Each cell is one byte, high 6 bits in high bytes are 0. | |
31 | ||
32 | ||
33 | ||
34 | .. flat-table:: | |
35 | :header-rows: 0 | |
36 | :stub-columns: 0 | |
37 | :widths: 2 1 1 1 1 1 1 1 1 | |
38 | ||
39 | ||
40 | - .. row 1 | |
41 | ||
42 | - start + 0: | |
43 | ||
44 | - B\ :sub:`00low` | |
45 | ||
46 | - B\ :sub:`00high` | |
47 | ||
48 | - G\ :sub:`01low` | |
49 | ||
50 | - G\ :sub:`01high` | |
51 | ||
52 | - B\ :sub:`02low` | |
53 | ||
54 | - B\ :sub:`02high` | |
55 | ||
56 | - G\ :sub:`03low` | |
57 | ||
58 | - G\ :sub:`03high` | |
59 | ||
60 | - .. row 2 | |
61 | ||
62 | - start + 8: | |
63 | ||
64 | - G\ :sub:`10low` | |
65 | ||
66 | - G\ :sub:`10high` | |
67 | ||
68 | - R\ :sub:`11low` | |
69 | ||
70 | - R\ :sub:`11high` | |
71 | ||
72 | - G\ :sub:`12low` | |
73 | ||
74 | - G\ :sub:`12high` | |
75 | ||
76 | - R\ :sub:`13low` | |
77 | ||
78 | - R\ :sub:`13high` | |
79 | ||
80 | - .. row 3 | |
81 | ||
82 | - start + 16: | |
83 | ||
84 | - B\ :sub:`20low` | |
85 | ||
86 | - B\ :sub:`20high` | |
87 | ||
88 | - G\ :sub:`21low` | |
89 | ||
90 | - G\ :sub:`21high` | |
91 | ||
92 | - B\ :sub:`22low` | |
93 | ||
94 | - B\ :sub:`22high` | |
95 | ||
96 | - G\ :sub:`23low` | |
97 | ||
98 | - G\ :sub:`23high` | |
99 | ||
100 | - .. row 4 | |
101 | ||
102 | - start + 24: | |
103 | ||
104 | - G\ :sub:`30low` | |
105 | ||
106 | - G\ :sub:`30high` | |
107 | ||
108 | - R\ :sub:`31low` | |
109 | ||
110 | - R\ :sub:`31high` | |
111 | ||
112 | - G\ :sub:`32low` | |
113 | ||
114 | - G\ :sub:`32high` | |
115 | ||
116 | - R\ :sub:`33low` | |
117 | ||
118 | - R\ :sub:`33high` | |
119 | ||
120 | ||
121 | ||
122 | ||
123 | .. ------------------------------------------------------------------------------ | |
124 | .. This file was automatically converted from DocBook-XML with the dbxml | |
125 | .. library (https://github.com/return42/sphkerneldoc). The origin XML comes | |
126 | .. from the linux kernel, refer to: | |
127 | .. | |
128 | .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook | |
129 | .. ------------------------------------------------------------------------------ |