xinput: UngrabDevice-request: add pad at end
[free-sw/xcb/proto] / src / xvmc.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2006 Jeremy Kolb.
4 All Rights Reserved.
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in all
14 copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the names of the authors or their
24 institutions shall not be used in advertising or otherwise to promote the
25 sale, use or other dealings in this Software without prior written
26 authorization from the authors.
27 -->
28
29 <xcb header="xvmc" extension-xname="XVideo-MotionCompensation" extension-name="XvMC" major-version="1" minor-version="1">
30     <import>xv</import>
31
32     <xidtype name="CONTEXT" />
33     <xidtype name="SURFACE" />
34     <xidtype name="SUBPICTURE" />
35
36     <struct name="SurfaceInfo">
37         <field type="SURFACE" name="id" />
38         <field type="CARD16" name="chroma_format" />
39         <field type="CARD16" name="pad0" />
40         <field type="CARD16" name="max_width" />
41         <field type="CARD16" name="max_height" />
42         <field type="CARD16" name="subpicture_max_width" />
43         <field type="CARD16" name="subpicture_max_height" />
44         <field type="CARD32" name="mc_type" />
45         <field type="CARD32" name="flags" />
46     </struct>
47     
48     <request name="QueryVersion" opcode="0"> 
49         <reply>
50             <pad bytes="1" />
51             <field type="CARD32" name="major" />
52             <field type="CARD32" name="minor" />
53         </reply>
54     </request> 
55
56     <request name="ListSurfaceTypes" opcode="1">
57         <field type="PORT" name="port_id" />
58         <reply>
59             <pad bytes="1" />
60             <field type="CARD32" name="num" />
61             <pad bytes="20" />
62             <list type="SurfaceInfo" name="surfaces">
63                 <fieldref>num</fieldref>
64             </list>
65         </reply>
66     </request>
67
68     <request name="CreateContext" opcode="2">
69         <field type="CONTEXT" name="context_id" />
70         <field type="PORT" name="port_id" />
71         <field type="SURFACE" name="surface_id" />
72         <field type="CARD16" name="width" />
73         <field type="CARD16" name="height" />
74         <field type="CARD32" name="flags" />
75         <reply>
76             <pad bytes="1" />
77             <field type="CARD16" name="width_actual" />
78             <field type="CARD16" name="height_actual" />
79             <field type="CARD32" name="flags_return" />
80             <pad bytes="20" />
81             <list type="CARD32" name="priv_data">
82                 <fieldref>length</fieldref>
83             </list>
84         </reply>
85     </request>
86
87     <request name="DestroyContext" opcode="3">
88         <field type="CONTEXT" name="context_id" />
89     </request>
90     
91     <request name="CreateSurface" opcode="4">
92         <field type="SURFACE" name="surface_id" />
93         <field type="CONTEXT" name="context_id" />
94         <reply>
95             <pad bytes="1" />
96             <pad bytes="24" />
97             <list type="CARD32" name="priv_data">
98                 <fieldref>length</fieldref>
99             </list>
100         </reply>
101     </request>
102
103     <request name="DestroySurface" opcode="5">
104         <field type="SURFACE" name="surface_id" />
105     </request>
106
107     <request name="CreateSubpicture" opcode="6">
108         <field type="SUBPICTURE" name="subpicture_id" />
109         <field type="CONTEXT" name="context" />
110         <field type="CARD32" name="xvimage_id" />
111         <field type="CARD16" name="width" />
112         <field type="CARD16" name="height" />
113         <reply>
114             <pad bytes="1" />
115             <field type="CARD16" name="width_actual" />
116             <field type="CARD16" name="height_actual" />
117             <field type="CARD16" name="num_palette_entries" />
118             <field type="CARD16" name="entry_bytes" />
119             <list type="CARD8" name="component_order">
120                 <value>4</value>
121             </list>
122             <pad bytes="12" />
123             <list type="CARD32" name="priv_data">
124                 <fieldref>length</fieldref>
125             </list>
126         </reply>
127     </request>
128
129     <request name="DestroySubpicture" opcode="7">
130         <field type="SUBPICTURE" name="subpicture_id" />
131     </request>
132
133     <request name="ListSubpictureTypes" opcode="8">
134         <field type="PORT" name="port_id" />
135         <field type="SURFACE" name="surface_id" />
136         <reply>
137             <pad bytes="1" />
138             <field type="CARD32" name="num" />
139             <pad bytes="20" />
140             <list type="ImageFormatInfo" name="types">
141                 <fieldref>num</fieldref>
142             </list>
143         </reply>    
144     </request>
145
146 </xcb>