1XvQueryBestSize(3) Library Functions Manual XvQueryBestSize(3)
2
3
4
6 XvQueryBestSize - determine the optimum drawable region size
7
9 #include <X11/extensions/Xvlib.h>
10
11 XvQueryBestSize(dpy, port, motion, vw, vh, dw, dh, p_dw, p_dh)
12
13 Display *dpy;
14 XvPortID port;
15 Bool motion;
16 unsigned int vw, vh;
17 unsigned int dw, dh;
18 unsigned int *p_dw, *p_dh;
19
21 dpy Specifies the connection to the X server.
22
23 port Defines the port associated with the display and adaptor
24 for which the optimum size is to be calculated.
25
26 motion Specifies True if the destination size needs to support
27 full motion, and False if the destination size need only
28 support still images.
29
30 vw,vh Specifies the size of the source video region desired.
31
32 dw,dh Specifies the size of the destination drawable region
33 desired.
34
35 p_dw,p_dh Pointers to where the closest destination sizes sup‐
36 ported by the server are returned.
37
39 Some ports may be able to scale incoming or outgoing video.
40 XvQueryBestSize(3) returns the size of the closest destination region
41 that is supported by the adaptor. The returned size is guaranteed to
42 be smaller than the requested size if a smaller size is supported.
43
45 [Success]
46 Returned if XvQueryBestSize(3) completed successfully.
47
48 [XvBadExtension]
49 Returned if the Xv extension is unavailable.
50
51 [XvBadAlloc]
52 Returned if XvQueryBestSize(3) failed to allocate memory to
53 process the request.
54
56 [XvBadPort]
57 Generated if the requested port does not exist.
58
59
60
61X Version 11 libXv 1.0.3 XvQueryBestSize(3)