fourcc.rst 768 B

123456789101112131415161718192021222324252627282930
  1. Guidelines for Video4Linux 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. Raw bayer
  9. ---------
  10. The following first characters are used by raw bayer formats:
  11. - B: raw bayer, uncompressed
  12. - b: raw bayer, DPCM compressed
  13. - a: A-law compressed
  14. - u: u-law compressed
  15. 2nd character: pixel order
  16. - B: BGGR
  17. - G: GBRG
  18. - g: GRBG
  19. - R: RGGB
  20. 3rd character: uncompressed bits-per-pixel 0--9, A--
  21. 4th character: compressed bits-per-pixel 0--9, A--