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

Name

6       XvPutStill - write a single frame of video to a drawable
7

Syntax

9       #include <X11/extensions/Xvlib.h>
10
11       XvPutStill(dpy, port, d, gc, vx, vy, vw, vh, dx, dy, dw, dh)
12
13       Display *dpy;
14       XvPortID port;
15       Drawable d;
16       GC gc;
17       int vx, vy, dx, dy;
18       unsigned int vw, vh;
19       unsigned int dw, dh;
20
21

Arguments

23       dpy            Specifies the connection to the X server.
24
25       port           Defines the port from which to get the still.
26
27       d              Defines the drawable into which the still is to be writ‐
28                      ten.  Pixmaps are currently not supported.
29
30       gc             Defines the graphical context.  GC components are:  sub‐
31                      window-mode,  clip-x-origin,  clip-y-origin,  and  clip-
32                      mask.
33
34       vx,vy,vw,vh    Define the location and size of the video region  to  be
35                      written.   vx  and vy define the upper-left pixel of the
36                      region. vw and vh define the width and height,  in  pix‐
37                      els, of the region.
38
39       dx,dy,dw,dh    Define  the  location and size of the destination region
40                      into which the still image is written.  dx and dy define
41                      the  upper-left  corner  of the region. dw and dh define
42                      the width and height, in pixels, of the region.
43

Description

45       XvPutStill(3) writes a single frame of video to a drawable.  The  posi‐
46       tion  and  size of the source (video) rectangle is specified by vx, vy,
47       vw, and vh.  The position and size of the destination  (drawable)  rec‐
48       tangle is specified by dx, dy, dw, and dh.
49
50       Video  data  is  clipped to the bounds of the video encoding, scaled to
51       the requested drawable region size (or the closest size supported)  and
52       clipped to the bounds of the drawable.
53
54       If  the port is grabbed by another client, this request is ignored, and
55       an XvVideoNotify event with detail XvBusy is generated  for  the  draw‐
56       able.   If the port is not receiving a valid video signal a VideoNotify
57       event with detail XvHardError is generated for the drawable.
58

Returned Values

60       [Success]
61               Returned if XvPutStill(3) completed successfully.
62
63       [XvBadExtension]
64               Returned if the Xv extension is unavailable.
65
66       [XvBadAlloc]
67               Returned if XvGetStill(3) failed to allocate memory to  process
68               the request.
69

Diagnostics

71       [XvBadPort]
72               Generated if the requested port does not exist.
73
74       [BadDrawable]
75               Generated if the requested drawable does not exist.
76
77       [BadGC] Generated if the requested graphics context does not exist.
78
79       [BadAlloc]
80               Generated  if  there were insufficient resources to process the
81               request.
82

See Also

84       XvPutVideo(3), XvGetStill(3), XvVideoNotify(3)
85
86
87
88X Version 11                      libXv 1.0.3                    XvPutStill(3)
Impressum