doc-rst: linux_tv: Replace reference names to match ioctls
[linux-2.6-block.git] / Documentation / linux_tv / media / v4l / vidioc-overlay.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
af4a4d0d 3.. _VIDIOC_OVERLAY:
5377d91f
MH
4
5********************
6ioctl VIDIOC_OVERLAY
7********************
8
9*man VIDIOC_OVERLAY(2)*
10
11Start or stop video overlay
12
13
14Synopsis
15========
16
17.. c:function:: int ioctl( int fd, int request, const int *argp )
18
19Arguments
20=========
21
22``fd``
23 File descriptor returned by :ref:`open() <func-open>`.
24
25``request``
26 VIDIOC_OVERLAY
27
28``argp``
29
30
31Description
32===========
33
34This ioctl is part of the :ref:`video overlay <overlay>` I/O method.
35Applications call ``VIDIOC_OVERLAY`` to start or stop the overlay. It
36takes a pointer to an integer which must be set to zero by the
37application to stop overlay, to one to start.
38
af4a4d0d
MCC
39Drivers do not support :ref:`VIDIOC_STREAMON <VIDIOC_STREAMON>` or
40:ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` with
5377d91f
MH
41``V4L2_BUF_TYPE_VIDEO_OVERLAY``.
42
43
44Return Value
45============
46
47On success 0 is returned, on error -1 and the ``errno`` variable is set
48appropriately. The generic error codes are described at the
49:ref:`Generic Error Codes <gen-errors>` chapter.
50
51EINVAL
52 The overlay parameters have not been set up. See :ref:`overlay`
53 for the necessary steps.
54
55
56.. ------------------------------------------------------------------------------
57.. This file was automatically converted from DocBook-XML with the dbxml
58.. library (https://github.com/return42/sphkerneldoc). The origin XML comes
59.. from the linux kernel, refer to:
60..
61.. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
62.. ------------------------------------------------------------------------------