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 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_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')" 17 HREF="r4850.htm"><LINK 18 REL="NEXT" 19 TITLE="V4L2_PIX_FMT_YUV422P ('422P')" 20 HREF="r5154.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="r4850.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="r5154.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="AEN5016" 74 ></A 75 >V4L2_PIX_FMT_YVU410 ('YVU9'), V4L2_PIX_FMT_YUV410 ('YUV9')</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN5020" 80 ></A 81 ><H2 82 >Name</H2 83 ><CODE 84 CLASS="CONSTANT" 85 >V4L2_PIX_FMT_YVU410</CODE 86 >, <CODE 87 CLASS="CONSTANT" 88 >V4L2_PIX_FMT_YUV410</CODE 89 > -- Planar formats with ¼ horizontal and 90 vertical chroma resolution, also known as YUV 4:1:0</DIV 91 ><DIV 92 CLASS="REFSECT1" 93 ><A 94 NAME="AEN5026" 95 ></A 96 ><H2 97 >Description</H2 98 ><P 99 >These are planar formats, as opposed to a packed format. 100 The three components are separated into three sub-images or planes. 101 The Y plane is first. The Y plane has one byte per pixel. For 102 <CODE 103 CLASS="CONSTANT" 104 >V4L2_PIX_FMT_YVU410</CODE 105 >, the Cr plane immediately 106 follows 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 108 to 16 pixels, a four-by-four square of the image. Following the Cr 109 plane is the Cb plane, just like the Cr plane. 110 <CODE 111 CLASS="CONSTANT" 112 >V4L2_PIX_FMT_YUV410</CODE 113 > is the same, except the Cb 114 plane comes first, then the Cr plane.</P 115 ><P 116 >If the Y plane has pad bytes after each row, then the Cr 117 and Cb planes have ¼ as many pad bytes after their rows. In 118 other words, four Cx rows (including padding) are exactly as long as 119 one Y row (including padding).</P 120 ><DIV 121 CLASS="EXAMPLE" 122 ><A 123 NAME="AEN5032" 124 ></A 125 ><P 126 ><B 127 >Example 2-1. <CODE 128 CLASS="CONSTANT" 129 >V4L2_PIX_FMT_YVU410</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="AEN5038" 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 >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 271 CLASS="FORMALPARA" 272 ><P 273 ><B 274 >Color Sample Location. </B 275 > <DIV 276 CLASS="INFORMALTABLE" 277 ><P 278 ></P 279 ><A 280 NAME="AEN5093" 281 ></A 282 ><TABLE 283 BORDER="0" 284 FRAME="void" 285 CLASS="CALSTABLE" 286 ><COL><COL><COL><COL><COL><COL><COL><TBODY 287 VALIGN="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 439 CLASS="NAVFOOTER" 440 ><HR 441 ALIGN="LEFT" 442 WIDTH="100%"><TABLE 443 SUMMARY="Footer navigation table" 444 WIDTH="100%" 445 BORDER="0" 446 CELLPADDING="0" 447 CELLSPACING="0" 448 ><TR 449 ><TD 450 WIDTH="33%" 451 ALIGN="left" 452 VALIGN="top" 453 ><A 454 HREF="r4850.htm" 455 ACCESSKEY="P" 456 >Prev</A 457 ></TD 458 ><TD 459 WIDTH="34%" 460 ALIGN="center" 461 VALIGN="top" 462 ><A 463 HREF="book1.htm" 464 ACCESSKEY="H" 465 >Home</A 466 ></TD 467 ><TD 468 WIDTH="33%" 469 ALIGN="right" 470 VALIGN="top" 471 ><A 472 HREF="r5154.htm" 473 ACCESSKEY="N" 474 >Next</A 475 ></TD 476 ></TR 477 ><TR 478 ><TD 479 WIDTH="33%" 480 ALIGN="left" 481 VALIGN="top" 482 >V4L2_PIX_FMT_YVU420 ('YV12'), V4L2_PIX_FMT_YUV420 ('YU12')</TD 483 ><TD 484 WIDTH="34%" 485 ALIGN="center" 486 VALIGN="top" 487 ><A 488 HREF="x3891.htm" 489 ACCESSKEY="U" 490 >Up</A 491 ></TD 492 ><TD 493 WIDTH="33%" 494 ALIGN="right" 495 VALIGN="top" 496 >V4L2_PIX_FMT_YUV422P ('422P')</TD 497 ></TR 498 ></TABLE 499 ></DIV 500 ></BODY 501 ></HTML 502 > 503