1XvGetPortAttribute(3) Library Functions Manual XvGetPortAttribute(3)
2
3
4
6 XvGetPortAttribute - return current port attribute value
7
9 #include <X11/extensions/Xvlib.h>
10
11 XvGetPortAttribute(dpy, port, attribute, p_value)
12
13 Display *dpy;
14 XvPortID port;
15 Atom attribute;
16 int *p_value;
17
18
20 dpy Specifies the connection to the X server.
21
22 port Specifies the port, associated with the given display, for
23 which the attribute values are to be returned.
24
25 attribute
26 An atom that identifies the attribute to be queried by this
27 request. Control atoms are obtained using the XInternAtom
28 request with a string from the following table.
29
30 p_value Pointer to the location where the attribute value is written on
31 return.
32
34 XvGetPortAttribute(3) returns the current value of the requested port
35 attribute in the integer pointed to by p_value. The attribute is iden‐
36 tified using an Atom that equates to the attribute name. The XInter‐
37 nAtom request can be used with one of the strings below to return a
38 matching Atom.
39
40 Attribute String Type Default
41
42 "XV_ENCODING" XvEncodingID Server dependent
43 "XV_HUE" [-1000...1000] 0
44 "XV_SATURATION" [-1000...1000] 0
45 "XV_BRIGHTNESS" [-1000...1000] 0
46 "XV_CONTRAST" [-1000...1000] 0
47
49 [Success]
50 Returned if XvGetPortAttribute(3) completed successfully.
51
52 [XvBadExtension]
53 Returned if the Xv extension is unavailable.
54
55 [XvBadAlloc]
56 Returned if XvGetPortAttribute(3) failed to allocate memory to
57 process the request.
58
60 [XvBadPort]
61 Generated if the requested port does not exist.
62
63 [BadMatch]
64 Generated if the requested attribute atom does not specify an
65 attribute supported by the adaptor.
66
68 XvSetPortAttribute(3), XvPortNotify(3)
69
70
71
72
73X Version 11 libXv 1.0.3 XvGetPortAttribute(3)