Mercurial > mplayer.hg
annotate loader/loader.h @ 1971:7d6116e415a3
cleanup
author | arpi |
---|---|
date | Wed, 26 Sep 2001 18:40:57 +0000 |
parents | d11e510d0c04 |
children | 174e2a58b4cd |
rev | line source |
---|---|
1 | 1 /******************************************************** |
2 | |
3 Win32 binary loader interface | |
128 | 4 Copyright 2000 Eugene Kuznetsov (divx@euro.ru) |
1 | 5 Shamelessly stolen from Wine project |
6 | |
7 *********************************************************/ | |
8 | |
9 #ifndef _LOADER_H | |
10 #define _LOADER_H | |
11 #include <wine/windef.h> | |
12 #include <wine/driver.h> | |
13 #include <wine/mmreg.h> | |
14 #include <wine/vfw.h> | |
15 #include <wine/msacm.h> | |
16 #ifdef __cplusplus | |
17 extern "C" { | |
18 #endif | |
19 | |
1494 | 20 extern char* win32_codec_name; // must be set before calling DrvOpen() !!! |
21 | |
1 | 22 unsigned int _GetPrivateProfileIntA(const char* appname, const char* keyname, int default_value, const char* filename); |
23 int _GetPrivateProfileStringA(const char* appname, const char* keyname, | |
24 const char* def_val, char* dest, unsigned int len, const char* filename); | |
25 int _WritePrivateProfileStringA(const char* appname, const char* keyname, | |
26 const char* string, const char* filename); | |
27 | |
28 | |
29 /********************************************** | |
30 | |
31 MS VFW ( Video For Windows ) interface | |
32 | |
33 **********************************************/ | |
34 | |
35 long VFWAPIV ICCompress( | |
36 HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiOutput,void* lpData, | |
37 LPBITMAPINFOHEADER lpbiInput,void* lpBits,long* lpckid, | |
38 long* lpdwFlags,long lFrameNum,long dwFrameSize,long dwQuality, | |
39 LPBITMAPINFOHEADER lpbiPrev,void* lpPrev | |
40 ); | |
41 | |
42 long VFWAPIV ICDecompress(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits); | |
43 | |
44 WIN_BOOL VFWAPI ICInfo(long fccType, long fccHandler, ICINFO * lpicinfo); | |
45 LRESULT VFWAPI ICGetInfo(HIC hic,ICINFO *picinfo, long cb); | |
46 HIC VFWAPI ICOpen(long fccType, long fccHandler, UINT wMode); | |
47 HIC VFWAPI ICOpenFunction(long fccType, long fccHandler, unsigned int wMode, void* lpfnHandler); | |
48 | |
49 LRESULT VFWAPI ICClose(HIC hic); | |
50 LRESULT VFWAPI ICSendMessage(HIC hic, unsigned int msg, long dw1, long dw2); | |
51 HIC VFWAPI ICLocate(long fccType, long fccHandler, LPBITMAPINFOHEADER lpbiIn, LPBITMAPINFOHEADER lpbiOut, short wFlags); | |
52 | |
53 int VFWAPI ICDoSomething(); | |
54 | |
55 #define ICCompressGetFormat(hic, lpbiInput, lpbiOutput) \ | |
56 ICSendMessage( \ | |
57 hic,ICM_COMPRESS_GET_FORMAT,(long)(void*)(lpbiInput), \ | |
58 (long)(void*)(lpbiOutput) \ | |
59 ) | |
60 | |
61 #define ICCompressGetFormatSize(hic,lpbi) ICCompressGetFormat(hic,lpbi,NULL) | |
62 | |
63 #define ICGetDefaultKeyFrameRate(hic,lpint) \ | |
64 ICSendMessage( \ | |
65 hic, ICM_GETDEFAULTKEYFRAMERATE, \ | |
66 (long)(void*)(lpint), \ | |
67 0 ) | |
68 | |
69 #define ICGetDefaultQuality(hic,lpint) \ | |
70 ICSendMessage( \ | |
71 hic, ICM_GETDEFAULTQUALITY, \ | |
72 (long)(void*)(lpint), \ | |
73 0 ) | |
74 | |
75 | |
76 #define ICCompressBegin(hic, lpbiInput, lpbiOutput) \ | |
77 ICSendMessage( \ | |
78 hic, ICM_COMPRESS_BEGIN, (long)(void*)(lpbiInput), \ | |
79 (long)(void*)(lpbiOutput) \ | |
80 ) | |
81 | |
82 #define ICCompressGetSize(hic, lpbiInput, lpbiOutput) \ | |
83 ICSendMessage( \ | |
84 hic, ICM_COMPRESS_GET_SIZE, (long)(void*)(lpbiInput), \ | |
85 (long)(void*)(lpbiOutput) \ | |
86 ) | |
87 | |
88 #define ICCompressQuery(hic, lpbiInput, lpbiOutput) \ | |
89 ICSendMessage( \ | |
90 hic, ICM_COMPRESS_QUERY, (long)(void*)(lpbiInput), \ | |
91 (long)(void*)(lpbiOutput) \ | |
92 ) | |
93 | |
94 | |
95 #define ICCompressEnd(hic) ICSendMessage(hic, ICM_COMPRESS_END, 0, 0) | |
96 | |
97 | |
98 | |
99 #define ICDecompressBegin(hic, lpbiInput, lpbiOutput) \ | |
100 ICSendMessage( \ | |
101 hic, ICM_DECOMPRESS_BEGIN, (long)(void*)(lpbiInput), \ | |
102 (long)(void*)(lpbiOutput) \ | |
103 ) | |
104 | |
105 #define ICDecompressQuery(hic, lpbiInput, lpbiOutput) \ | |
106 ICSendMessage( \ | |
107 hic,ICM_DECOMPRESS_QUERY, (long)(void*)(lpbiInput), \ | |
108 (long) (void*)(lpbiOutput) \ | |
109 ) | |
110 | |
111 #define ICDecompressGetFormat(hic, lpbiInput, lpbiOutput) \ | |
112 ((long)ICSendMessage( \ | |
113 hic,ICM_DECOMPRESS_GET_FORMAT, (long)(void*)(lpbiInput), \ | |
114 (long)(void*)(lpbiOutput) \ | |
115 )) | |
116 | |
117 #define ICDecompressGetFormatSize(hic, lpbi) \ | |
118 ICDecompressGetFormat(hic, lpbi, NULL) | |
119 | |
120 #define ICDecompressGetPalette(hic, lpbiInput, lpbiOutput) \ | |
121 ICSendMessage( \ | |
122 hic, ICM_DECOMPRESS_GET_PALETTE, (long)(void*)(lpbiInput), \ | |
123 (long)(void*)(lpbiOutput) \ | |
124 ) | |
125 | |
126 #define ICDecompressSetPalette(hic,lpbiPalette) \ | |
127 ICSendMessage( \ | |
128 hic,ICM_DECOMPRESS_SET_PALETTE, \ | |
129 (long)(void*)(lpbiPalette),0 \ | |
130 ) | |
131 | |
132 #define ICDecompressEnd(hic) ICSendMessage(hic, ICM_DECOMPRESS_END, 0, 0) | |
133 | |
134 | |
135 /***************************************************** | |
136 | |
137 MS ACM ( Audio Compression Manager ) interface | |
138 | |
139 ******************************************************/ | |
140 | |
141 | |
142 MMRESULT WINAPI acmDriverAddA( | |
143 PHACMDRIVERID phadid, HINSTANCE hinstModule, | |
144 LPARAM lParam, DWORD dwPriority, DWORD fdwAdd | |
145 ); | |
146 MMRESULT WINAPI acmDriverAddW( | |
147 PHACMDRIVERID phadid, HINSTANCE hinstModule, | |
148 LPARAM lParam, DWORD dwPriority, DWORD fdwAdd | |
149 ); | |
150 MMRESULT WINAPI acmDriverClose( | |
151 HACMDRIVER had, DWORD fdwClose | |
152 ); | |
153 MMRESULT WINAPI acmDriverDetailsA( | |
154 HACMDRIVERID hadid, PACMDRIVERDETAILSA padd, DWORD fdwDetails | |
155 ); | |
156 MMRESULT WINAPI acmDriverDetailsW( | |
157 HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, DWORD fdwDetails | |
158 ); | |
159 MMRESULT WINAPI acmDriverEnum( | |
160 ACMDRIVERENUMCB fnCallback, DWORD dwInstance, DWORD fdwEnum | |
161 ); | |
162 MMRESULT WINAPI acmDriverID( | |
163 HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID | |
164 ); | |
165 LRESULT WINAPI acmDriverMessage( | |
166 HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2 | |
167 ); | |
168 MMRESULT WINAPI acmDriverOpen( | |
169 PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpen | |
170 ); | |
171 MMRESULT WINAPI acmDriverPriority( | |
172 HACMDRIVERID hadid, DWORD dwPriority, DWORD fdwPriority | |
173 ); | |
174 MMRESULT WINAPI acmDriverRemove( | |
175 HACMDRIVERID hadid, DWORD fdwRemove | |
176 ); | |
177 MMRESULT WINAPI acmFilterChooseA( | |
178 PACMFILTERCHOOSEA pafltrc | |
179 ); | |
180 MMRESULT WINAPI acmFilterChooseW( | |
181 PACMFILTERCHOOSEW pafltrc | |
182 ); | |
183 MMRESULT WINAPI acmFilterDetailsA( | |
184 HACMDRIVER had, PACMFILTERDETAILSA pafd, DWORD fdwDetails | |
185 ); | |
186 MMRESULT WINAPI acmFilterDetailsW( | |
187 HACMDRIVER had, PACMFILTERDETAILSW pafd, DWORD fdwDetails | |
188 ); | |
189 MMRESULT WINAPI acmFilterEnumA( | |
190 HACMDRIVER had, PACMFILTERDETAILSA pafd, | |
191 ACMFILTERENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum | |
192 ); | |
193 MMRESULT WINAPI acmFilterEnumW( | |
194 HACMDRIVER had, PACMFILTERDETAILSW pafd, | |
195 ACMFILTERENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum | |
196 ); | |
197 MMRESULT WINAPI acmFilterTagDetailsA( | |
198 HACMDRIVER had, PACMFILTERTAGDETAILSA paftd, DWORD fdwDetails | |
199 ); | |
200 MMRESULT WINAPI acmFilterTagDetailsW( | |
201 HACMDRIVER had, PACMFILTERTAGDETAILSW paftd, DWORD fdwDetails | |
202 ); | |
203 MMRESULT WINAPI acmFilterTagEnumA( | |
204 HACMDRIVER had, PACMFILTERTAGDETAILSA paftd, | |
205 ACMFILTERTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum | |
206 ); | |
207 MMRESULT WINAPI acmFilterTagEnumW( | |
208 HACMDRIVER had, PACMFILTERTAGDETAILSW paftd, | |
209 ACMFILTERTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum | |
210 ); | |
211 MMRESULT WINAPI acmFormatChooseA( | |
212 PACMFORMATCHOOSEA pafmtc | |
213 ); | |
214 MMRESULT WINAPI acmFormatChooseW( | |
215 PACMFORMATCHOOSEW pafmtc | |
216 ); | |
217 MMRESULT WINAPI acmFormatDetailsA( | |
218 HACMDRIVER had, PACMFORMATDETAILSA pafd, DWORD fdwDetails | |
219 ); | |
220 MMRESULT WINAPI acmFormatDetailsW( | |
221 HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD fdwDetails | |
222 ); | |
223 MMRESULT WINAPI acmFormatEnumA( | |
224 HACMDRIVER had, PACMFORMATDETAILSA pafd, | |
225 ACMFORMATENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum | |
226 ); | |
227 MMRESULT WINAPI acmFormatEnumW( | |
228 HACMDRIVER had, PACMFORMATDETAILSW pafd, | |
229 ACMFORMATENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum | |
230 ); | |
231 MMRESULT WINAPI acmFormatSuggest( | |
232 HACMDRIVER had, PWAVEFORMATEX pwfxSrc, PWAVEFORMATEX pwfxDst, | |
233 DWORD cbwfxDst, DWORD fdwSuggest | |
234 ); | |
235 MMRESULT WINAPI acmFormatTagDetailsA( | |
236 HACMDRIVER had, PACMFORMATTAGDETAILSA paftd, DWORD fdwDetails | |
237 ); | |
238 MMRESULT WINAPI acmFormatTagDetailsW( | |
239 HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, DWORD fdwDetails | |
240 ); | |
241 MMRESULT WINAPI acmFormatTagEnumA( | |
242 HACMDRIVER had, PACMFORMATTAGDETAILSA paftd, | |
243 ACMFORMATTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum | |
244 ); | |
245 MMRESULT WINAPI acmFormatTagEnumW( | |
246 HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, | |
247 ACMFORMATTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum | |
248 ); | |
249 DWORD WINAPI acmGetVersion( | |
250 ); | |
251 MMRESULT WINAPI acmMetrics( | |
252 HACMOBJ hao, UINT uMetric, LPVOID pMetric | |
253 ); | |
254 MMRESULT WINAPI acmStreamClose( | |
255 HACMSTREAM has, DWORD fdwClose | |
256 ); | |
257 MMRESULT WINAPI acmStreamConvert( | |
258 HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwConvert | |
259 ); | |
260 MMRESULT WINAPI acmStreamMessage( | |
261 HACMSTREAM has, UINT uMsg, LPARAM lParam1, LPARAM lParam2 | |
262 ); | |
263 MMRESULT WINAPI acmStreamOpen( | |
264 PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pwfxSrc, | |
265 PWAVEFORMATEX pwfxDst, PWAVEFILTER pwfltr, DWORD dwCallback, | |
266 DWORD dwInstance, DWORD fdwOpen | |
267 ); | |
268 MMRESULT WINAPI acmStreamPrepareHeader( | |
269 HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwPrepare | |
270 ); | |
271 MMRESULT WINAPI acmStreamReset( | |
272 HACMSTREAM has, DWORD fdwReset | |
273 ); | |
274 MMRESULT WINAPI acmStreamSize( | |
275 HACMSTREAM has, DWORD cbInput, | |
276 LPDWORD pdwOutputBytes, DWORD fdwSize | |
277 ); | |
278 MMRESULT WINAPI acmStreamUnprepareHeader( | |
279 HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwUnprepare | |
280 ); | |
281 void MSACM_RegisterAllDrivers(void); | |
282 | |
1307
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
128
diff
changeset
|
283 INT WINAPI LoadStringA( HINSTANCE instance, UINT resource_id, |
d8c1b0b38edc
Add prototypes to wine/loader stuff, so that we can catch __stdcall function
jkeil
parents:
128
diff
changeset
|
284 LPSTR buffer, INT buflen ); |
128 | 285 |
1 | 286 #ifdef __cplusplus |
287 } | |
288 #endif | |
289 #endif /* __LOADER_H */ | |
290 |