0001 .. SPDX-License-Identifier: GPL-2.0
0002
0003 Guidelines for Video4Linux pixel format 4CCs
0004 ============================================
0005
0006 Guidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are
0007 specified in this document. First of the characters defines the nature of
0008 the pixel format, compression and colour space. The interpretation of the
0009 other three characters depends on the first one.
0010
0011 Existing 4CCs may not obey these guidelines.
0012
0013 Raw bayer
0014 ---------
0015
0016 The following first characters are used by raw bayer formats:
0017
0018 - B: raw bayer, uncompressed
0019 - b: raw bayer, DPCM compressed
0020 - a: A-law compressed
0021 - u: u-law compressed
0022
0023 2nd character: pixel order
0024
0025 - B: BGGR
0026 - G: GBRG
0027 - g: GRBG
0028 - R: RGGB
0029
0030 3rd character: uncompressed bits-per-pixel 0--9, A--
0031
0032 4th character: compressed bits-per-pixel 0--9, A--