Merge tag 'armsoc-arm64' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[sfrench/cifs-2.6.git] / Documentation / media / v4l-drivers / fourcc.rst
1 Guidelines for Linux4Linux pixel format 4CCs
2 ============================================
3
4 Guidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are
5 specified in this document. First of the characters defines the nature of
6 the pixel format, compression and colour space. The interpretation of the
7 other three characters depends on the first one.
8
9 Existing 4CCs may not obey these guidelines.
10
11 Raw bayer
12 ---------
13
14 The following first characters are used by raw bayer formats:
15
16 - B: raw bayer, uncompressed
17 - b: raw bayer, DPCM compressed
18 - a: A-law compressed
19 - u: u-law compressed
20
21 2nd character: pixel order
22
23 - B: BGGR
24 - G: GBRG
25 - g: GRBG
26 - R: RGGB
27
28 3rd character: uncompressed bits-per-pixel 0--9, A--
29
30 4th character: compressed bits-per-pixel 0--9, A--