Your company here — click to reach over 10,000 unique daily visitors

XvGetPortAttribute - Man Page

return current port attribute value


#include <X11/extensions/Xvlib.h>

int XvGetPortAttribute(Display *dpy, XvPortID port,
                       Atom attribute, int p_value);



Specifies the connection to the X server.


Specifies the port, associated with the given display, for which the attribute values are to be returned.


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.


Pointer to the location where the attribute value is written on return.


XvGetPortAttribute(3) 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 StringTypeDefault
"XV_ENCODING"XvEncodingIDServer dependent

Return Values


Returned if XvGetPortAttribute(3) completed successfully.


Returned if the Xv extension is unavailable.


Returned if XvGetPortAttribute(3) failed to allocate memory to process the request.



Generated if the requested port does not exist.


Generated if the requested attribute atom does not specify an attribute supported by the adaptor.

See Also

XvSetPortAttribute(3), XvPortNotify(3)

Referenced By

Xv(3), XvPortNotify(3), XvQueryPortAttributes(3), XvSetPortAttribute(3).

libXv 1.0.12 X Version 11 libXv Functions