1
.TH XvGrabPort __libmansuffix__ __vendorversion__
2
.\" $XFree86: xc/doc/man/Xv/XvGrabPort.man,v 1.4 1999/03/02 11:49:14 dawes Exp $
4
XvGrabPort \- lock port for exclusive use by client
7
.B #include <X11/extensions/Xvlib.h>
9
.B XvGrabPort(\fIdpy, port, time)\fR
11
.B Display \fI*dpy;\fR
22
Specifies the connection to the X server.
24
Defines the port to be grabbed.
26
Specifies the request timestamp.
30
XvGrabPort(__libmansuffix__) grabs a port. Once a client grabs a port,
31
only that client can make video requests
34
If the time is before the current port time, the XvGrabPort request is
35
ignored and XvInvalidTime is returned. If the port is already grabbed by
36
another client, XvAlreadyGrabbed is returned. Otherwise it returns a
37
status of \fISuccess\fR. The port time is updated when the following
38
requests are processed: XvGrabPort(__libmansuffix__), XvUngrabPort(__libmansuffix__),
39
XvPutVideo(__libmansuffix__), XvPutStill(__libmansuffix__), XvGetVideo(__libmansuffix__), XvGetStill(__libmansuffix__).
41
If the port is actively processing video for another client, the
42
video is preempted, and an XvVideoNotify event with detail XvPreempted
43
is generated for its drawable.
47
Returned if XvGrabPort(__libmansuffix__) completed successfully.
49
Returned if requested time is older than the current port time.
50
.IP [XvAlreadyGrabbed] 8
51
Returned if the port is already grabbed by another client.
52
.IP [XvBadExtension] 8
53
Returned if the Xv extension is unavailable.
55
Returned if XvGrabPort(__libmansuffix__) failed to allocate memory to process
59
Generated if the requested port does not exist.
63
XvUngrabPort(__libmansuffix__) XvVideoNotify(__libmansuffix__)