~ubuntu-branches/debian/squeeze/libxv/squeeze

« back to all changes in this revision

Viewing changes to man/XvGrabPort.man

  • Committer: Bazaar Package Importer
  • Author(s): David Nusinow
  • Date: 2006-09-25 20:17:05 UTC
  • Revision ID: james.westby@ubuntu.com-20060925201705-o5vqinq0rqdc7obb
Tags: upstream-1.0.2
ImportĀ upstreamĀ versionĀ 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH XvGrabPort __libmansuffix__ __vendorversion__
 
2
.\" $XFree86: xc/doc/man/Xv/XvGrabPort.man,v 1.4 1999/03/02 11:49:14 dawes Exp $
 
3
.SH Name
 
4
XvGrabPort \- lock port for exclusive use by client
 
5
.\"
 
6
.SH Syntax
 
7
.B #include <X11/extensions/Xvlib.h>
 
8
.sp 1l
 
9
.B XvGrabPort(\fIdpy, port, time)\fR
 
10
.sp 1l
 
11
.B Display \fI*dpy;\fR
 
12
.br
 
13
.B XvPortID 
 
14
.I port;
 
15
.br
 
16
.B Time 
 
17
.I time;
 
18
.\"
 
19
.SH Arguments
 
20
.\"
 
21
.IP \fIdpy\fR 8 
 
22
Specifies the connection to the X server.
 
23
.IP \fIport\fR 8
 
24
Defines the port to be grabbed.
 
25
.IP \fItime\fR 8
 
26
Specifies the request timestamp.
 
27
.\"
 
28
.SH Description
 
29
.\"
 
30
XvGrabPort(__libmansuffix__) grabs a port.  Once a client grabs a port, 
 
31
only that client can make video requests
 
32
to that port.  
 
33
.PP
 
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__).
 
40
.PP
 
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.
 
44
.\"
 
45
.SH Returned Values
 
46
.IP [Success] 8
 
47
Returned if XvGrabPort(__libmansuffix__) completed successfully.
 
48
.IP [XvInvalidTime] 8
 
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.
 
54
.IP [XvBadAlloc] 8
 
55
Returned if XvGrabPort(__libmansuffix__) failed to allocate memory to process
 
56
the request.
 
57
.SH Diagnostics
 
58
.IP [XvBadPort] 15
 
59
Generated if the requested port does not exist.
 
60
.\"
 
61
.SH See Also
 
62
.\"
 
63
XvUngrabPort(__libmansuffix__) XvVideoNotify(__libmansuffix__)
 
64
.br