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_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')</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_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')" 17HREF="r4850.htm"><LINK 18REL="NEXT" 19TITLE="V4L2_PIX_FMT_YUV422P ('422P')" 20HREF="r5154.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="r4850.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="r5154.htm" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><H1 72><A 73NAME="AEN5016" 74></A 75>V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')</H1 76><DIV 77CLASS="REFNAMEDIV" 78><A 79NAME="AEN5020" 80></A 81><H2 82>Name</H2 83><CODE 84CLASS="CONSTANT" 85>V4L2_PIX_FMT_YVU410</CODE 86>, <CODE 87CLASS="CONSTANT" 88>V4L2_PIX_FMT_YUV410</CODE 89> -- Planar formats with ¼ horizontal and 90vertical chroma resolution, also known as YUV 4:1:0</DIV 91><DIV 92CLASS="REFSECT1" 93><A 94NAME="AEN5026" 95></A 96><H2 97>Description</H2 98><P 99>These are planar formats, as opposed to a packed format. 100The three components are separated into three sub-images or planes. 101The Y plane is first. The Y plane has one byte per pixel. For 102<CODE 103CLASS="CONSTANT" 104>V4L2_PIX_FMT_YVU410</CODE 105>, the Cr plane immediately 106follows the Y plane in memory. The Cr plane is ¼ the width and 107¼ the height of the Y plane (and of the image). Each Cr belongs 108to 16 pixels, a four-by-four square of the image. Following the Cr 109plane is the Cb plane, just like the Cr plane. 110<CODE 111CLASS="CONSTANT" 112>V4L2_PIX_FMT_YUV410</CODE 113> is the same, except the Cb 114plane comes first, then the Cr plane.</P 115><P 116>If the Y plane has pad bytes after each row, then the Cr 117and Cb planes have ¼ as many pad bytes after their rows. In 118other words, four Cx rows (including padding) are exactly as long as 119one Y row (including padding).</P 120><DIV 121CLASS="EXAMPLE" 122><A 123NAME="AEN5032" 124></A 125><P 126><B 127>Example 2-1. <CODE 128CLASS="CONSTANT" 129>V4L2_PIX_FMT_YVU410</CODE 130> 4 × 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="AEN5038" 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 + 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 + 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 + 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 + 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 + 16:</TD 237><TD 238>Cr<SUB 239>00</SUB 240></TD 241><TD 242> </TD 243><TD 244> </TD 245><TD 246> </TD 247></TR 248><TR 249><TD 250>start + 17:</TD 251><TD 252>Cb<SUB 253>00</SUB 254></TD 255><TD 256> </TD 257><TD 258> </TD 259><TD 260> </TD 261></TR 262></TBODY 263></TABLE 264><P 265></P 266></DIV 267> 268 </P 269></DIV 270><DIV 271CLASS="FORMALPARA" 272><P 273><B 274>Color Sample Location. </B 275> <DIV 276CLASS="INFORMALTABLE" 277><P 278></P 279><A 280NAME="AEN5093" 281></A 282><TABLE 283BORDER="0" 284FRAME="void" 285CLASS="CALSTABLE" 286><COL><COL><COL><COL><COL><COL><COL><TBODY 287VALIGN="TOP" 288><TR 289><TD 290> </TD 291><TD 292>0</TD 293><TD 294> </TD 295><TD 296>1</TD 297><TD 298> </TD 299><TD 300>2</TD 301><TD 302> </TD 303><TD 304>3</TD 305></TR 306><TR 307><TD 308>0</TD 309><TD 310>Y</TD 311><TD 312> </TD 313><TD 314>Y</TD 315><TD 316> </TD 317><TD 318>Y</TD 319><TD 320> </TD 321><TD 322>Y</TD 323></TR 324><TR 325><TD 326> </TD 327><TD 328> </TD 329><TD 330> </TD 331><TD 332> </TD 333><TD 334> </TD 335><TD 336> </TD 337><TD 338> </TD 339></TR 340><TR 341><TD 342>1</TD 343><TD 344>Y</TD 345><TD 346> </TD 347><TD 348>Y</TD 349><TD 350> </TD 351><TD 352>Y</TD 353><TD 354> </TD 355><TD 356>Y</TD 357></TR 358><TR 359><TD 360> </TD 361><TD 362> </TD 363><TD 364> </TD 365><TD 366> </TD 367><TD 368>C</TD 369><TD 370> </TD 371><TD 372> </TD 373><TD 374> </TD 375></TR 376><TR 377><TD 378>2</TD 379><TD 380>Y</TD 381><TD 382> </TD 383><TD 384>Y</TD 385><TD 386> </TD 387><TD 388>Y</TD 389><TD 390> </TD 391><TD 392>Y</TD 393></TR 394><TR 395><TD 396> </TD 397><TD 398> </TD 399><TD 400> </TD 401><TD 402> </TD 403><TD 404> </TD 405><TD 406> </TD 407><TD 408> </TD 409></TR 410><TR 411><TD 412>3</TD 413><TD 414>Y</TD 415><TD 416> </TD 417><TD 418>Y</TD 419><TD 420> </TD 421><TD 422>Y</TD 423><TD 424> </TD 425><TD 426>Y</TD 427></TR 428></TBODY 429></TABLE 430><P 431></P 432></DIV 433> 434 </P 435></DIV 436></DIV 437></DIV 438><DIV 439CLASS="NAVFOOTER" 440><HR 441ALIGN="LEFT" 442WIDTH="100%"><TABLE 443SUMMARY="Footer navigation table" 444WIDTH="100%" 445BORDER="0" 446CELLPADDING="0" 447CELLSPACING="0" 448><TR 449><TD 450WIDTH="33%" 451ALIGN="left" 452VALIGN="top" 453><A 454HREF="r4850.htm" 455ACCESSKEY="P" 456>Prev</A 457></TD 458><TD 459WIDTH="34%" 460ALIGN="center" 461VALIGN="top" 462><A 463HREF="book1.htm" 464ACCESSKEY="H" 465>Home</A 466></TD 467><TD 468WIDTH="33%" 469ALIGN="right" 470VALIGN="top" 471><A 472HREF="r5154.htm" 473ACCESSKEY="N" 474>Next</A 475></TD 476></TR 477><TR 478><TD 479WIDTH="33%" 480ALIGN="left" 481VALIGN="top" 482>V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')</TD 483><TD 484WIDTH="34%" 485ALIGN="center" 486VALIGN="top" 487><A 488HREF="x3891.htm" 489ACCESSKEY="U" 490>Up</A 491></TD 492><TD 493WIDTH="33%" 494ALIGN="right" 495VALIGN="top" 496>V4L2_PIX_FMT_YUV422P ('422P')</TD 497></TR 498></TABLE 499></DIV 500></BODY 501></HTML 502> 503