1
.TH XvQueryAdaptors __libmansuffix__ __vendorversion__
2
.\" $XFree86: xc/doc/man/Xv/XvQueryAdaptors.man,v 1.5 2001/01/27 18:20:36 dawes Exp $
4
XvQueryAdaptors \- return adaptor information for a screen
7
.B #include <X11/extensions/Xvlib.h>
10
.B XvQueryAdaptors(\fIdpy, win, p_num_adaptors, pp_adaptor_info\fR)
12
\fBDisplay \fI*dpy;\fR
14
\fBDrawable \fI draw;\fR
16
\fBint \fI*p_num_adaptors\fR;
18
\fBXvAdaptorInfo \fI**pp_adaptor_info\fR;
24
Specifies the connection to the X server.
26
Specifies a drawable of the screen for which the adaptor
27
information is desired.
28
.IP \fIp_num_adaptors\fR 8
29
A pointer to where the number of adaptors for the specified screen
31
.IP \fIpp_adaptor_info\fR 8
32
A pointer to where the list of returned adaptor information is
37
XvQueryAdaptors(__libmansuffix__) returns an video adaptor information for
38
the screen of the specified drawable. The XvAdaptorInfo structure
39
has the following organization:
44
unsigned long num_ports;
47
unsigned long num_formats;
49
unsigned long num_adaptors;
54
The resource ID of the first adaptor port.
56
The number of ports supported by the adaptor.
58
A bit mask with the value XvInputMask asserted if the adaptor supports video
59
input, and value XvOutputMask asserted if the adaptor supports video output.
61
A vendor specific name that identifies the adaptor.
62
.IP \fInum_formats\fR 8
63
The number of depth/visual id formats supported by the adaptor.
65
A pointer to an array of XvFormat structures.
67
The XvFormat structure has the following organization:
72
unsigned long visual_id;
77
A drawable depth supported by the adaptor.
79
A visual-id supported for the given depth by the adaptor.
83
Returned if XvQueryAdaptors(__libmansuffix__) completed successfully.
84
.IP [XvBadExtension] 8
85
Returned if the Xv extension is unavailable.
87
Returned if XvQueryAdaptors(__libmansuffix__) failed to allocate memory to process
91
Returned if the requested drawable does not exist.
93
XvFreeAdaptorInfo(__libmansuffix__)