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