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 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="Image Formats" 14HREF="c2030.htm"><LINK 15REL="PREVIOUS" 16TITLE="Colorspaces" 17HREF="x2123.htm"><LINK 18REL="NEXT" 19TITLE="RGB Formats" 20HREF="x2490.htm"></HEAD 21><BODY 22CLASS="SECTION" 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="x2123.htm" 49ACCESSKEY="P" 50>Prev</A 51></TD 52><TD 53WIDTH="80%" 54ALIGN="center" 55VALIGN="bottom" 56>Chapter 2. Image Formats</TD 57><TD 58WIDTH="10%" 59ALIGN="right" 60VALIGN="bottom" 61><A 62HREF="x2490.htm" 63ACCESSKEY="N" 64>Next</A 65></TD 66></TR 67></TABLE 68><HR 69ALIGN="LEFT" 70WIDTH="100%"></DIV 71><DIV 72CLASS="SECTION" 73><H1 74CLASS="SECTION" 75><A 76NAME="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 81into a 256 entry ARGB palette. It is intended for <A 82HREF="x6909.htm" 83>Video Output Overlays</A 84> only. There are no ioctls to 85access the palette, this must be done with ioctls of the Linux framebuffer API.</P 86><DIV 87CLASS="TABLE" 88><A 89NAME="AEN2432" 90></A 91><P 92><B 93>Table 2-3. Indexed Image Format</B 94></P 95><TABLE 96BORDER="0" 97FRAME="void" 98CLASS="CALSTABLE" 99><COL 100WIDTH="1*" 101ALIGN="LEFT" 102TITLE="ID"><COL 103WIDTH="1*" 104TITLE="FOURCC"><COL 105WIDTH="1*" 106TITLE="BIT"><COL 107WIDTH="1*" 108ALIGN="CENTER" 109TITLE="B07"><COL 110WIDTH="1*" 111ALIGN="CENTER" 112TITLE="B06"><COL 113WIDTH="1*" 114ALIGN="CENTER" 115TITLE="B05"><COL 116WIDTH="1*" 117ALIGN="CENTER" 118TITLE="B04"><COL 119WIDTH="1*" 120ALIGN="CENTER" 121TITLE="B03"><COL 122WIDTH="1*" 123ALIGN="CENTER" 124TITLE="B02"><COL 125WIDTH="1*" 126ALIGN="CENTER" 127TITLE="B01"><COL 128WIDTH="1*" 129ALIGN="CENTER" 130TITLE="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 139COLSPAN="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 272VALIGN="TOP" 273><TR 274><A 275NAME="V4L2-PIX-FMT-PAL8" 276></A 277><TD 278><CODE 279CLASS="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 376CLASS="NAVFOOTER" 377><HR 378ALIGN="LEFT" 379WIDTH="100%"><TABLE 380SUMMARY="Footer navigation table" 381WIDTH="100%" 382BORDER="0" 383CELLPADDING="0" 384CELLSPACING="0" 385><TR 386><TD 387WIDTH="33%" 388ALIGN="left" 389VALIGN="top" 390><A 391HREF="x2123.htm" 392ACCESSKEY="P" 393>Prev</A 394></TD 395><TD 396WIDTH="34%" 397ALIGN="center" 398VALIGN="top" 399><A 400HREF="book1.htm" 401ACCESSKEY="H" 402>Home</A 403></TD 404><TD 405WIDTH="33%" 406ALIGN="right" 407VALIGN="top" 408><A 409HREF="x2490.htm" 410ACCESSKEY="N" 411>Next</A 412></TD 413></TR 414><TR 415><TD 416WIDTH="33%" 417ALIGN="left" 418VALIGN="top" 419>Colorspaces</TD 420><TD 421WIDTH="34%" 422ALIGN="center" 423VALIGN="top" 424><A 425HREF="c2030.htm" 426ACCESSKEY="U" 427>Up</A 428></TD 429><TD 430WIDTH="33%" 431ALIGN="right" 432VALIGN="top" 433>RGB Formats</TD 434></TR 435></TABLE 436></DIV 437></BODY 438></HTML 439> 440