summaryrefslogtreecommitdiff
path: root/lib/libXv/man/XvGetPortAttribute.man
blob: 489db2d65f940393f2f3dca28553d2791e07c175 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
'\" t
.TH XvGetPortAttribute __libmansuffix__ __vendorversion__ "libXv Functions"
.SH NAME
XvGetPortAttribute \- return current port attribute value
.\"
.SH SYNOPSIS
.B #include <X11/extensions/Xvlib.h>
.sp
.nf
.BI "int XvGetPortAttribute(Display *" dpy ", XvPortID " port ","
.BI "                       Atom " attribute ", int " p_value ");"
.fi
.SH ARGUMENTS
.\"
.IP \fIdpy\fR 12
Specifies the connection to the X server.
.IP \fIport\fR 12
Specifies the port, associated with the given display, for
which the attribute values are to be returned.
.IP \fIattribute\fR 12
An atom that identifies the attribute to be queried by this
request.  Control atoms are obtained using the XInternAtom
request with a string from the following table.
.IP \fIp_value\fR 12
Pointer to the location where the attribute value is written on
return.
.\"
.SH DESCRIPTION
.\"
.PP
.BR XvGetPortAttribute (__libmansuffix__)
returns the current value of the requested
port attribute in the integer pointed to by \fIp_value\fR.
The attribute is identified using an Atom that equates to the attribute name.
The XInternAtom request can be used with one of the strings
below to return a matching Atom.
.PP
.TS
tab(@);
lfHB lfHB lfHB
lfR  lfR  lfR .
_
.PP
.sp 4p
Attribute String@Type@Default
.sp 6p
_
.sp 6p
"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
.sp 6p
.TE
.SH RETURN VALUES
.IP [Success] 8
Returned if
.BR XvGetPortAttribute (__libmansuffix__)
completed successfully.
.IP [XvBadExtension] 8
Returned if the Xv extension is unavailable.
.IP [XvBadAlloc] 8
Returned if
.BR XvGetPortAttribute (__libmansuffix__)
failed to allocate memory to process the request.
.SH DIAGNOSTICS
.IP [XvBadPort] 8
Generated if the requested port does not exist.
.IP [BadMatch] 8
Generated if the requested attribute atom does not specify an attribute
supported by the adaptor.
.SH SEE ALSO
.\"
.BR XvSetPortAttribute (__libmansuffix__),
.BR XvPortNotify (__libmansuffix__)