[media] doc-rst: add soc-camera documentation
[deliverable/linux.git] / Documentation / media / v4l-drivers / fourcc.rst
CommitLineData
1e3afaea
SA
1Guidelines for Linux4Linux pixel format 4CCs
2============================================
3
4Guidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are
5specified in this document. First of the characters defines the nature of
6the pixel format, compression and colour space. The interpretation of the
7other three characters depends on the first one.
8
9Existing 4CCs may not obey these guidelines.
10
1e3afaea
SA
11Raw bayer
12---------
13
14The following first characters are used by raw bayer formats:
15
00748947
MCC
16- B: raw bayer, uncompressed
17- b: raw bayer, DPCM compressed
18- a: A-law compressed
19- u: u-law compressed
1e3afaea
SA
20
212nd character: pixel order
00748947
MCC
22
23- B: BGGR
24- G: GBRG
25- g: GRBG
26- R: RGGB
1e3afaea
SA
27
283rd character: uncompressed bits-per-pixel 0--9, A--
29
304th character: compressed bits-per-pixel 0--9, A--
This page took 0.229554 seconds and 5 git commands to generate.