pixfmt.rst 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. c:namespace:: V4L
  3. .. _pixfmt:
  4. #############
  5. Image Formats
  6. #############
  7. The V4L2 API was primarily designed for devices exchanging image data
  8. with applications. The struct :c:type:`v4l2_pix_format` and
  9. struct :c:type:`v4l2_pix_format_mplane` structures define the
  10. format and layout of an image in memory. The former is used with the
  11. single-planar API, while the latter is used with the multi-planar
  12. version (see :ref:`planar-apis`). Image formats are negotiated with
  13. the :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` ioctl. (The explanations here
  14. focus on video capturing and output, for overlay frame buffer formats
  15. see also :ref:`VIDIOC_G_FBUF <VIDIOC_G_FBUF>`.)
  16. .. toctree::
  17. :maxdepth: 1
  18. pixfmt-v4l2
  19. pixfmt-v4l2-mplane
  20. pixfmt-intro
  21. pixfmt-indexed
  22. pixfmt-rgb
  23. pixfmt-bayer
  24. yuv-formats
  25. hsv-formats
  26. depth-formats
  27. pixfmt-compressed
  28. sdr-formats
  29. tch-formats
  30. meta-formats
  31. pixfmt-reserved
  32. colorspaces
  33. colorspaces-defs
  34. colorspaces-details