1XvGetPortAttribute(3) libXv Functions XvGetPortAttribute(3)
2
3
4
6 XvGetPortAttribute - return current port attribute value
7
9 #include <X11/extensions/Xvlib.h>
10
11 int XvGetPortAttribute(Display *dpy, XvPortID port,
12 Atom attribute, int p_value);
13
15 dpy Specifies the connection to the X server.
16
17 port Specifies the port, associated with the given display, for
18 which the attribute values are to be returned.
19
20 attribute An atom that identifies the attribute to be queried by this
21 request. Control atoms are obtained using the XInternAtom
22 request with a string from the following table.
23
24 p_value Pointer to the location where the attribute value is writ‐
25 ten on return.
26
28 XvGetPortAttribute(3) returns the current value of the requested port
29 attribute in the integer pointed to by p_value. The attribute is iden‐
30 tified using an Atom that equates to the attribute name. The XInter‐
31 nAtom request can be used with one of the strings below to return a
32 matching Atom.
33
34 ─────────────────────────────────────────────────────
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
45 [Success]
46 Returned if XvGetPortAttribute(3) completed successfully.
47
48 [XvBadExtension]
49 Returned if the Xv extension is unavailable.
50
51 [XvBadAlloc]
52 Returned if XvGetPortAttribute(3) failed to allocate memory to
53 process the request.
54
56 [XvBadPort]
57 Generated if the requested port does not exist.
58
59 [BadMatch]
60 Generated if the requested attribute atom does not specify an
61 attribute supported by the adaptor.
62
64 XvSetPortAttribute(3), XvPortNotify(3)
65
66
67
68X Version 11 libXv 1.0.11 XvGetPortAttribute(3)