Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _V4L2-PIX-FMT-YVU410: | |
4 | ||
5 | ********************************************************** | |
6 | V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9') | |
7 | ********************************************************** | |
8 | ||
9 | *man V4L2_PIX_FMT_YVU410(2)* | |
10 | ||
11 | V4L2_PIX_FMT_YUV410 | |
12 | Planar formats with ¼ horizontal and vertical chroma resolution, also | |
13 | known as YUV 4:1:0 | |
14 | ||
15 | ||
16 | Description | |
17 | =========== | |
18 | ||
19 | These are planar formats, as opposed to a packed format. The three | |
20 | components are separated into three sub-images or planes. The Y plane is | |
21 | first. The Y plane has one byte per pixel. For ``V4L2_PIX_FMT_YVU410``, | |
22 | the Cr plane immediately follows the Y plane in memory. The Cr plane is | |
23 | ¼ the width and ¼ the height of the Y plane (and of the image). Each Cr | |
24 | belongs to 16 pixels, a four-by-four square of the image. Following the | |
25 | Cr plane is the Cb plane, just like the Cr plane. | |
26 | ``V4L2_PIX_FMT_YUV410`` is the same, except the Cb plane comes first, | |
27 | then the Cr plane. | |
28 | ||
29 | If the Y plane has pad bytes after each row, then the Cr and Cb planes | |
30 | have ¼ as many pad bytes after their rows. In other words, four Cx rows | |
31 | (including padding) are exactly as long as one Y row (including | |
32 | padding). | |
33 | ||
34 | **Byte Order..** | |
35 | ||
36 | Each cell is one byte. | |
37 | ||
38 | ||
39 | ||
40 | .. flat-table:: | |
41 | :header-rows: 0 | |
42 | :stub-columns: 0 | |
43 | :widths: 2 1 1 1 1 | |
44 | ||
45 | ||
46 | - .. row 1 | |
47 | ||
48 | - start + 0: | |
49 | ||
50 | - Y'\ :sub:`00` | |
51 | ||
52 | - Y'\ :sub:`01` | |
53 | ||
54 | - Y'\ :sub:`02` | |
55 | ||
56 | - Y'\ :sub:`03` | |
57 | ||
58 | - .. row 2 | |
59 | ||
60 | - start + 4: | |
61 | ||
62 | - Y'\ :sub:`10` | |
63 | ||
64 | - Y'\ :sub:`11` | |
65 | ||
66 | - Y'\ :sub:`12` | |
67 | ||
68 | - Y'\ :sub:`13` | |
69 | ||
70 | - .. row 3 | |
71 | ||
72 | - start + 8: | |
73 | ||
74 | - Y'\ :sub:`20` | |
75 | ||
76 | - Y'\ :sub:`21` | |
77 | ||
78 | - Y'\ :sub:`22` | |
79 | ||
80 | - Y'\ :sub:`23` | |
81 | ||
82 | - .. row 4 | |
83 | ||
84 | - start + 12: | |
85 | ||
86 | - Y'\ :sub:`30` | |
87 | ||
88 | - Y'\ :sub:`31` | |
89 | ||
90 | - Y'\ :sub:`32` | |
91 | ||
92 | - Y'\ :sub:`33` | |
93 | ||
94 | - .. row 5 | |
95 | ||
96 | - start + 16: | |
97 | ||
98 | - Cr\ :sub:`00` | |
99 | ||
100 | - .. row 6 | |
101 | ||
102 | - start + 17: | |
103 | ||
104 | - Cb\ :sub:`00` | |
105 | ||
106 | ||
107 | **Color Sample Location..** | |
108 | ||
109 | ||
110 | ||
111 | .. flat-table:: | |
112 | :header-rows: 0 | |
113 | :stub-columns: 0 | |
114 | ||
115 | ||
116 | - .. row 1 | |
117 | ||
118 | - | |
119 | - 0 | |
120 | ||
121 | - | |
122 | - 1 | |
123 | ||
124 | - | |
125 | - 2 | |
126 | ||
127 | - | |
128 | - 3 | |
129 | ||
130 | - .. row 2 | |
131 | ||
132 | - 0 | |
133 | ||
134 | - Y | |
135 | ||
136 | - | |
137 | - Y | |
138 | ||
139 | - | |
140 | - Y | |
141 | ||
142 | - | |
143 | - Y | |
144 | ||
145 | - .. row 3 | |
146 | ||
147 | - | |
148 | ||
149 | - .. row 4 | |
150 | ||
151 | - 1 | |
152 | ||
153 | - Y | |
154 | ||
155 | - | |
156 | - Y | |
157 | ||
158 | - | |
159 | - Y | |
160 | ||
161 | - | |
162 | - Y | |
163 | ||
164 | - .. row 5 | |
165 | ||
166 | - | |
167 | - | |
168 | - | |
169 | - | |
170 | - C | |
171 | ||
172 | - | |
173 | - | |
174 | - | |
175 | ||
176 | - .. row 6 | |
177 | ||
178 | - 2 | |
179 | ||
180 | - Y | |
181 | ||
182 | - | |
183 | - Y | |
184 | ||
185 | - | |
186 | - Y | |
187 | ||
188 | - | |
189 | - Y | |
190 | ||
191 | - .. row 7 | |
192 | ||
193 | - | |
194 | ||
195 | - .. row 8 | |
196 | ||
197 | - 3 | |
198 | ||
199 | - Y | |
200 | ||
201 | - | |
202 | - Y | |
203 | ||
204 | - | |
205 | - Y | |
206 | ||
207 | - | |
208 | - Y | |
209 | ||
210 | ||
211 | ||
212 | ||
213 | .. ------------------------------------------------------------------------------ | |
214 | .. This file was automatically converted from DocBook-XML with the dbxml | |
215 | .. library (https://github.com/return42/sphkerneldoc). The origin XML comes | |
216 | .. from the linux kernel, refer to: | |
217 | .. | |
218 | .. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook | |
219 | .. ------------------------------------------------------------------------------ |