1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
2<HTML
3><HEAD
4><TITLE
5>V4L2_PIX_FMT_YUV422P ('422P')</TITLE
6><META
7NAME="GENERATOR"
8CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9REL="HOME"
10TITLE="Video for Linux Two API Specification"
11HREF="book1.htm"><LINK
12REL="UP"
13TITLE="YUV Formats"
14HREF="x3891.htm"><LINK
15REL="PREVIOUS"
16TITLE="V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')"
17HREF="r5016.htm"><LINK
18REL="NEXT"
19TITLE="V4L2_PIX_FMT_YUV411P ('411P')"
20HREF="r5319.htm"></HEAD
21><BODY
22CLASS="REFENTRY"
23BGCOLOR="#FFFFFF"
24TEXT="#000000"
25LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31SUMMARY="Header navigation table"
32WIDTH="100%"
33BORDER="0"
34CELLPADDING="0"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="3"
39ALIGN="center"
40>Video for Linux Two API Specification: Revision 0.24</TH
41></TR
42><TR
43><TD
44WIDTH="10%"
45ALIGN="left"
46VALIGN="bottom"
47><A
48HREF="r5016.htm"
49ACCESSKEY="P"
50>Prev</A
51></TD
52><TD
53WIDTH="80%"
54ALIGN="center"
55VALIGN="bottom"
56></TD
57><TD
58WIDTH="10%"
59ALIGN="right"
60VALIGN="bottom"
61><A
62HREF="r5319.htm"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><H1
72><A
73NAME="V4L2-PIX-FMT-YUV422P"
74></A
75>V4L2_PIX_FMT_YUV422P ('422P')</H1
76><DIV
77CLASS="REFNAMEDIV"
78><A
79NAME="AEN5158"
80></A
81><H2
82>Name</H2
83><CODE
84CLASS="CONSTANT"
85>V4L2_PIX_FMT_YUV422P</CODE
86>&nbsp;--&nbsp;Format with &frac12; horizontal chroma resolution,
87also known as YUV 4:2:2. Planar layout as opposed to
88<CODE
89CLASS="CONSTANT"
90>V4L2_PIX_FMT_YUYV</CODE
91></DIV
92><DIV
93CLASS="REFSECT1"
94><A
95NAME="AEN5163"
96></A
97><H2
98>Description</H2
99><P
100>This format is not commonly used. This is a planar
101version of the YUYV format. The three components are separated into
102three sub-images or planes. The Y plane is first. The Y plane has one
103byte per pixel. The Cb plane immediately follows the Y plane in
104memory. The Cb plane is half the width of the Y plane (and of the
105image). Each Cb belongs to two pixels. For example,
106Cb<SUB
107>0</SUB
108> belongs to Y'<SUB
109>00</SUB
110>,
111Y'<SUB
112>01</SUB
113>. Following the Cb plane is the Cr plane,
114just like the Cb plane.</P
115><P
116>If the Y plane has pad bytes after each row, then the Cr
117and Cb planes have half as many pad bytes after their rows. In other
118words, two Cx rows (including padding) is exactly as long as one Y row
119(including padding).</P
120><DIV
121CLASS="EXAMPLE"
122><A
123NAME="AEN5170"
124></A
125><P
126><B
127>Example 2-1. <CODE
128CLASS="CONSTANT"
129>V4L2_PIX_FMT_YUV422P</CODE
130> 4 &times; 4
131pixel image</B
132></P
133><DIV
134CLASS="FORMALPARA"
135><P
136><B
137>Byte Order. </B
138>Each cell is one byte.
139                <DIV
140CLASS="INFORMALTABLE"
141><P
142></P
143><A
144NAME="AEN5176"
145></A
146><TABLE
147BORDER="0"
148FRAME="void"
149CLASS="CALSTABLE"
150><COL
151WIDTH="2*"
152ALIGN="LEFT"><COL><COL><COL><COL><TBODY
153VALIGN="TOP"
154><TR
155><TD
156>start&nbsp;+&nbsp;0:</TD
157><TD
158>Y'<SUB
159>00</SUB
160></TD
161><TD
162>Y'<SUB
163>01</SUB
164></TD
165><TD
166>Y'<SUB
167>02</SUB
168></TD
169><TD
170>Y'<SUB
171>03</SUB
172></TD
173></TR
174><TR
175><TD
176>start&nbsp;+&nbsp;4:</TD
177><TD
178>Y'<SUB
179>10</SUB
180></TD
181><TD
182>Y'<SUB
183>11</SUB
184></TD
185><TD
186>Y'<SUB
187>12</SUB
188></TD
189><TD
190>Y'<SUB
191>13</SUB
192></TD
193></TR
194><TR
195><TD
196>start&nbsp;+&nbsp;8:</TD
197><TD
198>Y'<SUB
199>20</SUB
200></TD
201><TD
202>Y'<SUB
203>21</SUB
204></TD
205><TD
206>Y'<SUB
207>22</SUB
208></TD
209><TD
210>Y'<SUB
211>23</SUB
212></TD
213></TR
214><TR
215><TD
216>start&nbsp;+&nbsp;12:</TD
217><TD
218>Y'<SUB
219>30</SUB
220></TD
221><TD
222>Y'<SUB
223>31</SUB
224></TD
225><TD
226>Y'<SUB
227>32</SUB
228></TD
229><TD
230>Y'<SUB
231>33</SUB
232></TD
233></TR
234><TR
235><TD
236>start&nbsp;+&nbsp;16:</TD
237><TD
238>Cb<SUB
239>00</SUB
240></TD
241><TD
242>Cb<SUB
243>01</SUB
244></TD
245><TD
246>&nbsp;</TD
247><TD
248>&nbsp;</TD
249></TR
250><TR
251><TD
252>start&nbsp;+&nbsp;18:</TD
253><TD
254>Cb<SUB
255>10</SUB
256></TD
257><TD
258>Cb<SUB
259>11</SUB
260></TD
261><TD
262>&nbsp;</TD
263><TD
264>&nbsp;</TD
265></TR
266><TR
267><TD
268>start&nbsp;+&nbsp;20:</TD
269><TD
270>Cb<SUB
271>20</SUB
272></TD
273><TD
274>Cb<SUB
275>21</SUB
276></TD
277><TD
278>&nbsp;</TD
279><TD
280>&nbsp;</TD
281></TR
282><TR
283><TD
284>start&nbsp;+&nbsp;22:</TD
285><TD
286>Cb<SUB
287>30</SUB
288></TD
289><TD
290>Cb<SUB
291>31</SUB
292></TD
293><TD
294>&nbsp;</TD
295><TD
296>&nbsp;</TD
297></TR
298><TR
299><TD
300>start&nbsp;+&nbsp;24:</TD
301><TD
302>Cr<SUB
303>00</SUB
304></TD
305><TD
306>Cr<SUB
307>01</SUB
308></TD
309><TD
310>&nbsp;</TD
311><TD
312>&nbsp;</TD
313></TR
314><TR
315><TD
316>start&nbsp;+&nbsp;26:</TD
317><TD
318>Cr<SUB
319>10</SUB
320></TD
321><TD
322>Cr<SUB
323>11</SUB
324></TD
325><TD
326>&nbsp;</TD
327><TD
328>&nbsp;</TD
329></TR
330><TR
331><TD
332>start&nbsp;+&nbsp;28:</TD
333><TD
334>Cr<SUB
335>20</SUB
336></TD
337><TD
338>Cr<SUB
339>21</SUB
340></TD
341><TD
342>&nbsp;</TD
343><TD
344>&nbsp;</TD
345></TR
346><TR
347><TD
348>start&nbsp;+&nbsp;30:</TD
349><TD
350>Cr<SUB
351>30</SUB
352></TD
353><TD
354>Cr<SUB
355>31</SUB
356></TD
357><TD
358>&nbsp;</TD
359><TD
360>&nbsp;</TD
361></TR
362></TBODY
363></TABLE
364><P
365></P
366></DIV
367>
368              </P
369></DIV
370><DIV
371CLASS="FORMALPARA"
372><P
373><B
374>Color Sample Location. </B
375>                <DIV
376CLASS="INFORMALTABLE"
377><P
378></P
379><A
380NAME="AEN5271"
381></A
382><TABLE
383BORDER="0"
384FRAME="void"
385CLASS="CALSTABLE"
386><COL><COL><COL><COL><COL><COL><COL><TBODY
387VALIGN="TOP"
388><TR
389><TD
390>&nbsp;</TD
391><TD
392>0</TD
393><TD
394>&nbsp;</TD
395><TD
396>1</TD
397><TD
398>&nbsp;</TD
399><TD
400>2</TD
401><TD
402>&nbsp;</TD
403><TD
404>3</TD
405></TR
406><TR
407><TD
408>0</TD
409><TD
410>Y</TD
411><TD
412>C</TD
413><TD
414>Y</TD
415><TD
416>&nbsp;</TD
417><TD
418>Y</TD
419><TD
420>C</TD
421><TD
422>Y</TD
423></TR
424><TR
425><TD
426>1</TD
427><TD
428>Y</TD
429><TD
430>C</TD
431><TD
432>Y</TD
433><TD
434>&nbsp;</TD
435><TD
436>Y</TD
437><TD
438>C</TD
439><TD
440>Y</TD
441></TR
442><TR
443><TD
444>2</TD
445><TD
446>Y</TD
447><TD
448>C</TD
449><TD
450>Y</TD
451><TD
452>&nbsp;</TD
453><TD
454>Y</TD
455><TD
456>C</TD
457><TD
458>Y</TD
459></TR
460><TR
461><TD
462>3</TD
463><TD
464>Y</TD
465><TD
466>C</TD
467><TD
468>Y</TD
469><TD
470>&nbsp;</TD
471><TD
472>Y</TD
473><TD
474>C</TD
475><TD
476>Y</TD
477></TR
478></TBODY
479></TABLE
480><P
481></P
482></DIV
483>
484              </P
485></DIV
486></DIV
487></DIV
488><DIV
489CLASS="NAVFOOTER"
490><HR
491ALIGN="LEFT"
492WIDTH="100%"><TABLE
493SUMMARY="Footer navigation table"
494WIDTH="100%"
495BORDER="0"
496CELLPADDING="0"
497CELLSPACING="0"
498><TR
499><TD
500WIDTH="33%"
501ALIGN="left"
502VALIGN="top"
503><A
504HREF="r5016.htm"
505ACCESSKEY="P"
506>Prev</A
507></TD
508><TD
509WIDTH="34%"
510ALIGN="center"
511VALIGN="top"
512><A
513HREF="book1.htm"
514ACCESSKEY="H"
515>Home</A
516></TD
517><TD
518WIDTH="33%"
519ALIGN="right"
520VALIGN="top"
521><A
522HREF="r5319.htm"
523ACCESSKEY="N"
524>Next</A
525></TD
526></TR
527><TR
528><TD
529WIDTH="33%"
530ALIGN="left"
531VALIGN="top"
532>V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')</TD
533><TD
534WIDTH="34%"
535ALIGN="center"
536VALIGN="top"
537><A
538HREF="x3891.htm"
539ACCESSKEY="U"
540>Up</A
541></TD
542><TD
543WIDTH="33%"
544ALIGN="right"
545VALIGN="top"
546>V4L2_PIX_FMT_YUV411P ('411P')</TD
547></TR
548></TABLE
549></DIV
550></BODY
551></HTML
552>
553