]>
Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _V4L2-PIX-FMT-YUV444M: | |
9aff73d2 | 4 | .. _v4l2-pix-fmt-yvu444m: |
5377d91f MH |
5 | |
6 | ************************************************************ | |
7 | V4L2_PIX_FMT_YUV444M ('YM24'), V4L2_PIX_FMT_YVU444M ('YM42') | |
8 | ************************************************************ | |
9 | ||
10 | *man V4L2_PIX_FMT_YUV444M(2)* | |
11 | ||
12 | V4L2_PIX_FMT_YVU444M | |
13 | Planar formats with full horizontal resolution, also known as YUV and | |
14 | YVU 4:4:4 | |
15 | ||
16 | ||
17 | Description | |
18 | =========== | |
19 | ||
20 | This is a multi-planar format, as opposed to a packed format. The three | |
21 | components are separated into three sub-images or planes. | |
22 | ||
23 | The Y plane is first. The Y plane has one byte per pixel. For | |
24 | ``V4L2_PIX_FMT_YUV444M`` the Cb data constitutes the second plane which | |
25 | is the same width and height as the Y plane (and as the image). The Cr | |
26 | data, just like the Cb plane, is in the third plane. | |
27 | ||
28 | ``V4L2_PIX_FMT_YVU444M`` is the same except the Cr data is stored in the | |
29 | second plane and the Cb data in the third plane. | |
30 | ||
31 | If the Y plane has pad bytes after each row, then the Cb and Cr planes | |
32 | have the same number of pad bytes after their rows. | |
33 | ||
34 | ``V4L2_PIX_FMT_YUV444M`` and ``V4L2_PIX_FMT_YUV444M`` are intended to be | |
35 | used only in drivers and applications that support the multi-planar API, | |
36 | described in :ref:`planar-apis`. | |
37 | ||
056d2ee6 | 38 | **Byte Order.** |
5377d91f MH |
39 | Each cell is one byte. |
40 | ||
5377d91f MH |
41 | .. flat-table:: |
42 | :header-rows: 0 | |
43 | :stub-columns: 0 | |
44 | :widths: 2 1 1 1 1 | |
45 | ||
46 | ||
47 | - .. row 1 | |
48 | ||
49 | - start0 + 0: | |
50 | ||
51 | - Y'\ :sub:`00` | |
52 | ||
53 | - Y'\ :sub:`01` | |
54 | ||
55 | - Y'\ :sub:`02` | |
56 | ||
57 | - Y'\ :sub:`03` | |
58 | ||
59 | - .. row 2 | |
60 | ||
61 | - start0 + 4: | |
62 | ||
63 | - Y'\ :sub:`10` | |
64 | ||
65 | - Y'\ :sub:`11` | |
66 | ||
67 | - Y'\ :sub:`12` | |
68 | ||
69 | - Y'\ :sub:`13` | |
70 | ||
71 | - .. row 3 | |
72 | ||
73 | - start0 + 8: | |
74 | ||
75 | - Y'\ :sub:`20` | |
76 | ||
77 | - Y'\ :sub:`21` | |
78 | ||
79 | - Y'\ :sub:`22` | |
80 | ||
81 | - Y'\ :sub:`23` | |
82 | ||
83 | - .. row 4 | |
84 | ||
85 | - start0 + 12: | |
86 | ||
87 | - Y'\ :sub:`30` | |
88 | ||
89 | - Y'\ :sub:`31` | |
90 | ||
91 | - Y'\ :sub:`32` | |
92 | ||
93 | - Y'\ :sub:`33` | |
94 | ||
95 | - .. row 5 | |
96 | ||
0579e6e3 | 97 | - |
5377d91f MH |
98 | |
99 | - .. row 6 | |
100 | ||
101 | - start1 + 0: | |
102 | ||
103 | - Cb\ :sub:`00` | |
104 | ||
105 | - Cb\ :sub:`01` | |
106 | ||
107 | - Cb\ :sub:`02` | |
108 | ||
109 | - Cb\ :sub:`03` | |
110 | ||
111 | - .. row 7 | |
112 | ||
113 | - start1 + 4: | |
114 | ||
115 | - Cb\ :sub:`10` | |
116 | ||
117 | - Cb\ :sub:`11` | |
118 | ||
119 | - Cb\ :sub:`12` | |
120 | ||
121 | - Cb\ :sub:`13` | |
122 | ||
123 | - .. row 8 | |
124 | ||
125 | - start1 + 8: | |
126 | ||
127 | - Cb\ :sub:`20` | |
128 | ||
129 | - Cb\ :sub:`21` | |
130 | ||
131 | - Cb\ :sub:`22` | |
132 | ||
133 | - Cb\ :sub:`23` | |
134 | ||
135 | - .. row 9 | |
136 | ||
137 | - start1 + 12: | |
138 | ||
139 | - Cb\ :sub:`20` | |
140 | ||
141 | - Cb\ :sub:`21` | |
142 | ||
143 | - Cb\ :sub:`32` | |
144 | ||
145 | - Cb\ :sub:`33` | |
146 | ||
147 | - .. row 10 | |
148 | ||
0579e6e3 | 149 | - |
5377d91f MH |
150 | |
151 | - .. row 11 | |
152 | ||
153 | - start2 + 0: | |
154 | ||
155 | - Cr\ :sub:`00` | |
156 | ||
157 | - Cr\ :sub:`01` | |
158 | ||
159 | - Cr\ :sub:`02` | |
160 | ||
161 | - Cr\ :sub:`03` | |
162 | ||
163 | - .. row 12 | |
164 | ||
165 | - start2 + 4: | |
166 | ||
167 | - Cr\ :sub:`10` | |
168 | ||
169 | - Cr\ :sub:`11` | |
170 | ||
171 | - Cr\ :sub:`12` | |
172 | ||
173 | - Cr\ :sub:`13` | |
174 | ||
175 | - .. row 13 | |
176 | ||
177 | - start2 + 8: | |
178 | ||
179 | - Cr\ :sub:`20` | |
180 | ||
181 | - Cr\ :sub:`21` | |
182 | ||
183 | - Cr\ :sub:`22` | |
184 | ||
185 | - Cr\ :sub:`23` | |
186 | ||
187 | - .. row 14 | |
188 | ||
189 | - start2 + 12: | |
190 | ||
191 | - Cr\ :sub:`30` | |
192 | ||
193 | - Cr\ :sub:`31` | |
194 | ||
195 | - Cr\ :sub:`32` | |
196 | ||
197 | - Cr\ :sub:`33` | |
198 | ||
199 | ||
200 | **Color Sample Location..** | |
201 | ||
202 | ||
203 | ||
204 | .. flat-table:: | |
205 | :header-rows: 0 | |
206 | :stub-columns: 0 | |
207 | ||
208 | ||
209 | - .. row 1 | |
210 | ||
0579e6e3 | 211 | - |
5377d91f MH |
212 | - 0 |
213 | ||
5377d91f MH |
214 | - 1 |
215 | ||
5377d91f MH |
216 | - 2 |
217 | ||
5377d91f MH |
218 | - 3 |
219 | ||
220 | - .. row 2 | |
221 | ||
222 | - 0 | |
223 | ||
224 | - YC | |
225 | ||
5377d91f MH |
226 | - YC |
227 | ||
5377d91f MH |
228 | - YC |
229 | ||
5377d91f MH |
230 | - YC |
231 | ||
232 | - .. row 3 | |
233 | ||
234 | - 1 | |
235 | ||
236 | - YC | |
237 | ||
5377d91f MH |
238 | - YC |
239 | ||
5377d91f MH |
240 | - YC |
241 | ||
5377d91f MH |
242 | - YC |
243 | ||
244 | - .. row 4 | |
245 | ||
246 | - 2 | |
247 | ||
248 | - YC | |
249 | ||
5377d91f MH |
250 | - YC |
251 | ||
5377d91f MH |
252 | - YC |
253 | ||
5377d91f MH |
254 | - YC |
255 | ||
256 | - .. row 5 | |
257 | ||
258 | - 3 | |
259 | ||
260 | - YC | |
261 | ||
5377d91f MH |
262 | - YC |
263 | ||
5377d91f MH |
264 | - YC |
265 | ||
5377d91f | 266 | - YC |