1XvGrabPort(3)                   libXv Functions                  XvGrabPort(3)
2
3
4

NAME

6       XvGrabPort - lock port for exclusive use by client
7

SYNOPSIS

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

ARGUMENTS

14       dpy     Specifies the connection to the X server.
15
16       port    Defines the port to be grabbed.
17
18       time    Specifies the request timestamp.
19

DESCRIPTION

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

RETURN VALUES

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

DIAGNOSTICS

53       [XvBadPort]    Generated if the requested port does not exist.
54

SEE ALSO

56       XvUngrabPort(3), XvVideoNotify(3)
57
58
59
60
61X Version 11                      libXv 1.0.5                    XvGrabPort(3)
Impressum