1*4882a593Smuzhiyun.. SPDX-License-Identifier: GPL-2.0 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunGuidelines for Video4Linux pixel format 4CCs 4*4882a593Smuzhiyun============================================ 5*4882a593Smuzhiyun 6*4882a593SmuzhiyunGuidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are 7*4882a593Smuzhiyunspecified in this document. First of the characters defines the nature of 8*4882a593Smuzhiyunthe pixel format, compression and colour space. The interpretation of the 9*4882a593Smuzhiyunother three characters depends on the first one. 10*4882a593Smuzhiyun 11*4882a593SmuzhiyunExisting 4CCs may not obey these guidelines. 12*4882a593Smuzhiyun 13*4882a593SmuzhiyunRaw bayer 14*4882a593Smuzhiyun--------- 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunThe following first characters are used by raw bayer formats: 17*4882a593Smuzhiyun 18*4882a593Smuzhiyun- B: raw bayer, uncompressed 19*4882a593Smuzhiyun- b: raw bayer, DPCM compressed 20*4882a593Smuzhiyun- a: A-law compressed 21*4882a593Smuzhiyun- u: u-law compressed 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun2nd character: pixel order 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun- B: BGGR 26*4882a593Smuzhiyun- G: GBRG 27*4882a593Smuzhiyun- g: GRBG 28*4882a593Smuzhiyun- R: RGGB 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun3rd character: uncompressed bits-per-pixel 0--9, A-- 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun4th character: compressed bits-per-pixel 0--9, A-- 33