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