Display *dpy;
XvPortID port;
Atom attribute;
int value;
Arguments
dpy
Specifies the connection to the X server.
port
Specifies the port for which the attribute is to be used.
attribute
Identifies the port attribute to be set by this request.
Can be one of the table entries under the column "String," below.
value
Identifies the value to which attribute is to be set.
Can be one of the table entries under the column "Type," below.
Description
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.