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_YUV422P ('422P')</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_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')" 17 HREF="r5016.htm"><LINK 18 REL="NEXT" 19 TITLE="V4L2_PIX_FMT_YUV411P ('411P')" 20 HREF="r5319.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="r5016.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="r5319.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-YUV422P" 74 ></A 75 >V4L2_PIX_FMT_YUV422P ('422P')</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN5158" 80 ></A 81 ><H2 82 >Name</H2 83 ><CODE 84 CLASS="CONSTANT" 85 >V4L2_PIX_FMT_YUV422P</CODE 86 > -- Format with ½ horizontal chroma resolution, 87 also known as YUV 4:2:2. Planar layout as opposed to 88 <CODE 89 CLASS="CONSTANT" 90 >V4L2_PIX_FMT_YUYV</CODE 91 ></DIV 92 ><DIV 93 CLASS="REFSECT1" 94 ><A 95 NAME="AEN5163" 96 ></A 97 ><H2 98 >Description</H2 99 ><P 100 >This format is not commonly used. This is a planar 101 version of the YUYV format. The three components are separated into 102 three sub-images or planes. The Y plane is first. The Y plane has one 103 byte per pixel. The Cb plane immediately follows the Y plane in 104 memory. The Cb plane is half the width of the Y plane (and of the 105 image). Each Cb belongs to two pixels. For example, 106 Cb<SUB 107 >0</SUB 108 > belongs to Y'<SUB 109 >00</SUB 110 >, 111 Y'<SUB 112 >01</SUB 113 >. Following the Cb plane is the Cr plane, 114 just like the Cb plane.</P 115 ><P 116 >If the Y plane has pad bytes after each row, then the Cr 117 and Cb planes have half as many pad bytes after their rows. In other 118 words, two Cx rows (including padding) is exactly as long as one Y row 119 (including padding).</P 120 ><DIV 121 CLASS="EXAMPLE" 122 ><A 123 NAME="AEN5170" 124 ></A 125 ><P 126 ><B 127 >Example 2-1. <CODE 128 CLASS="CONSTANT" 129 >V4L2_PIX_FMT_YUV422P</CODE 130 > 4 × 4 131 pixel image</B 132 ></P 133 ><DIV 134 CLASS="FORMALPARA" 135 ><P 136 ><B 137 >Byte Order. </B 138 >Each cell is one byte. 139 <DIV 140 CLASS="INFORMALTABLE" 141 ><P 142 ></P 143 ><A 144 NAME="AEN5176" 145 ></A 146 ><TABLE 147 BORDER="0" 148 FRAME="void" 149 CLASS="CALSTABLE" 150 ><COL 151 WIDTH="2*" 152 ALIGN="LEFT"><COL><COL><COL><COL><TBODY 153 VALIGN="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 >Cb<SUB 239 >00</SUB 240 ></TD 241 ><TD 242 >Cb<SUB 243 >01</SUB 244 ></TD 245 ><TD 246 > </TD 247 ><TD 248 > </TD 249 ></TR 250 ><TR 251 ><TD 252 >start + 18:</TD 253 ><TD 254 >Cb<SUB 255 >10</SUB 256 ></TD 257 ><TD 258 >Cb<SUB 259 >11</SUB 260 ></TD 261 ><TD 262 > </TD 263 ><TD 264 > </TD 265 ></TR 266 ><TR 267 ><TD 268 >start + 20:</TD 269 ><TD 270 >Cb<SUB 271 >20</SUB 272 ></TD 273 ><TD 274 >Cb<SUB 275 >21</SUB 276 ></TD 277 ><TD 278 > </TD 279 ><TD 280 > </TD 281 ></TR 282 ><TR 283 ><TD 284 >start + 22:</TD 285 ><TD 286 >Cb<SUB 287 >30</SUB 288 ></TD 289 ><TD 290 >Cb<SUB 291 >31</SUB 292 ></TD 293 ><TD 294 > </TD 295 ><TD 296 > </TD 297 ></TR 298 ><TR 299 ><TD 300 >start + 24:</TD 301 ><TD 302 >Cr<SUB 303 >00</SUB 304 ></TD 305 ><TD 306 >Cr<SUB 307 >01</SUB 308 ></TD 309 ><TD 310 > </TD 311 ><TD 312 > </TD 313 ></TR 314 ><TR 315 ><TD 316 >start + 26:</TD 317 ><TD 318 >Cr<SUB 319 >10</SUB 320 ></TD 321 ><TD 322 >Cr<SUB 323 >11</SUB 324 ></TD 325 ><TD 326 > </TD 327 ><TD 328 > </TD 329 ></TR 330 ><TR 331 ><TD 332 >start + 28:</TD 333 ><TD 334 >Cr<SUB 335 >20</SUB 336 ></TD 337 ><TD 338 >Cr<SUB 339 >21</SUB 340 ></TD 341 ><TD 342 > </TD 343 ><TD 344 > </TD 345 ></TR 346 ><TR 347 ><TD 348 >start + 30:</TD 349 ><TD 350 >Cr<SUB 351 >30</SUB 352 ></TD 353 ><TD 354 >Cr<SUB 355 >31</SUB 356 ></TD 357 ><TD 358 > </TD 359 ><TD 360 > </TD 361 ></TR 362 ></TBODY 363 ></TABLE 364 ><P 365 ></P 366 ></DIV 367 > 368 </P 369 ></DIV 370 ><DIV 371 CLASS="FORMALPARA" 372 ><P 373 ><B 374 >Color Sample Location. </B 375 > <DIV 376 CLASS="INFORMALTABLE" 377 ><P 378 ></P 379 ><A 380 NAME="AEN5271" 381 ></A 382 ><TABLE 383 BORDER="0" 384 FRAME="void" 385 CLASS="CALSTABLE" 386 ><COL><COL><COL><COL><COL><COL><COL><TBODY 387 VALIGN="TOP" 388 ><TR 389 ><TD 390 > </TD 391 ><TD 392 >0</TD 393 ><TD 394 > </TD 395 ><TD 396 >1</TD 397 ><TD 398 > </TD 399 ><TD 400 >2</TD 401 ><TD 402 > </TD 403 ><TD 404 >3</TD 405 ></TR 406 ><TR 407 ><TD 408 >0</TD 409 ><TD 410 >Y</TD 411 ><TD 412 >C</TD 413 ><TD 414 >Y</TD 415 ><TD 416 > </TD 417 ><TD 418 >Y</TD 419 ><TD 420 >C</TD 421 ><TD 422 >Y</TD 423 ></TR 424 ><TR 425 ><TD 426 >1</TD 427 ><TD 428 >Y</TD 429 ><TD 430 >C</TD 431 ><TD 432 >Y</TD 433 ><TD 434 > </TD 435 ><TD 436 >Y</TD 437 ><TD 438 >C</TD 439 ><TD 440 >Y</TD 441 ></TR 442 ><TR 443 ><TD 444 >2</TD 445 ><TD 446 >Y</TD 447 ><TD 448 >C</TD 449 ><TD 450 >Y</TD 451 ><TD 452 > </TD 453 ><TD 454 >Y</TD 455 ><TD 456 >C</TD 457 ><TD 458 >Y</TD 459 ></TR 460 ><TR 461 ><TD 462 >3</TD 463 ><TD 464 >Y</TD 465 ><TD 466 >C</TD 467 ><TD 468 >Y</TD 469 ><TD 470 > </TD 471 ><TD 472 >Y</TD 473 ><TD 474 >C</TD 475 ><TD 476 >Y</TD 477 ></TR 478 ></TBODY 479 ></TABLE 480 ><P 481 ></P 482 ></DIV 483 > 484 </P 485 ></DIV 486 ></DIV 487 ></DIV 488 ><DIV 489 CLASS="NAVFOOTER" 490 ><HR 491 ALIGN="LEFT" 492 WIDTH="100%"><TABLE 493 SUMMARY="Footer navigation table" 494 WIDTH="100%" 495 BORDER="0" 496 CELLPADDING="0" 497 CELLSPACING="0" 498 ><TR 499 ><TD 500 WIDTH="33%" 501 ALIGN="left" 502 VALIGN="top" 503 ><A 504 HREF="r5016.htm" 505 ACCESSKEY="P" 506 >Prev</A 507 ></TD 508 ><TD 509 WIDTH="34%" 510 ALIGN="center" 511 VALIGN="top" 512 ><A 513 HREF="book1.htm" 514 ACCESSKEY="H" 515 >Home</A 516 ></TD 517 ><TD 518 WIDTH="33%" 519 ALIGN="right" 520 VALIGN="top" 521 ><A 522 HREF="r5319.htm" 523 ACCESSKEY="N" 524 >Next</A 525 ></TD 526 ></TR 527 ><TR 528 ><TD 529 WIDTH="33%" 530 ALIGN="left" 531 VALIGN="top" 532 >V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')</TD 533 ><TD 534 WIDTH="34%" 535 ALIGN="center" 536 VALIGN="top" 537 ><A 538 HREF="x3891.htm" 539 ACCESSKEY="U" 540 >Up</A 541 ></TD 542 ><TD 543 WIDTH="33%" 544 ALIGN="right" 545 VALIGN="top" 546 >V4L2_PIX_FMT_YUV411P ('411P')</TD 547 ></TR 548 ></TABLE 549 ></DIV 550 ></BODY 551 ></HTML 552 > 553