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 7 NAME="GENERATOR" 8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK 9 REL="HOME" 10 TITLE="Video for Linux Two API Specification" 11 HREF="book1.htm"><LINK 12 REL="UP" 13 TITLE="YUV Formats" 14 HREF="x3891.htm"><LINK 15 REL="PREVIOUS" 16 TITLE="V4L2_PIX_FMT_YUV422P ('422P')" 17 HREF="r5154.htm"><LINK 18 REL="NEXT" 19 TITLE="V4L2_PIX_FMT_NV12 ('NV12'), V4L2_PIX_FMT_NV21 ('NV21')" 20 HREF="r5470.htm"></HEAD 21 ><BODY 22 CLASS="REFENTRY" 23 BGCOLOR="#FFFFFF" 24 TEXT="#000000" 25 LINK="#0000FF" 26 VLINK="#840084" 27 ALINK="#0000FF" 28 ><DIV 29 CLASS="NAVHEADER" 30 ><TABLE 31 SUMMARY="Header navigation table" 32 WIDTH="100%" 33 BORDER="0" 34 CELLPADDING="0" 35 CELLSPACING="0" 36 ><TR 37 ><TH 38 COLSPAN="3" 39 ALIGN="center" 40 >Video for Linux Two API Specification: Revision 0.24</TH 41 ></TR 42 ><TR 43 ><TD 44 WIDTH="10%" 45 ALIGN="left" 46 VALIGN="bottom" 47 ><A 48 HREF="r5154.htm" 49 ACCESSKEY="P" 50 >Prev</A 51 ></TD 52 ><TD 53 WIDTH="80%" 54 ALIGN="center" 55 VALIGN="bottom" 56 ></TD 57 ><TD 58 WIDTH="10%" 59 ALIGN="right" 60 VALIGN="bottom" 61 ><A 62 HREF="r5470.htm" 63 ACCESSKEY="N" 64 >Next</A 65 ></TD 66 ></TR 67 ></TABLE 68 ><HR 69 ALIGN="LEFT" 70 WIDTH="100%"></DIV 71 ><H1 72 ><A 73 NAME="V4L2-PIX-FMT-YUV411P" 74 ></A 75 >V4L2_PIX_FMT_YUV411P ('411P')</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN5323" 80 ></A 81 ><H2 82 >Name</H2 83 ><CODE 84 CLASS="CONSTANT" 85 >V4L2_PIX_FMT_YUV411P</CODE 86 > -- Format with ¼ horizontal chroma resolution, 87 also known as YUV 4:1:1. Planar layout as opposed to 88 <CODE 89 CLASS="CONSTANT" 90 >V4L2_PIX_FMT_Y41P</CODE 91 ></DIV 92 ><DIV 93 CLASS="REFSECT1" 94 ><A 95 NAME="AEN5328" 96 ></A 97 ><H2 98 >Description</H2 99 ><P 100 >This format is not commonly used. This is a planar 101 format similar to the 4:2:2 planar format except with half as many 102 chroma. The three components are separated into three sub-images or 103 planes. The Y plane is first. The Y plane has one byte per pixel. The 104 Cb 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 106 to 4 pixels all on the same row. For example, 107 Cb<SUB 108 >0</SUB 109 > belongs to Y'<SUB 110 >00</SUB 111 >, 112 Y'<SUB 113 >01</SUB 114 >, Y'<SUB 115 >02</SUB 116 > and 117 Y'<SUB 118 >03</SUB 119 >. Following the Cb plane is the Cr plane, 120 just like the Cb plane.</P 121 ><P 122 >If the Y plane has pad bytes after each row, then the Cr 123 and Cb planes have ¼ as many pad bytes after their rows. In 124 other words, four C x rows (including padding) is exactly as long as 125 one Y row (including padding).</P 126 ><DIV 127 CLASS="EXAMPLE" 128 ><A 129 NAME="AEN5337" 130 ></A 131 ><P 132 ><B 133 >Example 2-1. <CODE 134 CLASS="CONSTANT" 135 >V4L2_PIX_FMT_YUV411P</CODE 136 > 4 × 4 137 pixel image</B 138 ></P 139 ><DIV 140 CLASS="FORMALPARA" 141 ><P 142 ><B 143 >Byte Order. </B 144 >Each cell is one byte. 145 <DIV 146 CLASS="INFORMALTABLE" 147 ><P 148 ></P 149 ><A 150 NAME="AEN5343" 151 ></A 152 ><TABLE 153 BORDER="0" 154 FRAME="void" 155 CLASS="CALSTABLE" 156 ><COL 157 WIDTH="2*" 158 ALIGN="LEFT"><COL><COL><COL><COL><TBODY 159 VALIGN="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 361 CLASS="FORMALPARA" 362 ><P 363 ><B 364 >Color Sample Location. </B 365 > <DIV 366 CLASS="INFORMALTABLE" 367 ><P 368 ></P 369 ><A 370 NAME="AEN5422" 371 ></A 372 ><TABLE 373 BORDER="0" 374 FRAME="void" 375 CLASS="CALSTABLE" 376 ><COL><COL><COL><COL><COL><COL><COL><TBODY 377 VALIGN="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 479 CLASS="NAVFOOTER" 480 ><HR 481 ALIGN="LEFT" 482 WIDTH="100%"><TABLE 483 SUMMARY="Footer navigation table" 484 WIDTH="100%" 485 BORDER="0" 486 CELLPADDING="0" 487 CELLSPACING="0" 488 ><TR 489 ><TD 490 WIDTH="33%" 491 ALIGN="left" 492 VALIGN="top" 493 ><A 494 HREF="r5154.htm" 495 ACCESSKEY="P" 496 >Prev</A 497 ></TD 498 ><TD 499 WIDTH="34%" 500 ALIGN="center" 501 VALIGN="top" 502 ><A 503 HREF="book1.htm" 504 ACCESSKEY="H" 505 >Home</A 506 ></TD 507 ><TD 508 WIDTH="33%" 509 ALIGN="right" 510 VALIGN="top" 511 ><A 512 HREF="r5470.htm" 513 ACCESSKEY="N" 514 >Next</A 515 ></TD 516 ></TR 517 ><TR 518 ><TD 519 WIDTH="33%" 520 ALIGN="left" 521 VALIGN="top" 522 >V4L2_PIX_FMT_YUV422P ('422P')</TD 523 ><TD 524 WIDTH="34%" 525 ALIGN="center" 526 VALIGN="top" 527 ><A 528 HREF="x3891.htm" 529 ACCESSKEY="U" 530 >Up</A 531 ></TD 532 ><TD 533 WIDTH="33%" 534 ALIGN="right" 535 VALIGN="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