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 >Indexed Format</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="Image Formats" 14 HREF="c2030.htm"><LINK 15 REL="PREVIOUS" 16 TITLE="Colorspaces" 17 HREF="x2123.htm"><LINK 18 REL="NEXT" 19 TITLE="RGB Formats" 20 HREF="x2490.htm"></HEAD 21 ><BODY 22 CLASS="SECTION" 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="x2123.htm" 49 ACCESSKEY="P" 50 >Prev</A 51 ></TD 52 ><TD 53 WIDTH="80%" 54 ALIGN="center" 55 VALIGN="bottom" 56 >Chapter 2. Image Formats</TD 57 ><TD 58 WIDTH="10%" 59 ALIGN="right" 60 VALIGN="bottom" 61 ><A 62 HREF="x2490.htm" 63 ACCESSKEY="N" 64 >Next</A 65 ></TD 66 ></TR 67 ></TABLE 68 ><HR 69 ALIGN="LEFT" 70 WIDTH="100%"></DIV 71 ><DIV 72 CLASS="SECTION" 73 ><H1 74 CLASS="SECTION" 75 ><A 76 NAME="PIXFMT-INDEXED" 77 >2.3. Indexed Format</A 78 ></H1 79 ><P 80 >In this format each pixel is represented by an 8 bit index 81 into a 256 entry ARGB palette. It is intended for <A 82 HREF="x6909.htm" 83 >Video Output Overlays</A 84 > only. There are no ioctls to 85 access the palette, this must be done with ioctls of the Linux framebuffer API.</P 86 ><DIV 87 CLASS="TABLE" 88 ><A 89 NAME="AEN2432" 90 ></A 91 ><P 92 ><B 93 >Table 2-3. Indexed Image Format</B 94 ></P 95 ><TABLE 96 BORDER="0" 97 FRAME="void" 98 CLASS="CALSTABLE" 99 ><COL 100 WIDTH="1*" 101 ALIGN="LEFT" 102 TITLE="ID"><COL 103 WIDTH="1*" 104 TITLE="FOURCC"><COL 105 WIDTH="1*" 106 TITLE="BIT"><COL 107 WIDTH="1*" 108 ALIGN="CENTER" 109 TITLE="B07"><COL 110 WIDTH="1*" 111 ALIGN="CENTER" 112 TITLE="B06"><COL 113 WIDTH="1*" 114 ALIGN="CENTER" 115 TITLE="B05"><COL 116 WIDTH="1*" 117 ALIGN="CENTER" 118 TITLE="B04"><COL 119 WIDTH="1*" 120 ALIGN="CENTER" 121 TITLE="B03"><COL 122 WIDTH="1*" 123 ALIGN="CENTER" 124 TITLE="B02"><COL 125 WIDTH="1*" 126 ALIGN="CENTER" 127 TITLE="B01"><COL 128 WIDTH="1*" 129 ALIGN="CENTER" 130 TITLE="B00"><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><COL><THEAD 131 ><TR 132 ><TH 133 >Identifier</TH 134 ><TH 135 >Code</TH 136 ><TH 137 > </TH 138 ><TH 139 COLSPAN="8" 140 >Byte 0</TH 141 ><TD 142 > </TD 143 ><TD 144 > </TD 145 ><TD 146 > </TD 147 ><TD 148 > </TD 149 ><TD 150 > </TD 151 ><TD 152 > </TD 153 ><TD 154 > </TD 155 ><TD 156 > </TD 157 ><TD 158 > </TD 159 ><TD 160 > </TD 161 ><TD 162 > </TD 163 ><TD 164 > </TD 165 ><TD 166 > </TD 167 ><TD 168 > </TD 169 ><TD 170 > </TD 171 ><TD 172 > </TD 173 ><TD 174 > </TD 175 ><TD 176 > </TD 177 ><TD 178 > </TD 179 ><TD 180 > </TD 181 ><TD 182 > </TD 183 ><TD 184 > </TD 185 ><TD 186 > </TD 187 ><TD 188 > </TD 189 ><TD 190 > </TD 191 ><TD 192 > </TD 193 ></TR 194 ><TR 195 ><TH 196 > </TH 197 ><TH 198 > </TH 199 ><TH 200 >Bit</TH 201 ><TH 202 >7</TH 203 ><TH 204 >6</TH 205 ><TH 206 >5</TH 207 ><TH 208 >4</TH 209 ><TH 210 >3</TH 211 ><TH 212 >2</TH 213 ><TH 214 >1</TH 215 ><TH 216 >0</TH 217 ><TD 218 > </TD 219 ><TD 220 > </TD 221 ><TD 222 > </TD 223 ><TD 224 > </TD 225 ><TD 226 > </TD 227 ><TD 228 > </TD 229 ><TD 230 > </TD 231 ><TD 232 > </TD 233 ><TD 234 > </TD 235 ><TD 236 > </TD 237 ><TD 238 > </TD 239 ><TD 240 > </TD 241 ><TD 242 > </TD 243 ><TD 244 > </TD 245 ><TD 246 > </TD 247 ><TD 248 > </TD 249 ><TD 250 > </TD 251 ><TD 252 > </TD 253 ><TD 254 > </TD 255 ><TD 256 > </TD 257 ><TD 258 > </TD 259 ><TD 260 > </TD 261 ><TD 262 > </TD 263 ><TD 264 > </TD 265 ><TD 266 > </TD 267 ><TD 268 > </TD 269 ></TR 270 ></THEAD 271 ><TBODY 272 VALIGN="TOP" 273 ><TR 274 ><A 275 NAME="V4L2-PIX-FMT-PAL8" 276 ></A 277 ><TD 278 ><CODE 279 CLASS="CONSTANT" 280 >V4L2_PIX_FMT_PAL8</CODE 281 ></TD 282 ><TD 283 >'PAL8'</TD 284 ><TD 285 > </TD 286 ><TD 287 >i<SUB 288 >7</SUB 289 ></TD 290 ><TD 291 >i<SUB 292 >6</SUB 293 ></TD 294 ><TD 295 >i<SUB 296 >5</SUB 297 ></TD 298 ><TD 299 >i<SUB 300 >4</SUB 301 ></TD 302 ><TD 303 >i<SUB 304 >3</SUB 305 ></TD 306 ><TD 307 >i<SUB 308 >2</SUB 309 ></TD 310 ><TD 311 >i<SUB 312 >1</SUB 313 ></TD 314 ><TD 315 >i<SUB 316 >0</SUB 317 ></TD 318 ><TD 319 > </TD 320 ><TD 321 > </TD 322 ><TD 323 > </TD 324 ><TD 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 > </TD 340 ><TD 341 > </TD 342 ><TD 343 > </TD 344 ><TD 345 > </TD 346 ><TD 347 > </TD 348 ><TD 349 > </TD 350 ><TD 351 > </TD 352 ><TD 353 > </TD 354 ><TD 355 > </TD 356 ><TD 357 > </TD 358 ><TD 359 > </TD 360 ><TD 361 > </TD 362 ><TD 363 > </TD 364 ><TD 365 > </TD 366 ><TD 367 > </TD 368 ><TD 369 > </TD 370 ></TR 371 ></TBODY 372 ></TABLE 373 ></DIV 374 ></DIV 375 ><DIV 376 CLASS="NAVFOOTER" 377 ><HR 378 ALIGN="LEFT" 379 WIDTH="100%"><TABLE 380 SUMMARY="Footer navigation table" 381 WIDTH="100%" 382 BORDER="0" 383 CELLPADDING="0" 384 CELLSPACING="0" 385 ><TR 386 ><TD 387 WIDTH="33%" 388 ALIGN="left" 389 VALIGN="top" 390 ><A 391 HREF="x2123.htm" 392 ACCESSKEY="P" 393 >Prev</A 394 ></TD 395 ><TD 396 WIDTH="34%" 397 ALIGN="center" 398 VALIGN="top" 399 ><A 400 HREF="book1.htm" 401 ACCESSKEY="H" 402 >Home</A 403 ></TD 404 ><TD 405 WIDTH="33%" 406 ALIGN="right" 407 VALIGN="top" 408 ><A 409 HREF="x2490.htm" 410 ACCESSKEY="N" 411 >Next</A 412 ></TD 413 ></TR 414 ><TR 415 ><TD 416 WIDTH="33%" 417 ALIGN="left" 418 VALIGN="top" 419 >Colorspaces</TD 420 ><TD 421 WIDTH="34%" 422 ALIGN="center" 423 VALIGN="top" 424 ><A 425 HREF="c2030.htm" 426 ACCESSKEY="U" 427 >Up</A 428 ></TD 429 ><TD 430 WIDTH="33%" 431 ALIGN="right" 432 VALIGN="top" 433 >RGB Formats</TD 434 ></TR 435 ></TABLE 436 ></DIV 437 ></BODY 438 ></HTML 439 > 440