logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

XvQueryBestSize - determine the optimum drawable region size

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 needs to support full  motion,  and  False  if  the
                      destination 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 drawable 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(3) 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.

Diagnostics

       [XvBadPort]
               Generated if the requested port does not exist.

X Version 11                                      libXv 1.0.11                                XvQueryBestSize(3)

Name

       XvQueryBestSize - determine the optimum drawable region size

Return Values

       [Success]
               Returned if XvQueryBestSize(3) completed successfully.

       [XvBadExtension]
               Returned if the Xv extension is unavailable.

       [XvBadAlloc]
               Returned if XvQueryBestSize(3) failed to allocate memory to process the request.

Synopsis

#include<X11/extensions/Xvlib.h>intXvQueryBestSize(Display*dpy,XvPortport,Boolmotion,unsignedintvw,unsignedintvh,unsignedintdw,unsignedintdh,unsignedint*p_dw,unsignedint*p_dh);

See Also