1 .. -*- coding: utf-8; mode: rst -*-
12 VIDIOC_OVERLAY - Start or stop video overlay
18 .. c:function:: int ioctl( int fd, VIDIOC_OVERLAY, const int *argp )
26 File descriptor returned by :ref:`open() <func-open>`.
29 Pointer to an integer.
35 This ioctl is part of the :ref:`video overlay <overlay>` I/O method.
36 Applications call :ref:`VIDIOC_OVERLAY` to start or stop the overlay. It
37 takes a pointer to an integer which must be set to zero by the
38 application to stop overlay, to one to start.
40 Drivers do not support :ref:`VIDIOC_STREAMON` or
41 :ref:`VIDIOC_STREAMOFF <VIDIOC_STREAMON>` with
42 ``V4L2_BUF_TYPE_VIDEO_OVERLAY``.
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.
53 The overlay parameters have not been set up. See :ref:`overlay`
54 for the necessary steps.