1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd"> 2 <HTML 3 ><HEAD 4 ><TITLE 5 >ioctl VIDIOC_OVERLAY</TITLE 6 ><META 7 NAME="GENERATOR" 8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK 9 REL="HOME" 10 TITLE="Video for Linux Two API Specification" 11 HREF="book1.htm"><LINK 12 REL="UP" 13 TITLE="Function Reference" 14 HREF="r7624.htm"><LINK 15 REL="PREVIOUS" 16 TITLE="ioctl VIDIOC_LOG_STATUS" 17 HREF="r12784.htm"><LINK 18 REL="NEXT" 19 TITLE="ioctl VIDIOC_QBUF, VIDIOC_DQBUF" 20 HREF="r12878.htm"></HEAD 21 ><BODY 22 CLASS="REFENTRY" 23 BGCOLOR="#FFFFFF" 24 TEXT="#000000" 25 LINK="#0000FF" 26 VLINK="#840084" 27 ALINK="#0000FF" 28 ><DIV 29 CLASS="NAVHEADER" 30 ><TABLE 31 SUMMARY="Header navigation table" 32 WIDTH="100%" 33 BORDER="0" 34 CELLPADDING="0" 35 CELLSPACING="0" 36 ><TR 37 ><TH 38 COLSPAN="3" 39 ALIGN="center" 40 >Video for Linux Two API Specification: Revision 0.24</TH 41 ></TR 42 ><TR 43 ><TD 44 WIDTH="10%" 45 ALIGN="left" 46 VALIGN="bottom" 47 ><A 48 HREF="r12784.htm" 49 ACCESSKEY="P" 50 >Prev</A 51 ></TD 52 ><TD 53 WIDTH="80%" 54 ALIGN="center" 55 VALIGN="bottom" 56 ></TD 57 ><TD 58 WIDTH="10%" 59 ALIGN="right" 60 VALIGN="bottom" 61 ><A 62 HREF="r12878.htm" 63 ACCESSKEY="N" 64 >Next</A 65 ></TD 66 ></TR 67 ></TABLE 68 ><HR 69 ALIGN="LEFT" 70 WIDTH="100%"></DIV 71 ><H1 72 ><A 73 NAME="VIDIOC-OVERLAY" 74 ></A 75 >ioctl VIDIOC_OVERLAY</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN12820" 80 ></A 81 ><H2 82 >Name</H2 83 >VIDIOC_OVERLAY -- Start or stop video overlay</DIV 84 ><DIV 85 CLASS="REFSYNOPSISDIV" 86 ><A 87 NAME="AEN12823" 88 ></A 89 ><H2 90 >Synopsis</H2 91 ><DIV 92 CLASS="FUNCSYNOPSIS" 93 ><P 94 ></P 95 ><A 96 NAME="AEN12824" 97 ></A 98 ><P 99 ><CODE 100 ><CODE 101 CLASS="FUNCDEF" 102 >int ioctl</CODE 103 >(int fd, int request, const int *argp);</CODE 104 ></P 105 ><P 106 ></P 107 ></DIV 108 ></DIV 109 ><DIV 110 CLASS="REFSECT1" 111 ><A 112 NAME="AEN12834" 113 ></A 114 ><H2 115 >Arguments</H2 116 ><P 117 ></P 118 ><DIV 119 CLASS="VARIABLELIST" 120 ><DL 121 ><DT 122 ><CODE 123 CLASS="PARAMETER" 124 >fd</CODE 125 ></DT 126 ><DD 127 ><P 128 >File descriptor returned by <A 129 HREF="r14090.htm" 130 ><CODE 131 CLASS="FUNCTION" 132 >open()</CODE 133 ></A 134 >.</P 135 ></DD 136 ><DT 137 ><CODE 138 CLASS="PARAMETER" 139 >request</CODE 140 ></DT 141 ><DD 142 ><P 143 >VIDIOC_OVERLAY</P 144 ></DD 145 ><DT 146 ><CODE 147 CLASS="PARAMETER" 148 >argp</CODE 149 ></DT 150 ><DD 151 ><P 152 ></P 153 ></DD 154 ></DL 155 ></DIV 156 ></DIV 157 ><DIV 158 CLASS="REFSECT1" 159 ><A 160 NAME="AEN12854" 161 ></A 162 ><H2 163 >Description</H2 164 ><P 165 >This ioctl is part of the <A 166 HREF="x6570.htm" 167 >video 168 overlay</A 169 > I/O method. Applications call 170 <CODE 171 CLASS="CONSTANT" 172 >VIDIOC_OVERLAY</CODE 173 > to start or stop the 174 overlay. It takes a pointer to an integer which must be set to 175 zero by the application to stop overlay, to one to start.</P 176 ><P 177 >Drivers do not support <A 178 HREF="r13817.htm" 179 ><CODE 180 CLASS="CONSTANT" 181 >VIDIOC_STREAMON</CODE 182 ></A 183 > or 184 <A 185 HREF="r13817.htm" 186 ><CODE 187 CLASS="CONSTANT" 188 >VIDIOC_STREAMOFF</CODE 189 ></A 190 > with <CODE 191 CLASS="CONSTANT" 192 >V4L2_BUF_TYPE_VIDEO_OVERLAY</CODE 193 >.</P 194 ></DIV 195 ><DIV 196 CLASS="REFSECT1" 197 ><A 198 NAME="AEN12865" 199 ></A 200 ><H2 201 >Return Value</H2 202 ><P 203 >On success <SPAN 204 CLASS="RETURNVALUE" 205 >0</SPAN 206 > is returned, on error <SPAN 207 CLASS="RETURNVALUE" 208 >-1</SPAN 209 > and the <CODE 210 CLASS="VARNAME" 211 >errno</CODE 212 > variable is set appropriately:</P 213 ><P 214 ></P 215 ><DIV 216 CLASS="VARIABLELIST" 217 ><DL 218 ><DT 219 ><SPAN 220 CLASS="ERRORCODE" 221 >EINVAL</SPAN 222 ></DT 223 ><DD 224 ><P 225 >Video overlay is not supported, or the 226 parameters have not been set up. See <A 227 HREF="x6570.htm" 228 >Section 4.2</A 229 > for the necessary steps.</P 230 ></DD 231 ></DL 232 ></DIV 233 ></DIV 234 ><DIV 235 CLASS="NAVFOOTER" 236 ><HR 237 ALIGN="LEFT" 238 WIDTH="100%"><TABLE 239 SUMMARY="Footer navigation table" 240 WIDTH="100%" 241 BORDER="0" 242 CELLPADDING="0" 243 CELLSPACING="0" 244 ><TR 245 ><TD 246 WIDTH="33%" 247 ALIGN="left" 248 VALIGN="top" 249 ><A 250 HREF="r12784.htm" 251 ACCESSKEY="P" 252 >Prev</A 253 ></TD 254 ><TD 255 WIDTH="34%" 256 ALIGN="center" 257 VALIGN="top" 258 ><A 259 HREF="book1.htm" 260 ACCESSKEY="H" 261 >Home</A 262 ></TD 263 ><TD 264 WIDTH="33%" 265 ALIGN="right" 266 VALIGN="top" 267 ><A 268 HREF="r12878.htm" 269 ACCESSKEY="N" 270 >Next</A 271 ></TD 272 ></TR 273 ><TR 274 ><TD 275 WIDTH="33%" 276 ALIGN="left" 277 VALIGN="top" 278 >ioctl VIDIOC_LOG_STATUS</TD 279 ><TD 280 WIDTH="34%" 281 ALIGN="center" 282 VALIGN="top" 283 ><A 284 HREF="r7624.htm" 285 ACCESSKEY="U" 286 >Up</A 287 ></TD 288 ><TD 289 WIDTH="33%" 290 ALIGN="right" 291 VALIGN="top" 292 >ioctl VIDIOC_QBUF, VIDIOC_DQBUF</TD 293 ></TR 294 ></TABLE 295 ></DIV 296 ></BODY 297 ></HTML 298 > 299