xenocara/lib/libXv/man/XvQueryAdaptors.man

94 lines
2.6 KiB
Groff
Raw Normal View History

2009-10-31 12:54:56 -06:00
.TH XvQueryAdaptors __libmansuffix__ __vendorversion__ "libXv Functions"
.SH NAME
2006-11-25 11:01:46 -07:00
XvQueryAdaptors \- return adaptor information for a screen
.\"
2009-10-31 12:54:56 -06:00
.SH SYNOPSIS
2006-11-25 11:01:46 -07:00
.B #include <X11/extensions/Xvlib.h>
2008-05-24 07:46:47 -06:00
.sp
.nf
2009-10-31 12:54:56 -06:00
.BI "int XvQueryAdaptors(Display *" dpy ", Window " window ","
.BI " unsigned int *" p_num_adaptors ","
.BI " XvAdaptorInfo **" pp_adaptor_info ");"
2008-05-24 07:46:47 -06:00
.fi
2009-10-31 12:54:56 -06:00
.SH ARGUMENTS
2006-11-25 11:01:46 -07:00
.\"
.IP \fIdpy\fR 8
Specifies the connection to the X server.
2008-05-24 07:46:47 -06:00
.IP \fIwindow\fR 8
2009-10-31 12:54:56 -06:00
Specifies a window of the screen for which the adaptor
2006-11-25 11:01:46 -07:00
information is desired.
.IP \fIp_num_adaptors\fR 8
2009-10-31 12:54:56 -06:00
A pointer to where the number of adaptors for the specified screen
2006-11-25 11:01:46 -07:00
is returned.
.IP \fIpp_adaptor_info\fR 8
A pointer to where the list of returned adaptor information is
returned.
.\"
2009-10-31 12:54:56 -06:00
.SH DESCRIPTION
2006-11-25 11:01:46 -07:00
.\"
2009-10-31 12:54:56 -06:00
.BR XvQueryAdaptors (__libmansuffix__)
returns an video adaptor information for
2006-11-25 11:01:46 -07:00
the screen of the specified drawable. The XvAdaptorInfo structure
has the following organization:
.EX
typedef struct {
XvPortID base_id;
unsigned long num_ports;
char type;
char *name;
unsigned long num_formats;
XvFormat *formats;
unsigned long num_adaptors;
} XvAdaptorInfo;
.EE
.IP \fIbase_id\fR 8
The resource ID of the first adaptor port.
.IP \fInum_ports\fR 8
The number of ports supported by the adaptor.
.IP \fItype\fR 8
A bit mask with the value XvInputMask asserted if the adaptor supports video
input, and value XvOutputMask asserted if the adaptor supports video output.
2009-10-31 12:54:56 -06:00
In Xv protocol 2.2 and later, there are 3 new bits defined - XvVideoMask,
XvStillMask and XvImageMask indicating that the adaptor is capable
of video, still or image primitives respectively.
2006-11-25 11:01:46 -07:00
.IP \fIname\fR 8
A vendor specific name that identifies the adaptor.
.IP \fInum_formats\fR 8
The number of depth/visual id formats supported by the adaptor.
.IP \fIformats\fR 8
A pointer to an array of XvFormat structures.
.PP
The XvFormat structure has the following organization:
.EX
typedef struct {
char depth;
unsigned long visual_id;
} XvFormat;
.EE
.IP \fIdepth\fR 8
A drawable depth supported by the adaptor.
.IP \fIvisual_id\fR 8
A visual-id supported for the given depth by the adaptor.
.\"
2009-10-31 12:54:56 -06:00
.SH RETURN VALUES
2006-11-25 11:01:46 -07:00
.IP [Success] 8
2009-10-31 12:54:56 -06:00
Returned if
.BR XvQueryAdaptors (__libmansuffix__)
completed successfully.
2006-11-25 11:01:46 -07:00
.IP [XvBadExtension] 8
Returned if the Xv extension is unavailable.
.IP [XvBadAlloc] 8
2009-10-31 12:54:56 -06:00
Returned if
.BR XvQueryAdaptors (__libmansuffix__)
failed to allocate memory to process the request.
.SH DIAGNOSTICS
2006-11-25 11:01:46 -07:00
.IP [Drawable] 8
Returned if the requested drawable does not exist.
2009-10-31 12:54:56 -06:00
.SH SEE ALSO
.BR XvFreeAdaptorInfo (__libmansuffix__)
2006-11-25 11:01:46 -07:00
.\"