1 .TH XvGetStill __libmansuffix__ __vendorversion__ "libXv Functions"
3 XvGetStill \- capture a single frame of video from a drawable
6 .B #include <X11/extensions/Xvlib.h>
9 .BI "int XvGetStill(Display *" dpy ", XvPortID " port ", Drawable " d ", GC " gc ","
10 .BI " int " vx ", int " vy ", unsigned int " vw ", unsigned int " vh ","
11 .BI " int " dx ", int " dy ", unsigned int " dw ", unsigned int " dh ");"
16 Specifies the connection to the X server.
18 Defines the port to which the still is output.
20 Defines the drawable from which the still is to be captured.
21 Pixmaps are currently not supported.
23 Defines the graphical context. GC components are:
29 .IP \fIvx,vy,vw,vh\fR 15
30 Define the location and size of the destination video region
31 into which the still is to be written. \fIvx\fP and \fIvy\fP define the
34 coordinates of the upper-left corner of the video region;
37 define the width and height, in pixels, of the video region.
38 .IP \fIdx,dy,dw,dh\fR 15
39 Define the location and size of the source drawable from which the
40 still image is to be captured.
46 coordinates of the upper-left corner of the drawable region;
49 define the width and height, in pixels, of the drawable region.
54 captures a single frame of video from a drawable. The
55 position and size of the destination (video) rectangle is specified by
61 The position and size of the source (drawable) rectangle is specified by
68 Drawable data is clipped to the bounds of the drawable, scaled to the
69 requested video region size (or the closest size supported) and
70 clipped to the bounds of the video encoding. The contents of any region
71 not updated with drawable data is undefined.
73 .\" If the still is successfully captured an XvVideoNotify event with
74 .\" detail XvStill is generated for the drawable.
75 .\" [mhs]: Not in this universe
76 If the port is grabbed
77 by another client, this request is ignored, and an XvVideoNotify event
78 with detail XvBusy is generated for the drawable.
82 .BR XvGetStill (__libmansuffix__)
83 completed successfully.
84 .IP [XvBadExtension] 8
85 Returned if the Xv extension is unavailable.
88 .BR XvGetStill (__libmansuffix__)
89 failed to allocate memory to process the request.
92 Generated if the requested port does not exist.
94 Generated if the requested drawable does not exist.
96 Generated if the requested graphics context does not exist.
98 Generated if there were insufficient resources to process the request.
102 .BR XvPutStill (__libmansuffix__),
103 .BR XvGetVideo (__libmansuffix__),
104 .BR XvPutVideo (__libmansuffix__),
105 .BR XvVideoNotify (__libmansuffix__)