libXv Functions XvGetPortAttribute(3xv)
NAME
XvGetPortAttribute - return current port attribute value
SYNOPSIS
cc [ flag... ] file... -lXv [ library... ]
#include
int XvGetPortAttribute(Display *dpy, XvPortID port,
Atom attribute, int p_value);
ARGUMENTS dpy Specifies the connection to the X server. port Specifies the port, associated with the given display, for which the attribute values are to be returned. attribute An atom that identifies the attribute to be queried by this request. Control atoms are obtained using the XInternAtom request with a string from the following table.p_value Pointer to the location where the attribute
value is written on return.DESCRIPTION
XvGetPortAttribute(3xv) returns the current value of the
requested port attribute in the integer pointed to byp_value. The attribute is identified using an Atom that
equates to the attribute name. The XInternAtom request can be used with one of the strings below to return a matching Atom.____________________________________________________
Attribute String Type Default____________________________________________________
"XV_ENCODING" XvEncodingID Server dependent
"XV_HUE" [-1000...1000] 0
"XV_SATURATION" [-1000...1000] 0
"XV_BRIGHTNESS" [-1000...1000] 0
"XV_CONTRAST" [-1000...1000] 0
RETURN VALUES
[Success]Returned if XvGetPortAttribute(3xv) completed suc-
cessfully. [XvBadExtension] Returned if the Xv extension is unavailable. [XvBadAlloc] X Version 11 Last change: libXv 1.0.5 1libXv Functions XvGetPortAttribute(3xv)
Returned if XvGetPortAttribute(3xv) failed to allo-
cate memory to process the request. DIAGNOSTICS [XvBadPort] Generated if the requested port does not exist. [BadMatch] Generated if the requested attribute atom does not specify an attribute supported by the adaptor.SEE ALSO
XvSetPortAttribute(3xv), XvPortNotify(3xv)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