4 #define xvmc_QueryVersion 0
5 #define xvmc_ListSurfaceTypes 1
6 #define xvmc_CreateContext 2
7 #define xvmc_DestroyContext 3
8 #define xvmc_CreateSurface 4
9 #define xvmc_DestroySurface 5
10 #define xvmc_CreateSubpicture 6
11 #define xvmc_DestroySubpicture 7
12 #define xvmc_ListSubpictureTypes 8
13 #define xvmc_GetDRInfo 9
14 #define xvmc_LastRequest xvmc_GetDRInfo
16 #define xvmcNumRequest (xvmc_LastRequest + 1)
20 CARD32 surface_type_id B32;
21 CARD16 chroma_format B16;
24 CARD16 max_height B16;
25 CARD16 subpicture_max_width B16;
26 CARD16 subpicture_max_height B16;
30 #define sz_xvmcSurfaceInfo 24;
36 } xvmcQueryVersionReq;
37 #define sz_xvmcQueryVersionReq 4;
40 BYTE type; /* X_Reply */
42 CARD16 sequenceNumber B16;
50 } xvmcQueryVersionReply;
51 #define sz_xvmcQueryVersionReply 32
58 } xvmcListSurfaceTypesReq;
59 #define sz_xvmcListSurfaceTypesReq 8;
62 BYTE type; /* X_Reply */
64 CARD16 sequenceNumber B16;
72 } xvmcListSurfaceTypesReply;
73 #define sz_xvmcListSurfaceTypesReply 32
79 CARD32 context_id B32;
81 CARD32 surface_type_id B32;
85 } xvmcCreateContextReq;
86 #define sz_xvmcCreateContextReq 24;
89 BYTE type; /* X_Reply */
91 CARD16 sequenceNumber B16;
93 CARD16 width_actual B16;
94 CARD16 height_actual B16;
95 CARD32 flags_return B32;
100 } xvmcCreateContextReply;
101 #define sz_xvmcCreateContextReply 32
107 CARD32 context_id B32;
108 } xvmcDestroyContextReq;
109 #define sz_xvmcDestroyContextReq 8;
115 CARD32 surface_id B32;
116 CARD32 context_id B32;
117 } xvmcCreateSurfaceReq;
118 #define sz_xvmcCreateSurfaceReq 12;
121 BYTE type; /* X_Reply */
123 CARD16 sequenceNumber B16;
131 } xvmcCreateSurfaceReply;
132 #define sz_xvmcCreateSurfaceReply 32
138 CARD32 surface_id B32;
139 } xvmcDestroySurfaceReq;
140 #define sz_xvmcDestroySurfaceReq 8;
147 CARD32 subpicture_id B32;
148 CARD32 context_id B32;
149 CARD32 xvimage_id B32;
152 } xvmcCreateSubpictureReq;
153 #define sz_xvmcCreateSubpictureReq 20;
156 BYTE type; /* X_Reply */
158 CARD16 sequenceNumber B16;
160 CARD16 width_actual B16;
161 CARD16 height_actual B16;
162 CARD16 num_palette_entries B16;
163 CARD16 entry_bytes B16;
164 CARD8 component_order[4];
168 } xvmcCreateSubpictureReply;
169 #define sz_xvmcCreateSubpictureReply 32
175 CARD32 subpicture_id B32;
176 } xvmcDestroySubpictureReq;
177 #define sz_xvmcDestroySubpictureReq 8;
184 CARD32 surface_type_id B32;
185 } xvmcListSubpictureTypesReq;
186 #define sz_xvmcListSubpictureTypesReq 12;
189 BYTE type; /* X_Reply */
191 CARD16 sequenceNumber B16;
199 } xvmcListSubpictureTypesReply;
200 #define sz_xvmcListSubpictureTypesReply 32
210 #define sz_xvmcGetDRInfoReq 16;
213 BYTE type; /* X_Reply */
215 CARD16 sequenceNumber B16;
219 CARD32 patchLevel B32;
223 } xvmcGetDRInfoReply;
224 #define sz_xvmcGetDRInfoReply 32