Commit da1621c3 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

doc-rst: linux_tv: use Example x.y. instead of a single number

On the example captions, use always <chapter>.<number>., because:
1) it matches the DocBook;
2) it would mean less changes if we need to add a new example,
as only one chapter will be affected.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 8e97cd94
...@@ -55,7 +55,7 @@ the :ref:`VIDIOC_QUERYCAP` ioctl. ...@@ -55,7 +55,7 @@ the :ref:`VIDIOC_QUERYCAP` ioctl.
.. code-block:: c .. code-block:: c
:caption: Example 3: Information about the current audio input :caption: Example 1.3. Information about the current audio input
struct v4l2_audio audio; struct v4l2_audio audio;
...@@ -70,7 +70,7 @@ the :ref:`VIDIOC_QUERYCAP` ioctl. ...@@ -70,7 +70,7 @@ the :ref:`VIDIOC_QUERYCAP` ioctl.
.. code-block:: c .. code-block:: c
:caption: Example 4: Switching to the first audio input :caption: Example 1.4. Switching to the first audio input
struct v4l2_audio audio; struct v4l2_audio audio;
......
...@@ -374,7 +374,7 @@ more menu type controls. ...@@ -374,7 +374,7 @@ more menu type controls.
.. _enum_all_controls: .. _enum_all_controls:
.. code-block:: c .. code-block:: c
:caption: Example 8: Enumerating all user controls :caption: Example 1.8. Enumerating all user controls
struct v4l2_queryctrl queryctrl; struct v4l2_queryctrl queryctrl;
...@@ -439,7 +439,7 @@ more menu type controls. ...@@ -439,7 +439,7 @@ more menu type controls.
.. code-block:: c .. code-block:: c
:caption: Example 9: Enumerating all user controls (alternative) :caption: Example 1.9. Enumerating all user controls (alternative)
memset(&queryctrl, 0, sizeof(queryctrl)); memset(&queryctrl, 0, sizeof(queryctrl));
...@@ -464,7 +464,7 @@ more menu type controls. ...@@ -464,7 +464,7 @@ more menu type controls.
.. code-block:: c .. code-block:: c
:caption: Example 10: Changing controls :caption: Example 1.10. Changing controls
struct v4l2_queryctrl queryctrl; struct v4l2_queryctrl queryctrl;
struct v4l2_control control; struct v4l2_control control;
......
...@@ -148,7 +148,7 @@ ensure the parameters are suitable before starting I/O. ...@@ -148,7 +148,7 @@ ensure the parameters are suitable before starting I/O.
change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device. change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device.
.. code-block:: c .. code-block:: c
:caption: Example 11: Resetting the cropping parameters :caption: Example 1.11. Resetting the cropping parameters
struct v4l2_cropcap cropcap; struct v4l2_cropcap cropcap;
struct v4l2_crop crop; struct v4l2_crop crop;
...@@ -174,7 +174,7 @@ change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device. ...@@ -174,7 +174,7 @@ change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device.
} }
.. code-block:: c .. code-block:: c
:caption: Example 12: Simple downscaling :caption: Example 1.12. Simple downscaling
struct v4l2_cropcap cropcap; struct v4l2_cropcap cropcap;
struct v4l2_format format; struct v4l2_format format;
...@@ -202,7 +202,7 @@ change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device. ...@@ -202,7 +202,7 @@ change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device.
**NOTE:** This example assumes an output device. **NOTE:** This example assumes an output device.
.. code-block:: c .. code-block:: c
:caption: Example 13. Selecting an output area :caption: Example 1.13. Selecting an output area
struct v4l2_cropcap cropcap; struct v4l2_cropcap cropcap;
struct v4l2_crop crop; struct v4l2_crop crop;
...@@ -239,7 +239,7 @@ change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device. ...@@ -239,7 +239,7 @@ change ``V4L2_BUF_TYPE_VIDEO_CAPTURE`` for other types of device.
**NOTE:** This example assumes a video capture device. **NOTE:** This example assumes a video capture device.
.. code-block:: c .. code-block:: c
:caption: Example 14: Current scaling factor and pixel aspect :caption: Example 1.14. Current scaling factor and pixel aspect
struct v4l2_cropcap cropcap; struct v4l2_cropcap cropcap;
struct v4l2_crop crop; struct v4l2_crop crop;
......
...@@ -66,7 +66,7 @@ standard ioctls can be used with the given input or output. ...@@ -66,7 +66,7 @@ standard ioctls can be used with the given input or output.
.. code-block:: c .. code-block:: c
:caption: Example 5: Information about the current video standard :caption: Example 1.5. Information about the current video standard
v4l2_std_id std_id; v4l2_std_id std_id;
struct v4l2_standard standard; struct v4l2_standard standard;
...@@ -102,7 +102,7 @@ standard ioctls can be used with the given input or output. ...@@ -102,7 +102,7 @@ standard ioctls can be used with the given input or output.
.. code-block:: c .. code-block:: c
:caption: Example 6: Listing the video standards supported by the current input :caption: Example 1.6. Listing the video standards supported by the current input
struct v4l2_input input; struct v4l2_input input;
struct v4l2_standard standard; struct v4l2_standard standard;
...@@ -141,7 +141,7 @@ standard ioctls can be used with the given input or output. ...@@ -141,7 +141,7 @@ standard ioctls can be used with the given input or output.
.. code-block:: c .. code-block:: c
:caption: Example 7: Selecting a new video standard :caption: Example 1.7. Selecting a new video standard
struct v4l2_input input; struct v4l2_input input;
v4l2_std_id std_id; v4l2_std_id std_id;
......
...@@ -29,7 +29,7 @@ implement all the input ioctls when the device has one or more inputs, ...@@ -29,7 +29,7 @@ implement all the input ioctls when the device has one or more inputs,
all the output ioctls when the device has one or more outputs. all the output ioctls when the device has one or more outputs.
.. code-block:: c .. code-block:: c
:caption: Example 1: Information about the current video input :caption: Example 1.1. Information about the current video input
struct v4l2_input input; struct v4l2_input input;
int index; int index;
...@@ -51,7 +51,7 @@ all the output ioctls when the device has one or more outputs. ...@@ -51,7 +51,7 @@ all the output ioctls when the device has one or more outputs.
.. code-block:: c .. code-block:: c
:caption: Example 2: Switching to the first video input :caption: Example 1.2. Switching to the first video input
int index; int index;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment