• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>Packed YUV formats</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="YUV Formats"
17HREF="x3891.htm"><LINK
18REL="NEXT"
19TITLE="V4L2_PIX_FMT_GREY ('GREY')"
20HREF="r4185.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="x3891.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="r4185.htm"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><H1
72><A
73NAME="PACKED-YUV"
74></A
75>Packed YUV formats</H1
76><DIV
77CLASS="REFNAMEDIV"
78><A
79NAME="AEN3900"
80></A
81><H2
82>Name</H2
83>Packed YUV formats&nbsp;--&nbsp;Packed YUV formats</DIV
84><DIV
85CLASS="REFSECT1"
86><A
87NAME="AEN3903"
88></A
89><H2
90>Description</H2
91><P
92>Similar to the packed RGB formats these formats store
93the Y, Cb and Cr component of each pixel in one 16 or 32 bit
94word.</P
95><DIV
96CLASS="TABLE"
97><A
98NAME="AEN3906"
99></A
100><P
101><B
102>Table 2-1. Packed YUV Image Formats</B
103></P
104><TABLE
105BORDER="0"
106FRAME="void"
107WIDTH="100%"
108CLASS="CALSTABLE"
109><COL
110WIDTH="3%"
111ALIGN="LEFT"
112TITLE="ID"><COL
113WIDTH="3%"
114TITLE="FOURCC"><COL
115WIDTH="3%"
116TITLE="BIT"><COL
117WIDTH="3%"
118ALIGN="CENTER"
119TITLE="B07"><COL
120WIDTH="3%"
121ALIGN="CENTER"
122TITLE="B06"><COL
123WIDTH="3%"
124ALIGN="CENTER"
125TITLE="B05"><COL
126WIDTH="3%"
127ALIGN="CENTER"
128TITLE="B04"><COL
129WIDTH="3%"
130ALIGN="CENTER"
131TITLE="B03"><COL
132WIDTH="3%"
133ALIGN="CENTER"
134TITLE="B02"><COL
135WIDTH="3%"
136ALIGN="CENTER"
137TITLE="B01"><COL
138WIDTH="3%"
139ALIGN="CENTER"
140TITLE="B00"><COL><COL
141WIDTH="3%"
142ALIGN="CENTER"
143TITLE="B17"><COL
144WIDTH="3%"
145ALIGN="CENTER"
146TITLE="B16"><COL
147WIDTH="3%"
148ALIGN="CENTER"
149TITLE="B15"><COL
150WIDTH="3%"
151ALIGN="CENTER"
152TITLE="B14"><COL
153WIDTH="3%"
154ALIGN="CENTER"
155TITLE="B13"><COL
156WIDTH="3%"
157ALIGN="CENTER"
158TITLE="B12"><COL
159WIDTH="3%"
160ALIGN="CENTER"
161TITLE="B11"><COL
162WIDTH="3%"
163ALIGN="CENTER"
164TITLE="B10"><COL><COL
165WIDTH="3%"
166ALIGN="CENTER"
167TITLE="B27"><COL
168WIDTH="3%"
169ALIGN="CENTER"
170TITLE="B26"><COL
171WIDTH="3%"
172ALIGN="CENTER"
173TITLE="B25"><COL
174WIDTH="3%"
175ALIGN="CENTER"
176TITLE="B24"><COL
177WIDTH="3%"
178ALIGN="CENTER"
179TITLE="B23"><COL
180WIDTH="3%"
181ALIGN="CENTER"
182TITLE="B22"><COL
183WIDTH="3%"
184ALIGN="CENTER"
185TITLE="B21"><COL
186WIDTH="3%"
187ALIGN="CENTER"
188TITLE="B20"><COL><COL
189WIDTH="3%"
190ALIGN="CENTER"
191TITLE="B37"><COL
192WIDTH="3%"
193ALIGN="CENTER"
194TITLE="B36"><COL
195WIDTH="3%"
196ALIGN="CENTER"
197TITLE="B35"><COL
198WIDTH="3%"
199ALIGN="CENTER"
200TITLE="B34"><COL
201WIDTH="3%"
202ALIGN="CENTER"
203TITLE="B33"><COL
204WIDTH="3%"
205ALIGN="CENTER"
206TITLE="B32"><COL
207WIDTH="3%"
208ALIGN="CENTER"
209TITLE="B31"><THEAD
210><TR
211><TH
212>Identifier</TH
213><TH
214>Code</TH
215><TH
216>&nbsp;</TH
217><TH
218COLSPAN="8"
219>Byte&nbsp;0 in memory</TH
220><TH
221>&nbsp;</TH
222><TH
223COLSPAN="8"
224>Byte&nbsp;1</TH
225><TH
226>&nbsp;</TH
227><TH
228COLSPAN="8"
229>Byte&nbsp;2</TH
230><TH
231>&nbsp;</TH
232><TH
233COLSPAN="8"
234>Byte&nbsp;3</TH
235></TR
236><TR
237><TH
238>&nbsp;</TH
239><TH
240>&nbsp;</TH
241><TH
242>Bit</TH
243><TH
244>7</TH
245><TH
246>6</TH
247><TH
248>5</TH
249><TH
250>4</TH
251><TH
252>3</TH
253><TH
254>2</TH
255><TH
256>1</TH
257><TH
258>0</TH
259><TH
260>&nbsp;</TH
261><TH
262>7</TH
263><TH
264>6</TH
265><TH
266>5</TH
267><TH
268>4</TH
269><TH
270>3</TH
271><TH
272>2</TH
273><TH
274>1</TH
275><TH
276>0</TH
277><TH
278>&nbsp;</TH
279><TH
280>7</TH
281><TH
282>6</TH
283><TH
284>5</TH
285><TH
286>4</TH
287><TH
288>3</TH
289><TH
290>2</TH
291><TH
292>1</TH
293><TH
294>0</TH
295><TH
296>&nbsp;</TH
297><TH
298>7</TH
299><TH
300>6</TH
301><TH
302>5</TH
303><TH
304>4</TH
305><TH
306>3</TH
307><TH
308>2</TH
309><TH
310>1</TH
311><TH
312>0</TH
313></TR
314></THEAD
315><TBODY
316VALIGN="TOP"
317><TR
318><A
319NAME="V4L2-PIX-FMT-YUV444"
320></A
321><TD
322><CODE
323CLASS="CONSTANT"
324>V4L2_PIX_FMT_YUV444</CODE
325></TD
326><TD
327>'Y444'</TD
328><TD
329>&nbsp;</TD
330><TD
331>Cb<SUB
332>3</SUB
333></TD
334><TD
335>Cb<SUB
336>2</SUB
337></TD
338><TD
339>Cb<SUB
340>1</SUB
341></TD
342><TD
343>Cb<SUB
344>0</SUB
345></TD
346><TD
347>Cr<SUB
348>3</SUB
349></TD
350><TD
351>Cr<SUB
352>2</SUB
353></TD
354><TD
355>Cr<SUB
356>1</SUB
357></TD
358><TD
359>Cr<SUB
360>0</SUB
361></TD
362><TD
363>&nbsp;</TD
364><TD
365>a<SUB
366>3</SUB
367></TD
368><TD
369>a<SUB
370>2</SUB
371></TD
372><TD
373>a<SUB
374>1</SUB
375></TD
376><TD
377>a<SUB
378>0</SUB
379></TD
380><TD
381>Y'<SUB
382>3</SUB
383></TD
384><TD
385>Y'<SUB
386>2</SUB
387></TD
388><TD
389>Y'<SUB
390>1</SUB
391></TD
392><TD
393>Y'<SUB
394>0</SUB
395></TD
396><TD
397>&nbsp;</TD
398><TD
399>&nbsp;</TD
400><TD
401>&nbsp;</TD
402><TD
403>&nbsp;</TD
404><TD
405>&nbsp;</TD
406><TD
407>&nbsp;</TD
408><TD
409>&nbsp;</TD
410><TD
411>&nbsp;</TD
412><TD
413>&nbsp;</TD
414><TD
415>&nbsp;</TD
416><TD
417>&nbsp;</TD
418><TD
419>&nbsp;</TD
420><TD
421>&nbsp;</TD
422><TD
423>&nbsp;</TD
424><TD
425>&nbsp;</TD
426><TD
427>&nbsp;</TD
428><TD
429>&nbsp;</TD
430></TR
431><TR
432><A
433NAME="V4L2-PIX-FMT-YUV555"
434></A
435><TD
436><CODE
437CLASS="CONSTANT"
438>V4L2_PIX_FMT_YUV555</CODE
439></TD
440><TD
441>'YUVO'</TD
442><TD
443>&nbsp;</TD
444><TD
445>Cb<SUB
446>2</SUB
447></TD
448><TD
449>Cb<SUB
450>1</SUB
451></TD
452><TD
453>Cb<SUB
454>0</SUB
455></TD
456><TD
457>Cr<SUB
458>4</SUB
459></TD
460><TD
461>Cr<SUB
462>3</SUB
463></TD
464><TD
465>Cr<SUB
466>2</SUB
467></TD
468><TD
469>Cr<SUB
470>1</SUB
471></TD
472><TD
473>Cr<SUB
474>0</SUB
475></TD
476><TD
477>&nbsp;</TD
478><TD
479>a</TD
480><TD
481>Y'<SUB
482>4</SUB
483></TD
484><TD
485>Y'<SUB
486>3</SUB
487></TD
488><TD
489>Y'<SUB
490>2</SUB
491></TD
492><TD
493>Y'<SUB
494>1</SUB
495></TD
496><TD
497>Y'<SUB
498>0</SUB
499></TD
500><TD
501>Cb<SUB
502>4</SUB
503></TD
504><TD
505>Cb<SUB
506>3</SUB
507></TD
508><TD
509>&nbsp;</TD
510><TD
511>&nbsp;</TD
512><TD
513>&nbsp;</TD
514><TD
515>&nbsp;</TD
516><TD
517>&nbsp;</TD
518><TD
519>&nbsp;</TD
520><TD
521>&nbsp;</TD
522><TD
523>&nbsp;</TD
524><TD
525>&nbsp;</TD
526><TD
527>&nbsp;</TD
528><TD
529>&nbsp;</TD
530><TD
531>&nbsp;</TD
532><TD
533>&nbsp;</TD
534><TD
535>&nbsp;</TD
536><TD
537>&nbsp;</TD
538><TD
539>&nbsp;</TD
540><TD
541>&nbsp;</TD
542></TR
543><TR
544><A
545NAME="V4L2-PIX-FMT-YUV565"
546></A
547><TD
548><CODE
549CLASS="CONSTANT"
550>V4L2_PIX_FMT_YUV565</CODE
551></TD
552><TD
553>'YUVP'</TD
554><TD
555>&nbsp;</TD
556><TD
557>Cb<SUB
558>2</SUB
559></TD
560><TD
561>Cb<SUB
562>1</SUB
563></TD
564><TD
565>Cb<SUB
566>0</SUB
567></TD
568><TD
569>Cr<SUB
570>4</SUB
571></TD
572><TD
573>Cr<SUB
574>3</SUB
575></TD
576><TD
577>Cr<SUB
578>2</SUB
579></TD
580><TD
581>Cr<SUB
582>1</SUB
583></TD
584><TD
585>Cr<SUB
586>0</SUB
587></TD
588><TD
589>&nbsp;</TD
590><TD
591>Y'<SUB
592>4</SUB
593></TD
594><TD
595>Y'<SUB
596>3</SUB
597></TD
598><TD
599>Y'<SUB
600>2</SUB
601></TD
602><TD
603>Y'<SUB
604>1</SUB
605></TD
606><TD
607>Y'<SUB
608>0</SUB
609></TD
610><TD
611>Cb<SUB
612>5</SUB
613></TD
614><TD
615>Cb<SUB
616>4</SUB
617></TD
618><TD
619>Cb<SUB
620>3</SUB
621></TD
622><TD
623>&nbsp;</TD
624><TD
625>&nbsp;</TD
626><TD
627>&nbsp;</TD
628><TD
629>&nbsp;</TD
630><TD
631>&nbsp;</TD
632><TD
633>&nbsp;</TD
634><TD
635>&nbsp;</TD
636><TD
637>&nbsp;</TD
638><TD
639>&nbsp;</TD
640><TD
641>&nbsp;</TD
642><TD
643>&nbsp;</TD
644><TD
645>&nbsp;</TD
646><TD
647>&nbsp;</TD
648><TD
649>&nbsp;</TD
650><TD
651>&nbsp;</TD
652><TD
653>&nbsp;</TD
654><TD
655>&nbsp;</TD
656></TR
657><TR
658><A
659NAME="V4L2-PIX-FMT-YUV32"
660></A
661><TD
662><CODE
663CLASS="CONSTANT"
664>V4L2_PIX_FMT_YUV32</CODE
665></TD
666><TD
667>'YUV4'</TD
668><TD
669>&nbsp;</TD
670><TD
671>a<SUB
672>7</SUB
673></TD
674><TD
675>a<SUB
676>6</SUB
677></TD
678><TD
679>a<SUB
680>5</SUB
681></TD
682><TD
683>a<SUB
684>4</SUB
685></TD
686><TD
687>a<SUB
688>3</SUB
689></TD
690><TD
691>a<SUB
692>2</SUB
693></TD
694><TD
695>a<SUB
696>1</SUB
697></TD
698><TD
699>a<SUB
700>0</SUB
701></TD
702><TD
703>&nbsp;</TD
704><TD
705>Y'<SUB
706>7</SUB
707></TD
708><TD
709>Y'<SUB
710>6</SUB
711></TD
712><TD
713>Y'<SUB
714>5</SUB
715></TD
716><TD
717>Y'<SUB
718>4</SUB
719></TD
720><TD
721>Y'<SUB
722>3</SUB
723></TD
724><TD
725>Y'<SUB
726>2</SUB
727></TD
728><TD
729>Y'<SUB
730>1</SUB
731></TD
732><TD
733>Y'<SUB
734>0</SUB
735></TD
736><TD
737>&nbsp;</TD
738><TD
739>Cb<SUB
740>7</SUB
741></TD
742><TD
743>Cb<SUB
744>6</SUB
745></TD
746><TD
747>Cb<SUB
748>5</SUB
749></TD
750><TD
751>Cb<SUB
752>4</SUB
753></TD
754><TD
755>Cb<SUB
756>3</SUB
757></TD
758><TD
759>Cb<SUB
760>2</SUB
761></TD
762><TD
763>Cb<SUB
764>1</SUB
765></TD
766><TD
767>Cb<SUB
768>0</SUB
769></TD
770><TD
771>&nbsp;</TD
772><TD
773>Cr<SUB
774>7</SUB
775></TD
776><TD
777>Cr<SUB
778>6</SUB
779></TD
780><TD
781>Cr<SUB
782>5</SUB
783></TD
784><TD
785>Cr<SUB
786>4</SUB
787></TD
788><TD
789>Cr<SUB
790>3</SUB
791></TD
792><TD
793>Cr<SUB
794>2</SUB
795></TD
796><TD
797>Cr<SUB
798>1</SUB
799></TD
800><TD
801>Cr<SUB
802>0</SUB
803></TD
804></TR
805></TBODY
806></TABLE
807></DIV
808><P
809>Bit 7 is the most significant bit. The value of a = alpha
810bits is undefined when reading from the driver, ignored when writing
811to the driver, except when alpha blending has been negotiated for a
812<A
813HREF="x6570.htm"
814>Video Overlay</A
815> or <A
816HREF="x6909.htm"
817>Video Output Overlay</A
818>.</P
819></DIV
820><DIV
821CLASS="NAVFOOTER"
822><HR
823ALIGN="LEFT"
824WIDTH="100%"><TABLE
825SUMMARY="Footer navigation table"
826WIDTH="100%"
827BORDER="0"
828CELLPADDING="0"
829CELLSPACING="0"
830><TR
831><TD
832WIDTH="33%"
833ALIGN="left"
834VALIGN="top"
835><A
836HREF="x3891.htm"
837ACCESSKEY="P"
838>Prev</A
839></TD
840><TD
841WIDTH="34%"
842ALIGN="center"
843VALIGN="top"
844><A
845HREF="book1.htm"
846ACCESSKEY="H"
847>Home</A
848></TD
849><TD
850WIDTH="33%"
851ALIGN="right"
852VALIGN="top"
853><A
854HREF="r4185.htm"
855ACCESSKEY="N"
856>Next</A
857></TD
858></TR
859><TR
860><TD
861WIDTH="33%"
862ALIGN="left"
863VALIGN="top"
864>YUV Formats</TD
865><TD
866WIDTH="34%"
867ALIGN="center"
868VALIGN="top"
869><A
870HREF="x3891.htm"
871ACCESSKEY="U"
872>Up</A
873></TD
874><TD
875WIDTH="33%"
876ALIGN="right"
877VALIGN="top"
878>V4L2_PIX_FMT_GREY ('GREY')</TD
879></TR
880></TABLE
881></DIV
882></BODY
883></HTML
884>
885