libXv Functions XvQueryBestSize(3xv)
NAME
XvQueryBestSize - determine the optimum drawable region size
SYNOPSIS
cc [ flag... ] file... -lXv [ library... ]
#include
int XvQueryBestSize(Display *dpy, XvPort port, Bool motion
unsigned int vw, unsigned int vh, unsigned int dw, unsigned int dh,unsigned int *p_dw, unsigned int *p_dh);
ARGUMENTS dpy Specifies the connection to the X server. port Defines the port associated with the display and adaptor for which the optimum size is to be calculated. motion Specifies True if the destination size needsto support full motion, and False if the des-
tination size need only support still images. vw,vh Specifies the size of the source video region desired.dw,dh Specifies the size of the destination draw-
able region desired.p_dw,p_dh Pointers to where the closest destination
sizes supported by the server are returned.DESCRIPTION
Some ports may be able to scale incoming or outgoing video.XvQueryBestSize(3xv) returns the size of the closest desti-
nation region that is supported by the adaptor. The returned size is guaranteed to be smaller than the requested size if a smaller size is supported.RETURN VALUES
[Success]Returned if XvQueryBestSize(3xv) completed success-
fully. [XvBadExtension] Returned if the Xv extension is unavailable. [XvBadAlloc]Returned if XvQueryBestSize(3xv) failed to allocate
memory to process the request. X Version 11 Last change: libXv 1.0.5 1libXv Functions XvQueryBestSize(3xv)
DIAGNOSTICS [XvBadPort] Generated if the requested port does not exist.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | x11/library/libxv ||_____________________________|_____________________________|
| Interface Stability | Volatile ||_____________________________|_____________________________|
| MT-Level | See XInitThreads(3X11) |
|_____________________________|_____________________________|
X Version 11 Last change: libXv 1.0.5 2