18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ciGuidelines for Video4Linux pixel format 4CCs 48c2ecf20Sopenharmony_ci============================================ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ciGuidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are 78c2ecf20Sopenharmony_cispecified in this document. First of the characters defines the nature of 88c2ecf20Sopenharmony_cithe pixel format, compression and colour space. The interpretation of the 98c2ecf20Sopenharmony_ciother three characters depends on the first one. 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ciExisting 4CCs may not obey these guidelines. 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciRaw bayer 148c2ecf20Sopenharmony_ci--------- 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciThe following first characters are used by raw bayer formats: 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci- B: raw bayer, uncompressed 198c2ecf20Sopenharmony_ci- b: raw bayer, DPCM compressed 208c2ecf20Sopenharmony_ci- a: A-law compressed 218c2ecf20Sopenharmony_ci- u: u-law compressed 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci2nd character: pixel order 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci- B: BGGR 268c2ecf20Sopenharmony_ci- G: GBRG 278c2ecf20Sopenharmony_ci- g: GRBG 288c2ecf20Sopenharmony_ci- R: RGGB 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci3rd character: uncompressed bits-per-pixel 0--9, A-- 318c2ecf20Sopenharmony_ci 328c2ecf20Sopenharmony_ci4th character: compressed bits-per-pixel 0--9, A-- 33