]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - Documentation/linux_tv/media/v4l/vidioc-overlay.rst
doc-rst: customize RTD theme, captions & inline literal
[mirror_ubuntu-artful-kernel.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
586027ce
MCC
9NAME
10====
5377d91f 11
586027ce 12VIDIOC_OVERLAY - Start or stop video overlay
5377d91f 13
586027ce 14SYNOPSIS
5377d91f
MH
15========
16
b7e67f6c 17.. cpp:function:: int ioctl( int fd, int request, const int *argp )
5377d91f 18
586027ce
MCC
19
20ARGUMENTS
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 32DESCRIPTION
5377d91f
MH
33===========
34
35This ioctl is part of the :ref:`video overlay <overlay>` I/O method.
2212ff25 36Applications call :ref:`VIDIOC_OVERLAY` to start or stop the overlay. It
5377d91f
MH
37takes a pointer to an integer which must be set to zero by the
38application to stop overlay, to one to start.
39
7347081e 40Drivers 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 45RETURN VALUE
5377d91f
MH
46============
47
48On success 0 is returned, on error -1 and the ``errno`` variable is set
49appropriately. The generic error codes are described at the
50:ref:`Generic Error Codes <gen-errors>` chapter.
51
52EINVAL
53 The overlay parameters have not been set up. See :ref:`overlay`
54 for the necessary steps.