2009-10-31 12:54:56 -06:00
|
|
|
.TH XvQueryBestSize __libmansuffix__ __vendorversion__ "libXv Functions"
|
|
|
|
.SH NAME
|
2006-11-25 11:01:46 -07:00
|
|
|
XvQueryBestSize \- determine the optimum drawable region size
|
|
|
|
.\"
|
2009-10-31 12:54:56 -06:00
|
|
|
.SH SYNOPSIS
|
2006-11-25 11:01:46 -07:00
|
|
|
.B #include <X11/extensions/Xvlib.h>
|
2008-05-24 07:46:47 -06:00
|
|
|
.sp
|
|
|
|
.nf
|
2009-10-31 12:54:56 -06:00
|
|
|
.BI "int XvQueryBestSize(Display *" dpy ", XvPort " port ", Bool " motion ","
|
|
|
|
.BI " unsigned int " vw ", unsigned int " vh ","
|
|
|
|
.BI " unsigned int " dw ", unsigned int " dh ","
|
|
|
|
.BI " unsigned int *" p_dw ", unsigned int *" p_dh ");"
|
2008-05-24 07:46:47 -06:00
|
|
|
.fi
|
2009-10-31 12:54:56 -06:00
|
|
|
.SH ARGUMENTS
|
2006-11-25 11:01:46 -07:00
|
|
|
.\"
|
|
|
|
.IP \fIdpy\fR 15
|
|
|
|
Specifies the connection to the X server.
|
|
|
|
.IP \fIport\fR 15
|
2009-10-31 12:54:56 -06:00
|
|
|
Defines the port associated with the display and adaptor for which
|
2006-11-25 11:01:46 -07:00
|
|
|
the optimum size is to be calculated.
|
|
|
|
.IP \fImotion\fR 15
|
|
|
|
Specifies \fITrue\fP if the destination size needs to support
|
|
|
|
full motion, and \fIFalse\fP if the destination size need only
|
|
|
|
support still images.
|
|
|
|
.IP \fIvw,vh\fR 15
|
|
|
|
Specifies the size of the source video region desired.
|
|
|
|
.IP \fIdw,dh\fR 15
|
|
|
|
Specifies the size of the destination drawable region desired.
|
|
|
|
.IP \fIp_dw,p_dh\fR 15
|
|
|
|
Pointers to where the closest destination sizes supported by the server are
|
|
|
|
returned.
|
|
|
|
.\"
|
2009-10-31 12:54:56 -06:00
|
|
|
.SH DESCRIPTION
|
2006-11-25 11:01:46 -07:00
|
|
|
.\"
|
2009-10-31 12:54:56 -06:00
|
|
|
Some ports may be able to scale incoming or outgoing video.
|
|
|
|
.BR XvQueryBestSize (__libmansuffix__)
|
|
|
|
returns the size of the closest destination 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.
|
2006-11-25 11:01:46 -07:00
|
|
|
.\"
|
2009-10-31 12:54:56 -06:00
|
|
|
.SH RETURN VALUES
|
2006-11-25 11:01:46 -07:00
|
|
|
.IP [Success] 8
|
2009-10-31 12:54:56 -06:00
|
|
|
Returned if
|
|
|
|
.BR XvQueryBestSize (__libmansuffix__)
|
|
|
|
completed successfully.
|
2006-11-25 11:01:46 -07:00
|
|
|
.IP [XvBadExtension] 8
|
|
|
|
Returned if the Xv extension is unavailable.
|
|
|
|
.IP [XvBadAlloc] 8
|
2009-10-31 12:54:56 -06:00
|
|
|
Returned if
|
|
|
|
.BR XvQueryBestSize (__libmansuffix__)
|
|
|
|
failed to allocate memory to process the request.
|
|
|
|
.SH DIAGNOSTICS
|
2006-11-25 11:01:46 -07:00
|
|
|
.IP [XvBadPort] 8
|
|
|
|
Generated if the requested port does not exist.
|
|
|
|
.br
|