t
XvSetPortAttribute (__libmansuffix__), XvPortNotify (__libmansuffix__)
XvGetPortAttribute __libmansuffix__ __vendorversion__ "libXv Functions"
NAME
XvGetPortAttribute - return current port attribute value
SYNOPSIS
#include <X11/extensions/Xvlib.h> "int XvGetPortAttribute(Display *" dpy ", XvPortID " port "," " Atom " attribute ", int " p_value ");"
ARGUMENTS
dpy 12
Specifies the connection to the X server.
port 12
Specifies the port, associated with the given display, for
which the attribute values are to be returned.
attribute 12
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 12
Pointer to the location where the attribute value is written on
return.
DESCRIPTION
XvGetPortAttribute (__libmansuffix__) returns the current value of the requested port attribute in the integer pointed to by p_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] 8
Returned if
XvGetPortAttribute (__libmansuffix__) completed successfully.
[XvBadExtension] 8
Returned if the Xv extension is unavailable.
[XvBadAlloc] 8
Returned if
XvGetPortAttribute (__libmansuffix__) failed to allocate memory to process the request.
DIAGNOSTICS
[XvBadPort] 8
Generated if the requested port does not exist.
[BadMatch] 8
Generated if the requested attribute atom does not specify an attribute
supported by the adaptor.
SEE ALSO
XvSetPortAttribute (__libmansuffix__), XvPortNotify (__libmansuffix__)