1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/media/uapi/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
15 The V4L2 API was primarily designed for devices exchanging image data
16 with applications. The struct :c:type:`v4l2_pix_format` and
17 struct :c:type:`v4l2_pix_format_mplane` structures define the
18 format and layout of an image in memory. The former is used with the
19 single-planar API, while the latter is used with the multi-planar
20 version (see :ref:`planar-apis`). Image formats are negotiated with
21 the :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` ioctl. (The explanations here
22 focus on video capturing and output, for overlay frame buffer formats
23 see also :ref:`VIDIOC_G_FBUF <VIDIOC_G_FBUF>`.)