4CCs.txt 776 B

1234567891011121314151617181920212223242526272829303132
  1. Guidelines for Linux4Linux pixel format 4CCs
  2. ============================================
  3. Guidelines for Video4Linux 4CC codes defined using v4l2_fourcc() are
  4. specified in this document. First of the characters defines the nature of
  5. the pixel format, compression and colour space. The interpretation of the
  6. other three characters depends on the first one.
  7. Existing 4CCs may not obey these guidelines.
  8. Formats
  9. =======
  10. Raw bayer
  11. ---------
  12. The following first characters are used by raw bayer formats:
  13. B: raw bayer, uncompressed
  14. b: raw bayer, DPCM compressed
  15. a: A-law compressed
  16. u: u-law compressed
  17. 2nd character: pixel order
  18. B: BGGR
  19. G: GBRG
  20. g: GRBG
  21. R: RGGB
  22. 3rd character: uncompressed bits-per-pixel 0--9, A--
  23. 4th character: compressed bits-per-pixel 0--9, A--