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 | ||
9 | *man VIDIOC_OVERLAY(2)* | |
10 | ||
11 | Start or stop video overlay | |
12 | ||
13 | ||
14 | Synopsis | |
15 | ======== | |
16 | ||
17 | .. c:function:: int ioctl( int fd, int request, const int *argp ) | |
18 | ||
19 | Arguments | |
20 | ========= | |
21 | ||
22 | ``fd`` | |
23 | File descriptor returned by :ref:`open() <func-open>`. | |
24 | ||
25 | ``request`` | |
26 | VIDIOC_OVERLAY | |
27 | ||
28 | ``argp`` | |
29 | ||
30 | ||
31 | Description | |
32 | =========== | |
33 | ||
34 | This ioctl is part of the :ref:`video overlay <overlay>` I/O method. | |
35 | Applications call ``VIDIOC_OVERLAY`` to start or stop the overlay. It | |
36 | takes a pointer to an integer which must be set to zero by the | |
37 | application to stop overlay, to one to start. | |
38 | ||
af4a4d0d MCC |
39 | Drivers 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 | ||
44 | Return Value | |
45 | ============ | |
46 | ||
47 | On success 0 is returned, on error -1 and the ``errno`` variable is set | |
48 | appropriately. The generic error codes are described at the | |
49 | :ref:`Generic Error Codes <gen-errors>` chapter. | |
50 | ||
51 | EINVAL | |
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 | .. ------------------------------------------------------------------------------ |