blob: 496ded46ab076deed5b1275ad2787d5cb94a5b88 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Packed YUV formats</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="Video for Linux Two API Specification"
HREF="book1.htm"><LINK
REL="UP"
TITLE="YUV Formats"
HREF="x3891.htm"><LINK
REL="PREVIOUS"
TITLE="YUV Formats"
HREF="x3891.htm"><LINK
REL="NEXT"
TITLE="V4L2_PIX_FMT_GREY ('GREY')"
HREF="r4185.htm"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Video for Linux Two API Specification: Revision 0.24</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x3891.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="r4185.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="PACKED-YUV"
></A
>Packed YUV formats</H1
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN3900"
></A
><H2
>Name</H2
>Packed YUV formats&nbsp;--&nbsp;Packed YUV formats</DIV
><DIV
CLASS="REFSECT1"
><A
NAME="AEN3903"
></A
><H2
>Description</H2
><P
>Similar to the packed RGB formats these formats store
the Y, Cb and Cr component of each pixel in one 16 or 32 bit
word.</P
><DIV
CLASS="TABLE"
><A
NAME="AEN3906"
></A
><P
><B
>Table 2-1. Packed YUV Image Formats</B
></P
><TABLE
BORDER="0"
FRAME="void"
WIDTH="100%"
CLASS="CALSTABLE"
><COL
WIDTH="3%"
ALIGN="LEFT"
TITLE="ID"><COL
WIDTH="3%"
TITLE="FOURCC"><COL
WIDTH="3%"
TITLE="BIT"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B07"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B06"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B05"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B04"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B03"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B02"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B01"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B00"><COL><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B17"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B16"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B15"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B14"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B13"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B12"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B11"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B10"><COL><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B27"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B26"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B25"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B24"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B23"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B22"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B21"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B20"><COL><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B37"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B36"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B35"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B34"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B33"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B32"><COL
WIDTH="3%"
ALIGN="CENTER"
TITLE="B31"><THEAD
><TR
><TH
>Identifier</TH
><TH
>Code</TH
><TH
>&nbsp;</TH
><TH
COLSPAN="8"
>Byte&nbsp;0 in memory</TH
><TH
>&nbsp;</TH
><TH
COLSPAN="8"
>Byte&nbsp;1</TH
><TH
>&nbsp;</TH
><TH
COLSPAN="8"
>Byte&nbsp;2</TH
><TH
>&nbsp;</TH
><TH
COLSPAN="8"
>Byte&nbsp;3</TH
></TR
><TR
><TH
>&nbsp;</TH
><TH
>&nbsp;</TH
><TH
>Bit</TH
><TH
>7</TH
><TH
>6</TH
><TH
>5</TH
><TH
>4</TH
><TH
>3</TH
><TH
>2</TH
><TH
>1</TH
><TH
>0</TH
><TH
>&nbsp;</TH
><TH
>7</TH
><TH
>6</TH
><TH
>5</TH
><TH
>4</TH
><TH
>3</TH
><TH
>2</TH
><TH
>1</TH
><TH
>0</TH
><TH
>&nbsp;</TH
><TH
>7</TH
><TH
>6</TH
><TH
>5</TH
><TH
>4</TH
><TH
>3</TH
><TH
>2</TH
><TH
>1</TH
><TH
>0</TH
><TH
>&nbsp;</TH
><TH
>7</TH
><TH
>6</TH
><TH
>5</TH
><TH
>4</TH
><TH
>3</TH
><TH
>2</TH
><TH
>1</TH
><TH
>0</TH
></TR
></THEAD
><TBODY
VALIGN="TOP"
><TR
><A
NAME="V4L2-PIX-FMT-YUV444"
></A
><TD
><CODE
CLASS="CONSTANT"
>V4L2_PIX_FMT_YUV444</CODE
></TD
><TD
>'Y444'</TD
><TD
>&nbsp;</TD
><TD
>Cb<SUB
>3</SUB
></TD
><TD
>Cb<SUB
>2</SUB
></TD
><TD
>Cb<SUB
>1</SUB
></TD
><TD
>Cb<SUB
>0</SUB
></TD
><TD
>Cr<SUB
>3</SUB
></TD
><TD
>Cr<SUB
>2</SUB
></TD
><TD
>Cr<SUB
>1</SUB
></TD
><TD
>Cr<SUB
>0</SUB
></TD
><TD
>&nbsp;</TD
><TD
>a<SUB
>3</SUB
></TD
><TD
>a<SUB
>2</SUB
></TD
><TD
>a<SUB
>1</SUB
></TD
><TD
>a<SUB
>0</SUB
></TD
><TD
>Y'<SUB
>3</SUB
></TD
><TD
>Y'<SUB
>2</SUB
></TD
><TD
>Y'<SUB
>1</SUB
></TD
><TD
>Y'<SUB
>0</SUB
></TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
></TR
><TR
><A
NAME="V4L2-PIX-FMT-YUV555"
></A
><TD
><CODE
CLASS="CONSTANT"
>V4L2_PIX_FMT_YUV555</CODE
></TD
><TD
>'YUVO'</TD
><TD
>&nbsp;</TD
><TD
>Cb<SUB
>2</SUB
></TD
><TD
>Cb<SUB
>1</SUB
></TD
><TD
>Cb<SUB
>0</SUB
></TD
><TD
>Cr<SUB
>4</SUB
></TD
><TD
>Cr<SUB
>3</SUB
></TD
><TD
>Cr<SUB
>2</SUB
></TD
><TD
>Cr<SUB
>1</SUB
></TD
><TD
>Cr<SUB
>0</SUB
></TD
><TD
>&nbsp;</TD
><TD
>a</TD
><TD
>Y'<SUB
>4</SUB
></TD
><TD
>Y'<SUB
>3</SUB
></TD
><TD
>Y'<SUB
>2</SUB
></TD
><TD
>Y'<SUB
>1</SUB
></TD
><TD
>Y'<SUB
>0</SUB
></TD
><TD
>Cb<SUB
>4</SUB
></TD
><TD
>Cb<SUB
>3</SUB
></TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
></TR
><TR
><A
NAME="V4L2-PIX-FMT-YUV565"
></A
><TD
><CODE
CLASS="CONSTANT"
>V4L2_PIX_FMT_YUV565</CODE
></TD
><TD
>'YUVP'</TD
><TD
>&nbsp;</TD
><TD
>Cb<SUB
>2</SUB
></TD
><TD
>Cb<SUB
>1</SUB
></TD
><TD
>Cb<SUB
>0</SUB
></TD
><TD
>Cr<SUB
>4</SUB
></TD
><TD
>Cr<SUB
>3</SUB
></TD
><TD
>Cr<SUB
>2</SUB
></TD
><TD
>Cr<SUB
>1</SUB
></TD
><TD
>Cr<SUB
>0</SUB
></TD
><TD
>&nbsp;</TD
><TD
>Y'<SUB
>4</SUB
></TD
><TD
>Y'<SUB
>3</SUB
></TD
><TD
>Y'<SUB
>2</SUB
></TD
><TD
>Y'<SUB
>1</SUB
></TD
><TD
>Y'<SUB
>0</SUB
></TD
><TD
>Cb<SUB
>5</SUB
></TD
><TD
>Cb<SUB
>4</SUB
></TD
><TD
>Cb<SUB
>3</SUB
></TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
><TD
>&nbsp;</TD
></TR
><TR
><A
NAME="V4L2-PIX-FMT-YUV32"
></A
><TD
><CODE
CLASS="CONSTANT"
>V4L2_PIX_FMT_YUV32</CODE
></TD
><TD
>'YUV4'</TD
><TD
>&nbsp;</TD
><TD
>a<SUB
>7</SUB
></TD
><TD
>a<SUB
>6</SUB
></TD
><TD
>a<SUB
>5</SUB
></TD
><TD
>a<SUB
>4</SUB
></TD
><TD
>a<SUB
>3</SUB
></TD
><TD
>a<SUB
>2</SUB
></TD
><TD
>a<SUB
>1</SUB
></TD
><TD
>a<SUB
>0</SUB
></TD
><TD
>&nbsp;</TD
><TD
>Y'<SUB
>7</SUB
></TD
><TD
>Y'<SUB
>6</SUB
></TD
><TD
>Y'<SUB
>5</SUB
></TD
><TD
>Y'<SUB
>4</SUB
></TD
><TD
>Y'<SUB
>3</SUB
></TD
><TD
>Y'<SUB
>2</SUB
></TD
><TD
>Y'<SUB
>1</SUB
></TD
><TD
>Y'<SUB
>0</SUB
></TD
><TD
>&nbsp;</TD
><TD
>Cb<SUB
>7</SUB
></TD
><TD
>Cb<SUB
>6</SUB
></TD
><TD
>Cb<SUB
>5</SUB
></TD
><TD
>Cb<SUB
>4</SUB
></TD
><TD
>Cb<SUB
>3</SUB
></TD
><TD
>Cb<SUB
>2</SUB
></TD
><TD
>Cb<SUB
>1</SUB
></TD
><TD
>Cb<SUB
>0</SUB
></TD
><TD
>&nbsp;</TD
><TD
>Cr<SUB
>7</SUB
></TD
><TD
>Cr<SUB
>6</SUB
></TD
><TD
>Cr<SUB
>5</SUB
></TD
><TD
>Cr<SUB
>4</SUB
></TD
><TD
>Cr<SUB
>3</SUB
></TD
><TD
>Cr<SUB
>2</SUB
></TD
><TD
>Cr<SUB
>1</SUB
></TD
><TD
>Cr<SUB
>0</SUB
></TD
></TR
></TBODY
></TABLE
></DIV
><P
>Bit 7 is the most significant bit. The value of a = alpha
bits is undefined when reading from the driver, ignored when writing
to the driver, except when alpha blending has been negotiated for a
<A
HREF="x6570.htm"
>Video Overlay</A
> or <A
HREF="x6909.htm"
>Video Output Overlay</A
>.</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x3891.htm"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="r4185.htm"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>YUV Formats</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x3891.htm"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>V4L2_PIX_FMT_GREY ('GREY')</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>