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_Y41P ('Y41P')</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_UYVY ('UYVY')"
17HREF="r4484.htm"><LINK
18REL="NEXT"
19TITLE="V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')"
20HREF="r4850.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="r4484.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="r4850.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-Y41P"
74></A
75>V4L2_PIX_FMT_Y41P ('Y41P')</H1
76><DIV
77CLASS="REFNAMEDIV"
78><A
79NAME="AEN4633"
80></A
81><H2
82>Name</H2
83><CODE
84CLASS="CONSTANT"
85>V4L2_PIX_FMT_Y41P</CODE
86>&nbsp;--&nbsp;Format with &frac14; horizontal chroma
87resolution, also known as YUV 4:1:1</DIV
88><DIV
89CLASS="REFSECT1"
90><A
91NAME="AEN4637"
92></A
93><H2
94>Description</H2
95><P
96>In this format each 12 bytes is eight pixels. In the
97twelve bytes are two CbCr pairs and eight Y's. The first CbCr pair
98goes with the first four Y's, and the second CbCr pair goes with the
99other four Y's. The Cb and Cr components have one fourth the
100horizontal resolution of the Y component.</P
101><P
102>Do not confuse this format with <A
103HREF="r5319.htm"
104><CODE
105CLASS="CONSTANT"
106>V4L2_PIX_FMT_YUV411P</CODE
107></A
108>.
109Y41P is derived from "YUV 4:1:1 <SPAN
110CLASS="emphasis"
111><I
112CLASS="EMPHASIS"
113>packed</I
114></SPAN
115>", while
116YUV411P stands for "YUV 4:1:1 <SPAN
117CLASS="emphasis"
118><I
119CLASS="EMPHASIS"
120>planar</I
121></SPAN
122>".</P
123><DIV
124CLASS="EXAMPLE"
125><A
126NAME="AEN4645"
127></A
128><P
129><B
130>Example 2-1. <CODE
131CLASS="CONSTANT"
132>V4L2_PIX_FMT_Y41P</CODE
133> 8 &times; 4
134pixel image</B
135></P
136><DIV
137CLASS="FORMALPARA"
138><P
139><B
140>Byte Order. </B
141>Each cell is one byte.
142                <DIV
143CLASS="INFORMALTABLE"
144><P
145></P
146><A
147NAME="AEN4651"
148></A
149><TABLE
150BORDER="0"
151FRAME="void"
152CLASS="CALSTABLE"
153><COL
154WIDTH="2*"
155ALIGN="LEFT"><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><TBODY
156VALIGN="TOP"
157><TR
158><TD
159>start&nbsp;+&nbsp;0:</TD
160><TD
161>Cb<SUB
162>00</SUB
163></TD
164><TD
165>Y'<SUB
166>00</SUB
167></TD
168><TD
169>Cr<SUB
170>00</SUB
171></TD
172><TD
173>Y'<SUB
174>01</SUB
175></TD
176><TD
177>Cb<SUB
178>01</SUB
179></TD
180><TD
181>Y'<SUB
182>02</SUB
183></TD
184><TD
185>Cr<SUB
186>01</SUB
187></TD
188><TD
189>Y'<SUB
190>03</SUB
191></TD
192><TD
193>Y'<SUB
194>04</SUB
195></TD
196><TD
197>Y'<SUB
198>05</SUB
199></TD
200><TD
201>Y'<SUB
202>06</SUB
203></TD
204><TD
205>Y'<SUB
206>07</SUB
207></TD
208></TR
209><TR
210><TD
211>start&nbsp;+&nbsp;12:</TD
212><TD
213>Cb<SUB
214>10</SUB
215></TD
216><TD
217>Y'<SUB
218>10</SUB
219></TD
220><TD
221>Cr<SUB
222>10</SUB
223></TD
224><TD
225>Y'<SUB
226>11</SUB
227></TD
228><TD
229>Cb<SUB
230>11</SUB
231></TD
232><TD
233>Y'<SUB
234>12</SUB
235></TD
236><TD
237>Cr<SUB
238>11</SUB
239></TD
240><TD
241>Y'<SUB
242>13</SUB
243></TD
244><TD
245>Y'<SUB
246>14</SUB
247></TD
248><TD
249>Y'<SUB
250>15</SUB
251></TD
252><TD
253>Y'<SUB
254>16</SUB
255></TD
256><TD
257>Y'<SUB
258>17</SUB
259></TD
260></TR
261><TR
262><TD
263>start&nbsp;+&nbsp;24:</TD
264><TD
265>Cb<SUB
266>20</SUB
267></TD
268><TD
269>Y'<SUB
270>20</SUB
271></TD
272><TD
273>Cr<SUB
274>20</SUB
275></TD
276><TD
277>Y'<SUB
278>21</SUB
279></TD
280><TD
281>Cb<SUB
282>21</SUB
283></TD
284><TD
285>Y'<SUB
286>22</SUB
287></TD
288><TD
289>Cr<SUB
290>21</SUB
291></TD
292><TD
293>Y'<SUB
294>23</SUB
295></TD
296><TD
297>Y'<SUB
298>24</SUB
299></TD
300><TD
301>Y'<SUB
302>25</SUB
303></TD
304><TD
305>Y'<SUB
306>26</SUB
307></TD
308><TD
309>Y'<SUB
310>27</SUB
311></TD
312></TR
313><TR
314><TD
315>start&nbsp;+&nbsp;36:</TD
316><TD
317>Cb<SUB
318>30</SUB
319></TD
320><TD
321>Y'<SUB
322>30</SUB
323></TD
324><TD
325>Cr<SUB
326>30</SUB
327></TD
328><TD
329>Y'<SUB
330>31</SUB
331></TD
332><TD
333>Cb<SUB
334>31</SUB
335></TD
336><TD
337>Y'<SUB
338>32</SUB
339></TD
340><TD
341>Cr<SUB
342>31</SUB
343></TD
344><TD
345>Y'<SUB
346>33</SUB
347></TD
348><TD
349>Y'<SUB
350>34</SUB
351></TD
352><TD
353>Y'<SUB
354>35</SUB
355></TD
356><TD
357>Y'<SUB
358>36</SUB
359></TD
360><TD
361>Y'<SUB
362>37</SUB
363></TD
364></TR
365></TBODY
366></TABLE
367><P
368></P
369></DIV
370></P
371></DIV
372><DIV
373CLASS="FORMALPARA"
374><P
375><B
376>Color Sample Location. </B
377>                <DIV
378CLASS="INFORMALTABLE"
379><P
380></P
381><A
382NAME="AEN4762"
383></A
384><TABLE
385BORDER="0"
386FRAME="void"
387CLASS="CALSTABLE"
388><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><TBODY
389VALIGN="TOP"
390><TR
391><TD
392>&nbsp;</TD
393><TD
394>0</TD
395><TD
396>&nbsp;</TD
397><TD
398>1</TD
399><TD
400>&nbsp;</TD
401><TD
402>2</TD
403><TD
404>&nbsp;</TD
405><TD
406>3</TD
407><TD
408>&nbsp;</TD
409><TD
410>4</TD
411><TD
412>&nbsp;</TD
413><TD
414>5</TD
415><TD
416>&nbsp;</TD
417><TD
418>6</TD
419><TD
420>&nbsp;</TD
421><TD
422>7</TD
423></TR
424><TR
425><TD
426>0</TD
427><TD
428>Y</TD
429><TD
430>&nbsp;</TD
431><TD
432>Y</TD
433><TD
434>C</TD
435><TD
436>Y</TD
437><TD
438>&nbsp;</TD
439><TD
440>Y</TD
441><TD
442>&nbsp;</TD
443><TD
444>Y</TD
445><TD
446>&nbsp;</TD
447><TD
448>Y</TD
449><TD
450>C</TD
451><TD
452>Y</TD
453><TD
454>&nbsp;</TD
455><TD
456>Y</TD
457></TR
458><TR
459><TD
460>1</TD
461><TD
462>Y</TD
463><TD
464>&nbsp;</TD
465><TD
466>Y</TD
467><TD
468>C</TD
469><TD
470>Y</TD
471><TD
472>&nbsp;</TD
473><TD
474>Y</TD
475><TD
476>&nbsp;</TD
477><TD
478>Y</TD
479><TD
480>&nbsp;</TD
481><TD
482>Y</TD
483><TD
484>C</TD
485><TD
486>Y</TD
487><TD
488>&nbsp;</TD
489><TD
490>Y</TD
491></TR
492><TR
493><TD
494>2</TD
495><TD
496>Y</TD
497><TD
498>&nbsp;</TD
499><TD
500>Y</TD
501><TD
502>C</TD
503><TD
504>Y</TD
505><TD
506>&nbsp;</TD
507><TD
508>Y</TD
509><TD
510>&nbsp;</TD
511><TD
512>Y</TD
513><TD
514>&nbsp;</TD
515><TD
516>Y</TD
517><TD
518>C</TD
519><TD
520>Y</TD
521><TD
522>&nbsp;</TD
523><TD
524>Y</TD
525></TR
526><TR
527><TD
528>3</TD
529><TD
530>Y</TD
531><TD
532>&nbsp;</TD
533><TD
534>Y</TD
535><TD
536>C</TD
537><TD
538>Y</TD
539><TD
540>&nbsp;</TD
541><TD
542>Y</TD
543><TD
544>&nbsp;</TD
545><TD
546>Y</TD
547><TD
548>&nbsp;</TD
549><TD
550>Y</TD
551><TD
552>C</TD
553><TD
554>Y</TD
555><TD
556>&nbsp;</TD
557><TD
558>Y</TD
559></TR
560></TBODY
561></TABLE
562><P
563></P
564></DIV
565>
566              </P
567></DIV
568></DIV
569></DIV
570><DIV
571CLASS="NAVFOOTER"
572><HR
573ALIGN="LEFT"
574WIDTH="100%"><TABLE
575SUMMARY="Footer navigation table"
576WIDTH="100%"
577BORDER="0"
578CELLPADDING="0"
579CELLSPACING="0"
580><TR
581><TD
582WIDTH="33%"
583ALIGN="left"
584VALIGN="top"
585><A
586HREF="r4484.htm"
587ACCESSKEY="P"
588>Prev</A
589></TD
590><TD
591WIDTH="34%"
592ALIGN="center"
593VALIGN="top"
594><A
595HREF="book1.htm"
596ACCESSKEY="H"
597>Home</A
598></TD
599><TD
600WIDTH="33%"
601ALIGN="right"
602VALIGN="top"
603><A
604HREF="r4850.htm"
605ACCESSKEY="N"
606>Next</A
607></TD
608></TR
609><TR
610><TD
611WIDTH="33%"
612ALIGN="left"
613VALIGN="top"
614>V4L2_PIX_FMT_UYVY ('UYVY')</TD
615><TD
616WIDTH="34%"
617ALIGN="center"
618VALIGN="top"
619><A
620HREF="x3891.htm"
621ACCESSKEY="U"
622>Up</A
623></TD
624><TD
625WIDTH="33%"
626ALIGN="right"
627VALIGN="top"
628>V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')</TD
629></TR
630></TABLE
631></DIV
632></BODY
633></HTML
634>
635