diff options
author | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-10 13:22:19 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-07-10 13:31:24 +0200 |
commit | 282f02cb863594d9f39b7b89a92eeb7fc989a883 (patch) | |
tree | 30287f366a774c53ca4e500234fa9f5ea260ac10 /Documentation/media/uapi/v4l/selection-api-006.rst | |
parent | [media] doc-rst: do cross-references between header and the doc (diff) | |
download | linux-282f02cb863594d9f39b7b89a92eeb7fc989a883.tar.xz linux-282f02cb863594d9f39b7b89a92eeb7fc989a883.zip |
[media] doc-rst: Don't use captions for examples
Unfortunately, captions are new on Sphinx for c blocks: it was
added only on version 1.3. Also, it were already bad enough
not being able to auto-numerate them.
So, let's give up and use, instead, titles before the examples.
Not much is lost, and, as a side track, we don't need to
numerate them anymore.
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'Documentation/media/uapi/v4l/selection-api-006.rst')
-rw-r--r-- | Documentation/media/uapi/v4l/selection-api-006.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Documentation/media/uapi/v4l/selection-api-006.rst b/Documentation/media/uapi/v4l/selection-api-006.rst index b2ac12f2e3d4..67e0e9aed9e8 100644 --- a/Documentation/media/uapi/v4l/selection-api-006.rst +++ b/Documentation/media/uapi/v4l/selection-api-006.rst @@ -8,9 +8,10 @@ Examples ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other devices; change target to ``V4L2_SEL_TGT_COMPOSE_*`` family to configure composing area) +Example: Resetting the cropping parameters +========================================== .. code-block:: c - :caption: Example 1.15. Resetting the cropping parameters struct v4l2_selection sel = { .type = V4L2_BUF_TYPE_VIDEO_CAPTURE, @@ -27,9 +28,10 @@ Examples Setting a composing area on output of size of *at most* half of limit placed at a center of a display. +Example: Simple downscaling +=========================== .. code-block:: c - :caption: Example 1.16. Simple downscaling struct v4l2_selection sel = { .type = V4L2_BUF_TYPE_VIDEO_OUTPUT, @@ -55,9 +57,10 @@ placed at a center of a display. A video output device is assumed; change ``V4L2_BUF_TYPE_VIDEO_OUTPUT`` for other devices +Example: Querying for scaling factors +===================================== .. code-block:: c - :caption: Example 1.17. Querying for scaling factors struct v4l2_selection compose = { .type = V4L2_BUF_TYPE_VIDEO_OUTPUT, |