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

NAME

6       XvPutVideo - write video into a drawable
7

SYNOPSIS

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

ARGUMENTS

16       dpy            Specifies the connection to the X server.
17
18       port           Defines the port from which to get video.
19
20       d              Defines  the drawable (window) into which video is to be
21                      written.
22
23       gc             Defines the graphical context.  GC components are:  sub‐
24                      window-mode,  clip-x-origin,  clip-y-origin,  and  clip-
25                      mask.
26
27       vx,vy,vw,vh    Define the size  and  location  of  the  source  (video)
28                      region  to  be written.  vx and vy define the upper-left
29                      pixel of the region. vw and  vh  define  the  width  and
30                      height, in pixels, of the region.
31
32       dx,dy,dw,dh    Define  the  location and size of the destination (draw‐
33                      able) region into which the video image is written.   dx
34                      and  dy  define  the upper-left pixel of the region.  dw
35                      and dh define the width and height, in  pixels,  of  the
36                      region.
37

DESCRIPTION

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

RETURN VALUES

60       [Success]
61               Returned if XvPutVideo(3) completed successfully.
62
63       [XvBadExtension]
64               Returned if the Xv extension is unavailable.
65
66       [XvBadAlloc]
67               Returned  if  there  were insufficient resources to process the
68               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       XvPutStill(3), XvGetVideo(3), XvVideoNotify(3)
85
86
87
88X Version 11                     libXv 1.0.11                    XvPutVideo(3)
Impressum