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

Name

6       XvPutVideo - write video into a drawable
7

Syntax

9       #include <X11/extensions/Xvlib.h>
10
11       XvPutVideo(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 video.
26
27       d              Defines  the drawable (window) into which video is to be
28                      written.
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 size  and  location  of  the  source  (video)
35                      region  to  be written.  vx and vy define the upper-left
36                      pixel of the region. vw and  vh  define  the  width  and
37                      height, in pixels, of the region.
38
39       dx,dy,dw,dh    Define  the  location and size of the destination (draw‐
40                      able) region into which the video image is written.   dx
41                      and  dy  define  the upper-left pixel of the region.  dw
42                      and dh define the width and height, in  pixels,  of  the
43                      region.
44

Description

46       XvPutVideo  writes video into a drawable.  The position and size of the
47       source (video) rectangle is specified by vx, vy, vw, and vh.  The posi‐
48       tion  and  size of the destination (drawable) rectangle is specified by
49       dx, dy, dw, and dh.
50
51       Video data is clipped to the bounds of the video  encoding,  scaled  to
52       the  requested drawable region size (or the closest size supported) and
53       clipped to the bounds of the drawable.
54
55       If video is successfully initiated, an XvVideoNotify event with  detail
56       XvStarted  is  generated  for  the drawable.  If the port is already in
57       use, its video is preempted, and if the new drawable is different  than
58       the  old,  an  XvVideoNotify event with detail XvPreempted is generated
59       for the old drawable.  If the port is grabbed by another  client,  this
60       request  is  ignored,  and an XvVideoNotify event with detail XvBusy is
61       generated for the drawable. If the port is not receiving a valid  video
62       signal  or  if  the video signal is interrupted while video is active a
63       VideoNotify event with detail XvHardError is generated  for  the  draw‐
64       able.
65

Returned Values

67       [Success]
68               Returned if XvPutVideo(3) completed successfully.
69
70       [XvBadExtension]
71               Returned if the Xv extension is unavailable.
72
73       [XvBadAlloc]
74               Returned  if  there  were insufficient resources to process the
75               request.
76

Diagnostics

78       [XvBadPort]
79               Generated if the requested port does not exist.
80
81       [BadDrawable]
82               Generated if the requested drawable does not exist.
83
84       [BadGC] Generated if the requested graphics context does not exist.
85
86       [BadAlloc]
87               Generated if there were insufficient resources to  process  the
88               request.
89

See Also

91       XvPutStill(3), XvGetVideo(3), XvVideoNotify(3)
92
93
94
95X Version 11                      libXv 1.0.3                    XvPutVideo(3)
Impressum