2016-06-30 21:18:56 +08:00
|
|
|
.. -*- coding: utf-8; mode: rst -*-
|
|
|
|
|
|
|
|
.. _pixfmt:
|
|
|
|
|
|
|
|
#############
|
|
|
|
Image Formats
|
|
|
|
#############
|
|
|
|
The V4L2 API was primarily designed for devices exchanging image data
|
2016-09-08 16:43:01 +08:00
|
|
|
with applications. The struct :c:type:`v4l2_pix_format` and
|
|
|
|
struct :c:type:`v4l2_pix_format_mplane` structures define the
|
2016-06-30 21:18:56 +08: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-02 00:42:29 +08:00
|
|
|
the :ref:`VIDIOC_S_FMT <VIDIOC_G_FMT>` ioctl. (The explanations here
|
2016-06-30 21:18:56 +08:00
|
|
|
focus on video capturing and output, for overlay frame buffer formats
|
2016-07-03 21:02:29 +08:00
|
|
|
see also :ref:`VIDIOC_G_FBUF <VIDIOC_G_FBUF>`.)
|
2016-06-30 21:18:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
|
2017-07-27 16:58:52 +08:00
|
|
|
pixfmt-v4l2
|
|
|
|
pixfmt-v4l2-mplane
|
|
|
|
pixfmt-intro
|
2016-06-30 21:18:56 +08:00
|
|
|
pixfmt-indexed
|
|
|
|
pixfmt-rgb
|
|
|
|
yuv-formats
|
2016-08-18 22:33:28 +08:00
|
|
|
hsv-formats
|
2016-06-30 21:18:56 +08:00
|
|
|
depth-formats
|
2017-07-27 16:58:52 +08:00
|
|
|
pixfmt-compressed
|
2016-06-30 21:18:56 +08:00
|
|
|
sdr-formats
|
2016-08-15 03:57:29 +08:00
|
|
|
tch-formats
|
2016-04-10 15:37:48 +08:00
|
|
|
meta-formats
|
2016-06-30 21:18:56 +08:00
|
|
|
pixfmt-reserved
|
2017-07-27 16:58:52 +08:00
|
|
|
colorspaces
|
|
|
|
colorspaces-defs
|
|
|
|
colorspaces-details
|