Merge tag 'for-5.3/block-20190708' of git://git.kernel.dk/linux-block
[linux-2.6-block.git] / Documentation / media / v4l-drivers / fourcc.rst
CommitLineData
f2ac8ce8
MCC
1.. SPDX-License-Identifier: GPL-2.0
2
09d6e35f 3Guidelines for Video4Linux pixel format 4CCs
1e3afaea
SA
4============================================
5
6Guidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are
7specified in this document. First of the characters defines the nature of
8the pixel format, compression and colour space. The interpretation of the
9other three characters depends on the first one.
10
11Existing 4CCs may not obey these guidelines.
12
1e3afaea
SA
13Raw bayer
14---------
15
16The following first characters are used by raw bayer formats:
17
00748947
MCC
18- B: raw bayer, uncompressed
19- b: raw bayer, DPCM compressed
20- a: A-law compressed
21- u: u-law compressed
1e3afaea
SA
22
232nd character: pixel order
00748947
MCC
24
25- B: BGGR
26- G: GBRG
27- g: GRBG
28- R: RGGB
1e3afaea
SA
29
303rd character: uncompressed bits-per-pixel 0--9, A--
31
324th character: compressed bits-per-pixel 0--9, A--