1 | /* $XFree86: xc/include/extensions/XvMCproto.h,v 1.5 2001/11/14 21:54:37 mvojkovi Exp $ */
|
---|
2 |
|
---|
3 | #ifndef _XVMCPROTO_H_
|
---|
4 | #define _XVMCPROTO_H_
|
---|
5 |
|
---|
6 | #define xvmc_QueryVersion 0
|
---|
7 | #define xvmc_ListSurfaceTypes 1
|
---|
8 | #define xvmc_CreateContext 2
|
---|
9 | #define xvmc_DestroyContext 3
|
---|
10 | #define xvmc_CreateSurface 4
|
---|
11 | #define xvmc_DestroySurface 5
|
---|
12 | #define xvmc_CreateSubpicture 6
|
---|
13 | #define xvmc_DestroySubpicture 7
|
---|
14 | #define xvmc_ListSubpictureTypes 8
|
---|
15 | #define xvmc_LastRequest xvmc_ListSubpictureTypes
|
---|
16 |
|
---|
17 | #define xvmcNumRequest (xvmc_LastRequest + 1)
|
---|
18 |
|
---|
19 |
|
---|
20 | typedef struct {
|
---|
21 | CARD32 surface_type_id B32;
|
---|
22 | CARD16 chroma_format B16;
|
---|
23 | CARD16 pad0 B16;
|
---|
24 | CARD16 max_width B16;
|
---|
25 | CARD16 max_height B16;
|
---|
26 | CARD16 subpicture_max_width B16;
|
---|
27 | CARD16 subpicture_max_height B16;
|
---|
28 | CARD32 mc_type B32;
|
---|
29 | CARD32 flags B32;
|
---|
30 | } xvmcSurfaceInfo;
|
---|
31 | #define sz_xvmcSurfaceInfo 24;
|
---|
32 |
|
---|
33 | typedef struct {
|
---|
34 | CARD8 reqType;
|
---|
35 | CARD8 xvmcReqType;
|
---|
36 | CARD16 length B16;
|
---|
37 | } xvmcQueryVersionReq;
|
---|
38 | #define sz_xvmcQueryVersionReq 4;
|
---|
39 |
|
---|
40 | typedef struct {
|
---|
41 | BYTE type; /* X_Reply */
|
---|
42 | BYTE padb1;
|
---|
43 | CARD16 sequenceNumber B16;
|
---|
44 | CARD32 length B32;
|
---|
45 | CARD32 major B32;
|
---|
46 | CARD32 minor B32;
|
---|
47 | CARD32 padl4 B32;
|
---|
48 | CARD32 padl5 B32;
|
---|
49 | CARD32 padl6 B32;
|
---|
50 | CARD32 padl7 B32;
|
---|
51 | } xvmcQueryVersionReply;
|
---|
52 | #define sz_xvmcQueryVersionReply 32
|
---|
53 |
|
---|
54 | typedef struct {
|
---|
55 | CARD8 reqType;
|
---|
56 | CARD8 xvmcReqType;
|
---|
57 | CARD16 length B16;
|
---|
58 | CARD32 port B32;
|
---|
59 | } xvmcListSurfaceTypesReq;
|
---|
60 | #define sz_xvmcListSurfaceTypesReq 8;
|
---|
61 |
|
---|
62 | typedef struct {
|
---|
63 | BYTE type; /* X_Reply */
|
---|
64 | BYTE padb1;
|
---|
65 | CARD16 sequenceNumber B16;
|
---|
66 | CARD32 length B32;
|
---|
67 | CARD32 num B32;
|
---|
68 | CARD32 padl3 B32;
|
---|
69 | CARD32 padl4 B32;
|
---|
70 | CARD32 padl5 B32;
|
---|
71 | CARD32 padl6 B32;
|
---|
72 | CARD32 padl7 B32;
|
---|
73 | } xvmcListSurfaceTypesReply;
|
---|
74 | #define sz_xvmcListSurfaceTypesReply 32
|
---|
75 |
|
---|
76 | typedef struct {
|
---|
77 | CARD8 reqType;
|
---|
78 | CARD8 xvmcReqType;
|
---|
79 | CARD16 length B16;
|
---|
80 | CARD32 context_id B32;
|
---|
81 | CARD32 port B32;
|
---|
82 | CARD32 surface_type_id B32;
|
---|
83 | CARD16 width B16;
|
---|
84 | CARD16 height B16;
|
---|
85 | CARD32 flags B32;
|
---|
86 | } xvmcCreateContextReq;
|
---|
87 | #define sz_xvmcCreateContextReq 24;
|
---|
88 |
|
---|
89 | typedef struct {
|
---|
90 | BYTE type; /* X_Reply */
|
---|
91 | BYTE padb1;
|
---|
92 | CARD16 sequenceNumber B16;
|
---|
93 | CARD32 length B32;
|
---|
94 | CARD16 width_actual B16;
|
---|
95 | CARD16 height_actual B16;
|
---|
96 | CARD32 flags_return B32;
|
---|
97 | CARD32 padl4 B32;
|
---|
98 | CARD32 padl5 B32;
|
---|
99 | CARD32 padl6 B32;
|
---|
100 | CARD32 padl7 B32;
|
---|
101 | } xvmcCreateContextReply;
|
---|
102 | #define sz_xvmcCreateContextReply 32
|
---|
103 |
|
---|
104 | typedef struct {
|
---|
105 | CARD8 reqType;
|
---|
106 | CARD8 xvmcReqType;
|
---|
107 | CARD16 length B16;
|
---|
108 | CARD32 context_id B32;
|
---|
109 | } xvmcDestroyContextReq;
|
---|
110 | #define sz_xvmcDestroyContextReq 8;
|
---|
111 |
|
---|
112 | typedef struct {
|
---|
113 | CARD8 reqType;
|
---|
114 | CARD8 xvmcReqType;
|
---|
115 | CARD16 length B16;
|
---|
116 | CARD32 surface_id B32;
|
---|
117 | CARD32 context_id B32;
|
---|
118 | } xvmcCreateSurfaceReq;
|
---|
119 | #define sz_xvmcCreateSurfaceReq 12;
|
---|
120 |
|
---|
121 | typedef struct {
|
---|
122 | BYTE type; /* X_Reply */
|
---|
123 | BYTE padb1;
|
---|
124 | CARD16 sequenceNumber B16;
|
---|
125 | CARD32 length B32;
|
---|
126 | CARD32 padl2 B32;
|
---|
127 | CARD32 padl3 B32;
|
---|
128 | CARD32 padl4 B32;
|
---|
129 | CARD32 padl5 B32;
|
---|
130 | CARD32 padl6 B32;
|
---|
131 | CARD32 padl7 B32;
|
---|
132 | } xvmcCreateSurfaceReply;
|
---|
133 | #define sz_xvmcCreateSurfaceReply 32
|
---|
134 |
|
---|
135 | typedef struct {
|
---|
136 | CARD8 reqType;
|
---|
137 | CARD8 xvmcReqType;
|
---|
138 | CARD16 length B16;
|
---|
139 | CARD32 surface_id B32;
|
---|
140 | } xvmcDestroySurfaceReq;
|
---|
141 | #define sz_xvmcDestroySurfaceReq 8;
|
---|
142 |
|
---|
143 |
|
---|
144 | typedef struct {
|
---|
145 | CARD8 reqType;
|
---|
146 | CARD8 xvmcReqType;
|
---|
147 | CARD16 length B16;
|
---|
148 | CARD32 subpicture_id B32;
|
---|
149 | CARD32 context_id B32;
|
---|
150 | CARD32 xvimage_id B32;
|
---|
151 | CARD16 width B16;
|
---|
152 | CARD16 height B16;
|
---|
153 | } xvmcCreateSubpictureReq;
|
---|
154 | #define sz_xvmcCreateSubpictureReq 20;
|
---|
155 |
|
---|
156 | typedef struct {
|
---|
157 | BYTE type; /* X_Reply */
|
---|
158 | BYTE padb1;
|
---|
159 | CARD16 sequenceNumber B16;
|
---|
160 | CARD32 length B32;
|
---|
161 | CARD16 width_actual B16;
|
---|
162 | CARD16 height_actual B16;
|
---|
163 | CARD16 num_palette_entries B16;
|
---|
164 | CARD16 entry_bytes B16;
|
---|
165 | CARD8 component_order[4];
|
---|
166 | CARD32 padl5 B32;
|
---|
167 | CARD32 padl6 B32;
|
---|
168 | CARD32 padl7 B32;
|
---|
169 | } xvmcCreateSubpictureReply;
|
---|
170 | #define sz_xvmcCreateSubpictureReply 32
|
---|
171 |
|
---|
172 | typedef struct {
|
---|
173 | CARD8 reqType;
|
---|
174 | CARD8 xvmcReqType;
|
---|
175 | CARD16 length B16;
|
---|
176 | CARD32 subpicture_id B32;
|
---|
177 | } xvmcDestroySubpictureReq;
|
---|
178 | #define sz_xvmcDestroySubpictureReq 8;
|
---|
179 |
|
---|
180 | typedef struct {
|
---|
181 | CARD8 reqType;
|
---|
182 | CARD8 xvmcReqType;
|
---|
183 | CARD16 length B16;
|
---|
184 | CARD32 port B32;
|
---|
185 | CARD32 surface_type_id B32;
|
---|
186 | } xvmcListSubpictureTypesReq;
|
---|
187 | #define sz_xvmcListSubpictureTypesReq 12;
|
---|
188 |
|
---|
189 | typedef struct {
|
---|
190 | BYTE type; /* X_Reply */
|
---|
191 | BYTE padb1;
|
---|
192 | CARD16 sequenceNumber B16;
|
---|
193 | CARD32 length B32;
|
---|
194 | CARD32 num B32;
|
---|
195 | CARD32 padl2 B32;
|
---|
196 | CARD32 padl3 B32;
|
---|
197 | CARD32 padl4 B32;
|
---|
198 | CARD32 padl5 B32;
|
---|
199 | CARD32 padl6 B32;
|
---|
200 | } xvmcListSubpictureTypesReply;
|
---|
201 | #define sz_xvmcListSubpictureTypesReply 32
|
---|
202 |
|
---|
203 | #endif
|
---|