1XvQueryAdaptors(3)         Library Functions Manual         XvQueryAdaptors(3)
2
3
4

Name

6       XvQueryAdaptors - return adaptor information for a screen
7

Syntax

9       #include <X11/extensions/Xvlib.h>
10
11       XvQueryAdaptors(dpy, win, p_num_adaptors, pp_adaptor_info)
12
13       Display *dpy;
14       Drawable  draw;
15       int *p_num_adaptors;
16       XvAdaptorInfo **pp_adaptor_info;
17

Arguments

19       dpy     Specifies the connection to the X server.
20
21       draw    Specifies a drawable of the screen for which the adaptor infor‐
22               mation is desired.
23
24       p_num_adaptors
25               A pointer to where the number of  adaptors  for  the  specified
26               screen is returned.
27
28       pp_adaptor_info
29               A  pointer to where the list of returned adaptor information is
30               returned.
31

Description

33       XvQueryAdaptors(3) returns an video adaptor information for the  screen
34       of the specified drawable.  The XvAdaptorInfo structure has the follow‐
35       ing organization:
36
37            typedef struct {
38              XvPortID base_id;
39              unsigned long num_ports;
40              char type;
41              char *name;
42              unsigned long num_formats;
43              XvFormat *formats;
44              unsigned long num_adaptors;
45            } XvAdaptorInfo;
46
47
48       base_id The resource ID of the first adaptor port.
49
50       num_ports
51               The number of ports supported by the adaptor.
52
53       type    A bit mask with the value XvInputMask asserted if  the  adaptor
54               supports  video  input,  and value XvOutputMask asserted if the
55               adaptor supports video output.
56
57       name    A vendor specific name that identifies the adaptor.
58
59       num_formats
60               The number of depth/visual id formats supported by the adaptor.
61
62       formats A pointer to an array of XvFormat structures.
63
64       The XvFormat structure has the following organization:
65
66            typedef struct {
67              char depth;
68              unsigned long visual_id;
69            } XvFormat;
70
71
72       depth   A drawable depth supported by the adaptor.
73
74       visual_id
75               A visual-id supported for the given depth by the adaptor.
76

Returned Values

78       [Success]
79               Returned if XvQueryAdaptors(3) completed successfully.
80
81       [XvBadExtension]
82               Returned if the Xv extension is unavailable.
83
84       [XvBadAlloc]
85               Returned if XvQueryAdaptors(3) failed  to  allocate  memory  to
86               process the request.
87

Diagnostics

89       [Drawable]
90               Returned if the requested drawable does not exist.
91

See Also

93       XvFreeAdaptorInfo(3)
94
95
96
97X Version 11                      libXv 1.0.3               XvQueryAdaptors(3)
Impressum