1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
13 VIDIOC_OVERLAY - Start or stop video overlay
18 .. c:macro:: VIDIOC_OVERLAY
20 ``int ioctl(int fd, VIDIOC_OVERLAY, const int *argp)``
26 File descriptor returned by :c:func:`open()`.
29 Pointer to an integer.
34 This ioctl is part of the :ref:`video overlay <overlay>` I/O method.
35 Applications call :ref:`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.
39 Drivers do not support :ref:`VIDIOC_STREAMON` or
40 :ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` with
41 ``V4L2_BUF_TYPE_VIDEO_OVERLAY``.
46 On success 0 is returned, on error -1 and the ``errno`` variable is set
47 appropriately. The generic error codes are described at the
48 :ref:`Generic Error Codes <gen-errors>` chapter.
51 The overlay parameters have not been set up. See :ref:`overlay`
52 for the necessary steps.