XvSetPortAttribute(3) | libXv Functions | XvSetPortAttribute(3) |
XvSetPortAttribute - sets an attribute of a video port
#include <X11/extensions/Xvlib.h>
int XvSetPortAttribute(Display *dpy, XvPortID port, Atom attribute, int value);
XvSetPortAttribute(3)
permits a client to set the port attribute to specified values. This request
supports the following values:
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 |
The supplied encoding must be one of the encodings listed for the adaptor, otherwise an Encoding error results.
If the adaptor does not support the exact hue, saturation, brightness, and contrast levels supplied, the closest levels supported are assumed. Use XvGetPortAttribute(3) to query the resulting levels.
When an XvSetPortAttribute(3) request is processed, a XvPortNotify(3) event is generated for all clients that have requested notification of port changes using XvSelectPortNotify(3).
XvGetPortAttribute(3), XvQueryPortAttributes(3), XvSelectPortNotify(3), XvPortNotify(3)
libXv 1.0.11 | X Version 11 |