1XvGrabPort(3)              Library Functions Manual              XvGrabPort(3)
2
3
4

Name

6       XvGrabPort - lock port for exclusive use by client
7

Syntax

9       #include <X11/extensions/Xvlib.h>
10
11       XvGrabPort(dpy, port, time)
12
13       Display *dpy;
14       XvPortID port;
15       Time time;
16

Arguments

18       dpy     Specifies the connection to the X server.
19
20       port    Defines the port to be grabbed.
21
22       time    Specifies the request timestamp.
23

Description

25       XvGrabPort(3)  grabs  a  port.   Once  a client grabs a port, only that
26       client can make video requests to that port.
27
28       If the time is before the current port time, the XvGrabPort request  is
29       ignored  and XvInvalidTime is returned.  If the port is already grabbed
30       by another client, XvAlreadyGrabbed is returned. Otherwise it returns a
31       status  of  Success.   The  port  time  is  updated  when the following
32       requests are processed: XvGrabPort(3), XvUngrabPort(3),  XvPutVideo(3),
33       XvPutStill(3), XvGetVideo(3), XvGetStill(3).
34
35       If  the port is actively processing video for another client, the video
36       is preempted, and an XvVideoNotify event  with  detail  XvPreempted  is
37       generated for its drawable.
38

Returned Values

40       [Success]
41               Returned if XvGrabPort(3) completed successfully.
42
43       [XvInvalidTime]
44               Returned if requested time is older than the current port time.
45
46       [XvAlreadyGrabbed]
47               Returned if the port is already grabbed by another client.
48
49       [XvBadExtension]
50               Returned if the Xv extension is unavailable.
51
52       [XvBadAlloc]
53               Returned  if XvGrabPort(3) failed to allocate memory to process
54               the request.
55

Diagnostics

57       [XvBadPort]    Generated if the requested port does not exist.
58

See Also

60       XvUngrabPort(3) XvVideoNotify(3)
61
62
63
64X Version 11                      libXv 1.0.3                    XvGrabPort(3)
Impressum