18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _pixfmt: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci############# 68c2ecf20Sopenharmony_ciImage Formats 78c2ecf20Sopenharmony_ci############# 88c2ecf20Sopenharmony_ciThe V4L2 API was primarily designed for devices exchanging image data 98c2ecf20Sopenharmony_ciwith applications. The struct :c:type:`v4l2_pix_format` and 108c2ecf20Sopenharmony_cistruct :c:type:`v4l2_pix_format_mplane` structures define the 118c2ecf20Sopenharmony_ciformat and layout of an image in memory. The former is used with the 128c2ecf20Sopenharmony_cisingle-planar API, while the latter is used with the multi-planar 138c2ecf20Sopenharmony_civersion (see :ref:`planar-apis`). Image formats are negotiated with 148c2ecf20Sopenharmony_cithe :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` ioctl. (The explanations here 158c2ecf20Sopenharmony_cifocus on video capturing and output, for overlay frame buffer formats 168c2ecf20Sopenharmony_cisee also :ref:`VIDIOC_G_FBUF <VIDIOC_G_FBUF>`.) 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci.. toctree:: 208c2ecf20Sopenharmony_ci :maxdepth: 1 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci pixfmt-v4l2 238c2ecf20Sopenharmony_ci pixfmt-v4l2-mplane 248c2ecf20Sopenharmony_ci pixfmt-intro 258c2ecf20Sopenharmony_ci pixfmt-indexed 268c2ecf20Sopenharmony_ci pixfmt-rgb 278c2ecf20Sopenharmony_ci pixfmt-bayer 288c2ecf20Sopenharmony_ci yuv-formats 298c2ecf20Sopenharmony_ci hsv-formats 308c2ecf20Sopenharmony_ci depth-formats 318c2ecf20Sopenharmony_ci pixfmt-compressed 328c2ecf20Sopenharmony_ci sdr-formats 338c2ecf20Sopenharmony_ci tch-formats 348c2ecf20Sopenharmony_ci meta-formats 358c2ecf20Sopenharmony_ci pixfmt-reserved 368c2ecf20Sopenharmony_ci colorspaces 378c2ecf20Sopenharmony_ci colorspaces-defs 388c2ecf20Sopenharmony_ci colorspaces-details 39