1 .. SPDX-License-Identifier: GPL-2.0 1 .. SPDX-License-Identifier: GPL-2.0 2 2 3 Guidelines for Video4Linux pixel format 4CCs 3 Guidelines for Video4Linux pixel format 4CCs 4 ============================================ 4 ============================================ 5 5 6 Guidelines for Video4Linux 4CC codes defined u 6 Guidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are 7 specified in this document. First of the chara 7 specified in this document. First of the characters defines the nature of 8 the pixel format, compression and colour space 8 the pixel format, compression and colour space. The interpretation of the 9 other three characters depends on the first on 9 other three characters depends on the first one. 10 10 11 Existing 4CCs may not obey these guidelines. 11 Existing 4CCs may not obey these guidelines. 12 12 13 Raw bayer 13 Raw bayer 14 --------- 14 --------- 15 15 16 The following first characters are used by raw 16 The following first characters are used by raw bayer formats: 17 17 18 - B: raw bayer, uncompressed 18 - B: raw bayer, uncompressed 19 - b: raw bayer, DPCM compressed 19 - b: raw bayer, DPCM compressed 20 - a: A-law compressed 20 - a: A-law compressed 21 - u: u-law compressed 21 - u: u-law compressed 22 22 23 2nd character: pixel order 23 2nd character: pixel order 24 24 25 - B: BGGR 25 - B: BGGR 26 - G: GBRG 26 - G: GBRG 27 - g: GRBG 27 - g: GRBG 28 - R: RGGB 28 - R: RGGB 29 29 30 3rd character: uncompressed bits-per-pixel 0-- 30 3rd character: uncompressed bits-per-pixel 0--9, A-- 31 31 32 4th character: compressed bits-per-pixel 0--9, 32 4th character: compressed bits-per-pixel 0--9, A--
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.