media: pixfmt-v4l2.rst: fix types
The v4l2_pix_format documentation still had 'enum's as types. Replace by __u32 and add a reference to the enum. Also put ycbcr_enc and hsv_enc in a union. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
54f6735abe
commit
a54f2d9867
@ -40,9 +40,10 @@ Single-planar format structure
|
|||||||
RGB formats in :ref:`rgb-formats`, YUV formats in
|
RGB formats in :ref:`rgb-formats`, YUV formats in
|
||||||
:ref:`yuv-formats`, and reserved codes in
|
:ref:`yuv-formats`, and reserved codes in
|
||||||
:ref:`reserved-formats`
|
:ref:`reserved-formats`
|
||||||
* - enum :c:type:`v4l2_field`
|
* - __u32
|
||||||
- ``field``
|
- ``field``
|
||||||
- Video images are typically interlaced. Applications can request to
|
- Field order, from enum :c:type:`v4l2_field`.
|
||||||
|
Video images are typically interlaced. Applications can request to
|
||||||
capture or output only the top or bottom field, or both fields
|
capture or output only the top or bottom field, or both fields
|
||||||
interlaced or sequentially stored in one buffer or alternating in
|
interlaced or sequentially stored in one buffer or alternating in
|
||||||
separate buffers. Drivers return the actual field order selected.
|
separate buffers. Drivers return the actual field order selected.
|
||||||
@ -82,9 +83,10 @@ Single-planar format structure
|
|||||||
driver. Usually this is ``bytesperline`` times ``height``. When
|
driver. Usually this is ``bytesperline`` times ``height``. When
|
||||||
the image consists of variable length compressed data this is the
|
the image consists of variable length compressed data this is the
|
||||||
maximum number of bytes required to hold an image.
|
maximum number of bytes required to hold an image.
|
||||||
* - enum :c:type:`v4l2_colorspace`
|
* - __u32
|
||||||
- ``colorspace``
|
- ``colorspace``
|
||||||
- This information supplements the ``pixelformat`` and must be set
|
- Image colorspace, from enum :c:type:`v4l2_colorspace`.
|
||||||
|
This information supplements the ``pixelformat`` and must be set
|
||||||
by the driver for capture streams and by the application for
|
by the driver for capture streams and by the application for
|
||||||
output streams, see :ref:`colorspaces`.
|
output streams, see :ref:`colorspaces`.
|
||||||
* - __u32
|
* - __u32
|
||||||
@ -116,23 +118,33 @@ Single-planar format structure
|
|||||||
* - __u32
|
* - __u32
|
||||||
- ``flags``
|
- ``flags``
|
||||||
- Flags set by the application or driver, see :ref:`format-flags`.
|
- Flags set by the application or driver, see :ref:`format-flags`.
|
||||||
* - enum :c:type:`v4l2_ycbcr_encoding`
|
* - union {
|
||||||
|
- (anonymous)
|
||||||
|
-
|
||||||
|
* - __u32
|
||||||
- ``ycbcr_enc``
|
- ``ycbcr_enc``
|
||||||
- This information supplements the ``colorspace`` and must be set by
|
- Y'CbCr encoding, from enum :c:type:`v4l2_ycbcr_encoding`.
|
||||||
|
This information supplements the ``colorspace`` and must be set by
|
||||||
the driver for capture streams and by the application for output
|
the driver for capture streams and by the application for output
|
||||||
streams, see :ref:`colorspaces`.
|
streams, see :ref:`colorspaces`.
|
||||||
* - enum :c:type:`v4l2_hsv_encoding`
|
* - __u32
|
||||||
- ``hsv_enc``
|
- ``hsv_enc``
|
||||||
- This information supplements the ``colorspace`` and must be set by
|
- HSV encoding, from enum :c:type:`v4l2_hsv_encoding`.
|
||||||
|
This information supplements the ``colorspace`` and must be set by
|
||||||
the driver for capture streams and by the application for output
|
the driver for capture streams and by the application for output
|
||||||
streams, see :ref:`colorspaces`.
|
streams, see :ref:`colorspaces`.
|
||||||
* - enum :c:type:`v4l2_quantization`
|
* - }
|
||||||
|
-
|
||||||
|
-
|
||||||
|
* - __u32
|
||||||
- ``quantization``
|
- ``quantization``
|
||||||
- This information supplements the ``colorspace`` and must be set by
|
- Quantization range, from enum :c:type:`v4l2_quantization`.
|
||||||
|
This information supplements the ``colorspace`` and must be set by
|
||||||
the driver for capture streams and by the application for output
|
the driver for capture streams and by the application for output
|
||||||
streams, see :ref:`colorspaces`.
|
streams, see :ref:`colorspaces`.
|
||||||
* - enum :c:type:`v4l2_xfer_func`
|
* - __u32
|
||||||
- ``xfer_func``
|
- ``xfer_func``
|
||||||
- This information supplements the ``colorspace`` and must be set by
|
- Transfer function, from enum :c:type:`v4l2_xfer_func`.
|
||||||
|
This information supplements the ``colorspace`` and must be set by
|
||||||
the driver for capture streams and by the application for output
|
the driver for capture streams and by the application for output
|
||||||
streams, see :ref:`colorspaces`.
|
streams, see :ref:`colorspaces`.
|
||||||
|
Loading…
Reference in New Issue
Block a user