blob: 9c82106e8a26be7fae8c20b43d1b0451afc8dde3 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001Guidelines for Video4Linux 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
11Raw bayer
12---------
13
14The 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
212nd character: pixel order
22
23- B: BGGR
24- G: GBRG
25- g: GRBG
26- R: RGGB
27
283rd character: uncompressed bits-per-pixel 0--9, A--
29
304th character: compressed bits-per-pixel 0--9, A--