1XvSetPortAttribute(3)      Library Functions Manual      XvSetPortAttribute(3)
2
3
4

Name

6       XvSetPortAttribute - sets an attribute of a video port
7

Syntax

9       #include <X11/extensions/Xvlib.h>
10
11       XvSetPortAttribute(dpy, port, attribute, value)
12
13       Display *dpy;
14       XvPortID port;
15       Atom attribute;
16       int value;
17

Arguments

19       dpy            Specifies the connection to the X server.
20
21       port           Specifies  the  port  for  which  the attribute is to be
22                      used.
23
24       attribute      Identifies the port attribute to be set by this request.
25                      Can  be  one  of  the  table  entries  under  the column
26                      "String," below.
27
28       value          Identifies the value to which attribute is  to  be  set.
29                      Can be one of the table entries under the column "Type,"
30                      below.
31

Description

33       XvSetPortAttribute(3) permits a client to set  the  port  attribute  to
34       specified values.  This request supports the following values:
35
36       Attribute String        Type             Default
37
38       "XV_ENCODING"           XvEncodingID     Server dependent
39       "XV_HUE"                [-1000...1000]   0
40       "XV_SATURATION"         [-1000...1000]   0
41       "XV_BRIGHTNESS"         [-1000...1000]   0
42       "XV_CONTRAST"           [-1000...1000]   0
43
44       The supplied encoding must be one of the encodings listed for the adap‐
45       tor, otherwise an Encoding error results.
46
47       If the adaptor does not support the exact hue, saturation,  brightness,
48       and contrast levels supplied, the closest levels supported are assumed.
49       Use XvGetPortAttribute(3) to query the resulting levels.
50
51       When an XvSetPortAttribute(3) request is  processed,  a  PortControlNo‐
52       tify(3) event is generated for all clients that have requested for port
53       changes using XvSelectPortNotify(3).
54

Returned Values

56       [Success]
57               Returned if XvSetPortAttribute(3) completed successfully.
58
59       [XvBadExtension]
60               Returned if the Xv extension is unavailable.
61
62       [XvBadAlloc]
63               Returned if XvSelectVideoNotify(3) failed to allocate memory to
64               process the request.
65

Diagnostics

67       [XvBadPort]
68               Generated if the requested port does not exist.
69
70       [XvBadEncoding]
71               Generated if an encoding is specified that does not exist.
72
73       [BadMatch]
74               Generated  if  the requested attribute atom does not specify an
75               attribute supported by the adaptor.
76

See Also

78       XvGetPortAttribute(3), XvSelectPortNotify(3), XvPortNotify(3)
79
80
81
82X Version 11                      libXv 1.0.3            XvSetPortAttribute(3)
Impressum