]>
Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
af4a4d0d | 3 | .. _VIDIOC_OVERLAY: |
5377d91f MH |
4 | |
5 | ******************** | |
6 | ioctl VIDIOC_OVERLAY | |
7 | ******************** | |
8 | ||
586027ce MCC |
9 | NAME |
10 | ==== | |
5377d91f | 11 | |
586027ce | 12 | VIDIOC_OVERLAY - Start or stop video overlay |
5377d91f | 13 | |
586027ce | 14 | SYNOPSIS |
5377d91f MH |
15 | ======== |
16 | ||
b7e67f6c | 17 | .. cpp:function:: int ioctl( int fd, int request, const int *argp ) |
5377d91f | 18 | |
586027ce MCC |
19 | |
20 | ARGUMENTS | |
5377d91f MH |
21 | ========= |
22 | ||
23 | ``fd`` | |
24 | File descriptor returned by :ref:`open() <func-open>`. | |
25 | ||
26 | ``request`` | |
27 | VIDIOC_OVERLAY | |
28 | ||
29 | ``argp`` | |
30 | ||
31 | ||
586027ce | 32 | DESCRIPTION |
5377d91f MH |
33 | =========== |
34 | ||
35 | This ioctl is part of the :ref:`video overlay <overlay>` I/O method. | |
2212ff25 | 36 | Applications call :ref:`VIDIOC_OVERLAY` to start or stop the overlay. It |
5377d91f MH |
37 | takes a pointer to an integer which must be set to zero by the |
38 | application to stop overlay, to one to start. | |
39 | ||
7347081e | 40 | Drivers do not support :ref:`VIDIOC_STREAMON` or |
af4a4d0d | 41 | :ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` with |
5377d91f MH |
42 | ``V4L2_BUF_TYPE_VIDEO_OVERLAY``. |
43 | ||
44 | ||
586027ce | 45 | RETURN VALUE |
5377d91f MH |
46 | ============ |
47 | ||
48 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
49 | appropriately. The generic error codes are described at the | |
50 | :ref:`Generic Error Codes <gen-errors>` chapter. | |
51 | ||
52 | EINVAL | |
53 | The overlay parameters have not been set up. See :ref:`overlay` | |
54 | for the necessary steps. |