1.. Permission is granted to copy, distribute and/or modify this
2.. document under the terms of the GNU Free Documentation License,
3.. Version 1.1 or any later version published by the Free Software
4.. Foundation, with no Invariant Sections, no Front-Cover Texts
5.. and no Back-Cover Texts. A copy of the license is included at
6.. Documentation/userspace-api/media/fdl-appendix.rst.
7..
8.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
9
10.. _pixfmt-indexed:
11
12**************
13Indexed Format
14**************
15
16In this format each pixel is represented by an 8 bit index into a 256
17entry ARGB palette. It is intended for
18:ref:`Video Output Overlays <osd>` only. There are no ioctls to access
19the palette, this must be done with ioctls of the Linux framebuffer API.
20
21
22
23.. flat-table:: Indexed Image Format
24    :header-rows:  2
25    :stub-columns: 0
26
27    * - Identifier
28      - Code
29      -
30      - :cspan:`7` Byte 0
31    * -
32      -
33      - Bit
34      - 7
35      - 6
36      - 5
37      - 4
38      - 3
39      - 2
40      - 1
41      - 0
42    * .. _V4L2-PIX-FMT-PAL8:
43
44      - ``V4L2_PIX_FMT_PAL8``
45      - 'PAL8'
46      -
47      - i\ :sub:`7`
48      - i\ :sub:`6`
49      - i\ :sub:`5`
50      - i\ :sub:`4`
51      - i\ :sub:`3`
52      - i\ :sub:`2`
53      - i\ :sub:`1`
54      - i\ :sub:`0`
55