Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid
[cascardo/linux.git] / Documentation / media / uapi / v4l / pixfmt-indexed.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _pixfmt-indexed:
4
5 **************
6 Indexed Format
7 **************
8
9 In this format each pixel is represented by an 8 bit index into a 256
10 entry ARGB palette. It is intended for
11 :ref:`Video Output Overlays <osd>` only. There are no ioctls to access
12 the palette, this must be done with ioctls of the Linux framebuffer API.
13
14
15
16 .. flat-table:: Indexed Image Format
17     :header-rows:  2
18     :stub-columns: 0
19
20     * - Identifier
21       - Code
22       -
23       - :cspan:`7` Byte 0
24     * -
25       -
26       - Bit
27       - 7
28       - 6
29       - 5
30       - 4
31       - 3
32       - 2
33       - 1
34       - 0
35     * .. _V4L2-PIX-FMT-PAL8:
36
37       - ``V4L2_PIX_FMT_PAL8``
38       - 'PAL8'
39       -
40       - i\ :sub:`7`
41       - i\ :sub:`6`
42       - i\ :sub:`5`
43       - i\ :sub:`4`
44       - i\ :sub:`3`
45       - i\ :sub:`2`
46       - i\ :sub:`1`
47       - i\ :sub:`0`