VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/7.0/X11/extensions/XvMCproto.h@ 17233

最後變更 在這個檔案從17233是 17233,由 vboxsync 提交於 16 年 前

Additions/x11/x11include: corrected svn:keywords property on all files as per http://linserv.germany/vbox/wiki/SvnKeywords

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Author Date Id Revision
檔案大小: 4.9 KB
 
1/* $XFree86: xc/include/extensions/XvMCproto.h,v 1.4 2001/04/10 00:28:24 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_GetDRInfo 9
16#define xvmc_LastRequest xvmc_GetDRInfo
17
18#define xvmcNumRequest (xvmc_LastRequest + 1)
19
20
21typedef struct {
22 CARD32 surface_type_id B32;
23 CARD16 chroma_format B16;
24 CARD16 pad0 B16;
25 CARD16 max_width B16;
26 CARD16 max_height B16;
27 CARD16 subpicture_max_width B16;
28 CARD16 subpicture_max_height B16;
29 CARD32 mc_type B32;
30 CARD32 flags B32;
31} xvmcSurfaceInfo;
32#define sz_xvmcSurfaceInfo 24;
33
34typedef struct {
35 CARD8 reqType;
36 CARD8 xvmcReqType;
37 CARD16 length B16;
38} xvmcQueryVersionReq;
39#define sz_xvmcQueryVersionReq 4;
40
41typedef struct {
42 BYTE type; /* X_Reply */
43 BYTE padb1;
44 CARD16 sequenceNumber B16;
45 CARD32 length B32;
46 CARD32 major B32;
47 CARD32 minor B32;
48 CARD32 padl4 B32;
49 CARD32 padl5 B32;
50 CARD32 padl6 B32;
51 CARD32 padl7 B32;
52} xvmcQueryVersionReply;
53#define sz_xvmcQueryVersionReply 32
54
55typedef struct {
56 CARD8 reqType;
57 CARD8 xvmcReqType;
58 CARD16 length B16;
59 CARD32 port B32;
60} xvmcListSurfaceTypesReq;
61#define sz_xvmcListSurfaceTypesReq 8;
62
63typedef struct {
64 BYTE type; /* X_Reply */
65 BYTE padb1;
66 CARD16 sequenceNumber B16;
67 CARD32 length B32;
68 CARD32 num B32;
69 CARD32 padl3 B32;
70 CARD32 padl4 B32;
71 CARD32 padl5 B32;
72 CARD32 padl6 B32;
73 CARD32 padl7 B32;
74} xvmcListSurfaceTypesReply;
75#define sz_xvmcListSurfaceTypesReply 32
76
77typedef struct {
78 CARD8 reqType;
79 CARD8 xvmcReqType;
80 CARD16 length B16;
81 CARD32 context_id B32;
82 CARD32 port B32;
83 CARD32 surface_type_id B32;
84 CARD16 width B16;
85 CARD16 height B16;
86 CARD32 flags B32;
87} xvmcCreateContextReq;
88#define sz_xvmcCreateContextReq 24;
89
90typedef struct {
91 BYTE type; /* X_Reply */
92 BYTE padb1;
93 CARD16 sequenceNumber B16;
94 CARD32 length B32;
95 CARD16 width_actual B16;
96 CARD16 height_actual B16;
97 CARD32 flags_return B32;
98 CARD32 padl4 B32;
99 CARD32 padl5 B32;
100 CARD32 padl6 B32;
101 CARD32 padl7 B32;
102} xvmcCreateContextReply;
103#define sz_xvmcCreateContextReply 32
104
105typedef struct {
106 CARD8 reqType;
107 CARD8 xvmcReqType;
108 CARD16 length B16;
109 CARD32 context_id B32;
110} xvmcDestroyContextReq;
111#define sz_xvmcDestroyContextReq 8;
112
113typedef struct {
114 CARD8 reqType;
115 CARD8 xvmcReqType;
116 CARD16 length B16;
117 CARD32 surface_id B32;
118 CARD32 context_id B32;
119} xvmcCreateSurfaceReq;
120#define sz_xvmcCreateSurfaceReq 12;
121
122typedef struct {
123 BYTE type; /* X_Reply */
124 BYTE padb1;
125 CARD16 sequenceNumber B16;
126 CARD32 length B32;
127 CARD32 padl2 B32;
128 CARD32 padl3 B32;
129 CARD32 padl4 B32;
130 CARD32 padl5 B32;
131 CARD32 padl6 B32;
132 CARD32 padl7 B32;
133} xvmcCreateSurfaceReply;
134#define sz_xvmcCreateSurfaceReply 32
135
136typedef struct {
137 CARD8 reqType;
138 CARD8 xvmcReqType;
139 CARD16 length B16;
140 CARD32 surface_id B32;
141} xvmcDestroySurfaceReq;
142#define sz_xvmcDestroySurfaceReq 8;
143
144
145typedef struct {
146 CARD8 reqType;
147 CARD8 xvmcReqType;
148 CARD16 length B16;
149 CARD32 subpicture_id B32;
150 CARD32 context_id B32;
151 CARD32 xvimage_id B32;
152 CARD16 width B16;
153 CARD16 height B16;
154} xvmcCreateSubpictureReq;
155#define sz_xvmcCreateSubpictureReq 20;
156
157typedef struct {
158 BYTE type; /* X_Reply */
159 BYTE padb1;
160 CARD16 sequenceNumber B16;
161 CARD32 length B32;
162 CARD16 width_actual B16;
163 CARD16 height_actual B16;
164 CARD16 num_palette_entries B16;
165 CARD16 entry_bytes B16;
166 CARD8 component_order[4];
167 CARD32 padl5 B32;
168 CARD32 padl6 B32;
169 CARD32 padl7 B32;
170} xvmcCreateSubpictureReply;
171#define sz_xvmcCreateSubpictureReply 32
172
173typedef struct {
174 CARD8 reqType;
175 CARD8 xvmcReqType;
176 CARD16 length B16;
177 CARD32 subpicture_id B32;
178} xvmcDestroySubpictureReq;
179#define sz_xvmcDestroySubpictureReq 8;
180
181typedef struct {
182 CARD8 reqType;
183 CARD8 xvmcReqType;
184 CARD16 length B16;
185 CARD32 port B32;
186 CARD32 surface_type_id B32;
187} xvmcListSubpictureTypesReq;
188#define sz_xvmcListSubpictureTypesReq 12;
189
190typedef struct {
191 BYTE type; /* X_Reply */
192 BYTE padb1;
193 CARD16 sequenceNumber B16;
194 CARD32 length B32;
195 CARD32 num B32;
196 CARD32 padl2 B32;
197 CARD32 padl3 B32;
198 CARD32 padl4 B32;
199 CARD32 padl5 B32;
200 CARD32 padl6 B32;
201} xvmcListSubpictureTypesReply;
202#define sz_xvmcListSubpictureTypesReply 32
203
204typedef struct {
205 CARD8 reqType;
206 CARD8 xvmcReqType;
207 CARD16 length B16;
208 CARD32 port B32;
209 CARD32 shmKey B32;
210 CARD32 magic B32;
211} xvmcGetDRInfoReq;
212#define sz_xvmcGetDRInfoReq 16;
213
214typedef struct {
215 BYTE type; /* X_Reply */
216 BYTE padb1;
217 CARD16 sequenceNumber B16;
218 CARD32 length B32;
219 CARD32 major B32;
220 CARD32 minor B32;
221 CARD32 patchLevel B32;
222 CARD32 nameLen B32;
223 CARD32 busIDLen B32;
224 CARD32 isLocal B32;
225} xvmcGetDRInfoReply;
226#define sz_xvmcGetDRInfoReply 32
227
228#endif
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette