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