• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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>&nbsp;</TH
138><TH
139COLSPAN="8"
140>Byte&nbsp;0</TH
141><TD
142>&nbsp;</TD
143><TD
144>&nbsp;</TD
145><TD
146>&nbsp;</TD
147><TD
148>&nbsp;</TD
149><TD
150>&nbsp;</TD
151><TD
152>&nbsp;</TD
153><TD
154>&nbsp;</TD
155><TD
156>&nbsp;</TD
157><TD
158>&nbsp;</TD
159><TD
160>&nbsp;</TD
161><TD
162>&nbsp;</TD
163><TD
164>&nbsp;</TD
165><TD
166>&nbsp;</TD
167><TD
168>&nbsp;</TD
169><TD
170>&nbsp;</TD
171><TD
172>&nbsp;</TD
173><TD
174>&nbsp;</TD
175><TD
176>&nbsp;</TD
177><TD
178>&nbsp;</TD
179><TD
180>&nbsp;</TD
181><TD
182>&nbsp;</TD
183><TD
184>&nbsp;</TD
185><TD
186>&nbsp;</TD
187><TD
188>&nbsp;</TD
189><TD
190>&nbsp;</TD
191><TD
192>&nbsp;</TD
193></TR
194><TR
195><TH
196>&nbsp;</TH
197><TH
198>&nbsp;</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>&nbsp;</TD
219><TD
220>&nbsp;</TD
221><TD
222>&nbsp;</TD
223><TD
224>&nbsp;</TD
225><TD
226>&nbsp;</TD
227><TD
228>&nbsp;</TD
229><TD
230>&nbsp;</TD
231><TD
232>&nbsp;</TD
233><TD
234>&nbsp;</TD
235><TD
236>&nbsp;</TD
237><TD
238>&nbsp;</TD
239><TD
240>&nbsp;</TD
241><TD
242>&nbsp;</TD
243><TD
244>&nbsp;</TD
245><TD
246>&nbsp;</TD
247><TD
248>&nbsp;</TD
249><TD
250>&nbsp;</TD
251><TD
252>&nbsp;</TD
253><TD
254>&nbsp;</TD
255><TD
256>&nbsp;</TD
257><TD
258>&nbsp;</TD
259><TD
260>&nbsp;</TD
261><TD
262>&nbsp;</TD
263><TD
264>&nbsp;</TD
265><TD
266>&nbsp;</TD
267><TD
268>&nbsp;</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>&nbsp;</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>&nbsp;</TD
320><TD
321>&nbsp;</TD
322><TD
323>&nbsp;</TD
324><TD
325>&nbsp;</TD
326><TD
327>&nbsp;</TD
328><TD
329>&nbsp;</TD
330><TD
331>&nbsp;</TD
332><TD
333>&nbsp;</TD
334><TD
335>&nbsp;</TD
336><TD
337>&nbsp;</TD
338><TD
339>&nbsp;</TD
340><TD
341>&nbsp;</TD
342><TD
343>&nbsp;</TD
344><TD
345>&nbsp;</TD
346><TD
347>&nbsp;</TD
348><TD
349>&nbsp;</TD
350><TD
351>&nbsp;</TD
352><TD
353>&nbsp;</TD
354><TD
355>&nbsp;</TD
356><TD
357>&nbsp;</TD
358><TD
359>&nbsp;</TD
360><TD
361>&nbsp;</TD
362><TD
363>&nbsp;</TD
364><TD
365>&nbsp;</TD
366><TD
367>&nbsp;</TD
368><TD
369>&nbsp;</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