2020-08-26 09:03:09 +02:00
|
|
|
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
|
2018-08-30 10:15:26 -04:00
|
|
|
|
2016-06-30 15:18:56 +02:00
|
|
|
.. _pixfmt:
|
|
|
|
|
|
|
|
|
|
#############
|
|
|
|
|
Image Formats
|
|
|
|
|
#############
|
|
|
|
|
The V4L2 API was primarily designed for devices exchanging image data
|
2016-09-08 05:43:01 -03:00
|
|
|
with applications. The struct :c:type:`v4l2_pix_format` and
|
|
|
|
|
struct :c:type:`v4l2_pix_format_mplane` structures define the
|
2016-06-30 15:18:56 +02:00
|
|
|
format and layout of an image in memory. The former is used with the
|
|
|
|
|
single-planar API, while the latter is used with the multi-planar
|
|
|
|
|
version (see :ref:`planar-apis`). Image formats are negotiated with
|
2016-07-01 13:42:29 -03:00
|
|
|
the :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` ioctl. (The explanations here
|
2016-06-30 15:18:56 +02:00
|
|
|
focus on video capturing and output, for overlay frame buffer formats
|
2016-07-03 10:02:29 -03:00
|
|
|
see also :ref:`VIDIOC_G_FBUF <VIDIOC_G_FBUF>`.)
|
2016-06-30 15:18:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
|
:maxdepth: 1
|
|
|
|
|
|
2017-07-27 04:58:52 -04:00
|
|
|
pixfmt-v4l2
|
|
|
|
|
pixfmt-v4l2-mplane
|
|
|
|
|
pixfmt-intro
|
2016-06-30 15:18:56 +02:00
|
|
|
pixfmt-indexed
|
|
|
|
|
pixfmt-rgb
|
2019-08-13 08:31:28 -03:00
|
|
|
pixfmt-bayer
|
2016-06-30 15:18:56 +02:00
|
|
|
yuv-formats
|
2016-08-18 11:33:28 -03:00
|
|
|
hsv-formats
|
2016-06-30 15:18:56 +02:00
|
|
|
depth-formats
|
2017-07-27 04:58:52 -04:00
|
|
|
pixfmt-compressed
|
2016-06-30 15:18:56 +02:00
|
|
|
sdr-formats
|
2016-08-14 16:57:29 -03:00
|
|
|
tch-formats
|
2016-04-10 04:37:48 -03:00
|
|
|
meta-formats
|
2016-06-30 15:18:56 +02:00
|
|
|
pixfmt-reserved
|
2017-07-27 04:58:52 -04:00
|
|
|
colorspaces
|
|
|
|
|
colorspaces-defs
|
|
|
|
|
colorspaces-details
|