Debian Codegraph @

plugins/libwin32/loader/wine/vfw.h

raw symbols SCIP
1 #ifndef __WINE_VFW_H
2 #define __WINE_VFW_H
3 //#include "pshpack1.h"
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7 #ifndef __WINE_WINGDI_H
8
9 typedef struct __attribute__((__packed__))
10 {
11 short bfType;
12 long bfSize;
13 short bfReserved1;
14 short bfReserved2;
15 long bfOffBits;
16 } BITMAPFILEHEADER;
17
18 #ifndef _BITMAPINFOHEADER_
19 #define _BITMAPINFOHEADER_
20 typedef struct __attribute__((__packed__))
21 {
22 long biSize;
23 long biWidth;
24 long biHeight;
25 short biPlanes;
26 short biBitCount;
27 long biCompression;
28 long biSizeImage;
29 long biXPelsPerMeter;
30 long biYPelsPerMeter;
31 long biClrUsed;
32 long biClrImportant;
33 } BITMAPINFOHEADER, *PBITMAPINFOHEADER, *LPBITMAPINFOHEADER;
34 typedef struct {
35 BITMAPINFOHEADER bmiHeader;
36 int bmiColors[1];
37 } BITMAPINFO, *LPBITMAPINFO;
38 #endif
39
40 #endif
41 #define VFWAPI
42 #define VFWAPIV
43 #ifndef __WINE_WINDEF_H
44 typedef long (__stdcall__ *DRIVERPROC)(long,HDRVR,unsigned int,long,long);
45 #endif
46
47
48
49 #ifndef mmioFOURCC
50 #define mmioFOURCC( ch0, ch1, ch2, ch3 ) \
51 ( (long)(unsigned char)(ch0) | ( (long)(unsigned char)(ch1) << 8 ) | \
52 ( (long)(unsigned char)(ch2) << 16 ) | ( (long)(unsigned char)(ch3) << 24 ) )
53 #endif
54
55 #ifndef aviTWOCC
56 #define aviTWOCC(ch0, ch1) ((short)(unsigned char)(ch0) | ((short)(unsigned char)(ch1) << 8))
57 #endif
58
59 #define ICTYPE_VIDEO mmioFOURCC('v', 'i', 'd', 'c')
60 #define ICTYPE_AUDIO mmioFOURCC('a', 'u', 'd', 'c')
61
62
63 /* Installable Compressor M? */
64
65 /* HIC struct (same layout as Win95 one) */
66 typedef struct tagWINE_HIC {
67 long magic; /* 00: 'Smag' */
68 HANDLE curthread; /* 04: */
69 long type; /* 08: */
70 long handler; /* 0C: */
71 HDRVR hdrv; /* 10: */
72 long driverid; /* 14:(handled by SendDriverMessage)*/
73 DRIVERPROC driverproc; /* 18:(handled by SendDriverMessage)*/
74 long x1; /* 1c: name? */
75 short x2; /* 20: */
76 long x3; /* 22: */
77 /* 26: */
78 } WINE_HIC;
79
80 /* error return codes */
81 #define ICERR_OK 0
82 #define ICERR_DONTDRAW 1
83 #define ICERR_NEWPALETTE 2
84 #define ICERR_GOTOKEYFRAME 3
85 #define ICERR_STOPDRAWING 4
86
87 #define ICERR_UNSUPPORTED -1
88 #define ICERR_BADFORMAT -2
89 #define ICERR_MEMORY -3
90 #define ICERR_INTERNAL -4
91 #define ICERR_BADFLAGS -5
92 #define ICERR_BADPARAM -6
93 #define ICERR_BADSIZE -7
94 #define ICERR_BADHANDLE -8
95 #define ICERR_CANTUPDATE -9
96 #define ICERR_ABORT -10
97 #define ICERR_ERROR -100
98 #define ICERR_BADBITDEPTH -200
99 #define ICERR_BADIMAGESIZE -201
100
101 #define ICERR_CUSTOM -400
102
103 /* ICM Messages */
104 #define ICM_USER (DRV_USER+0x0000)
105
106 /* ICM driver message range */
107 #define ICM_RESERVED_LOW (DRV_USER+0x1000)
108 #define ICM_RESERVED_HIGH (DRV_USER+0x2000)
109 #define ICM_RESERVED ICM_RESERVED_LOW
110
111 #define ICM_GETSTATE (ICM_RESERVED+0)
112 #define ICM_SETSTATE (ICM_RESERVED+1)
113 #define ICM_GETINFO (ICM_RESERVED+2)
114
115 #define ICM_CONFIGURE (ICM_RESERVED+10)
116 #define ICM_ABOUT (ICM_RESERVED+11)
117 /* */
118
119 #define ICM_GETDEFAULTQUALITY (ICM_RESERVED+30)
120 #define ICM_GETQUALITY (ICM_RESERVED+31)
121 #define ICM_SETQUALITY (ICM_RESERVED+32)
122
123 #define ICM_SET (ICM_RESERVED+40)
124 #define ICM_GET (ICM_RESERVED+41)
125
126 /* 2 constant FOURCC codes */
127 #define ICM_FRAMERATE mmioFOURCC('F','r','m','R')
128 #define ICM_KEYFRAMERATE mmioFOURCC('K','e','y','R')
129
130 #define ICM_COMPRESS_GET_FORMAT (ICM_USER+4)
131 #define ICM_COMPRESS_GET_SIZE (ICM_USER+5)
132 #define ICM_COMPRESS_QUERY (ICM_USER+6)
133 #define ICM_COMPRESS_BEGIN (ICM_USER+7)
134 #define ICM_COMPRESS (ICM_USER+8)
135 #define ICM_COMPRESS_END (ICM_USER+9)
136
137 #define ICM_DECOMPRESS_GET_FORMAT (ICM_USER+10)
138 #define ICM_DECOMPRESS_QUERY (ICM_USER+11)
139 #define ICM_DECOMPRESS_BEGIN (ICM_USER+12)
140 #define ICM_DECOMPRESS (ICM_USER+13)
141 #define ICM_DECOMPRESS_END (ICM_USER+14)
142 #define ICM_DECOMPRESS_SET_PALETTE (ICM_USER+29)
143 #define ICM_DECOMPRESS_GET_PALETTE (ICM_USER+30)
144
145 #define ICM_DRAW_QUERY (ICM_USER+31)
146 #define ICM_DRAW_BEGIN (ICM_USER+15)
147 #define ICM_DRAW_GET_PALETTE (ICM_USER+16)
148 #define ICM_DRAW_START (ICM_USER+18)
149 #define ICM_DRAW_STOP (ICM_USER+19)
150 #define ICM_DRAW_END (ICM_USER+21)
151 #define ICM_DRAW_GETTIME (ICM_USER+32)
152 #define ICM_DRAW (ICM_USER+33)
153 #define ICM_DRAW_WINDOW (ICM_USER+34)
154 #define ICM_DRAW_SETTIME (ICM_USER+35)
155 #define ICM_DRAW_REALIZE (ICM_USER+36)
156 #define ICM_DRAW_FLUSH (ICM_USER+37)
157 #define ICM_DRAW_RENDERBUFFER (ICM_USER+38)
158
159 #define ICM_DRAW_START_PLAY (ICM_USER+39)
160 #define ICM_DRAW_STOP_PLAY (ICM_USER+40)
161
162 #define ICM_DRAW_SUGGESTFORMAT (ICM_USER+50)
163 #define ICM_DRAW_CHANGEPALETTE (ICM_USER+51)
164
165 #define ICM_GETBUFFERSWANTED (ICM_USER+41)
166
167 #define ICM_GETDEFAULTKEYFRAMERATE (ICM_USER+42)
168
169 #define ICM_DECOMPRESSEX_BEGIN (ICM_USER+60)
170 #define ICM_DECOMPRESSEX_QUERY (ICM_USER+61)
171 #define ICM_DECOMPRESSEX (ICM_USER+62)
172 #define ICM_DECOMPRESSEX_END (ICM_USER+63)
173
174 #define ICM_COMPRESS_FRAMES_INFO (ICM_USER+70)
175 #define ICM_SET_STATUS_PROC (ICM_USER+72)
176
177 /* structs */
178
179 typedef struct {
180 long dwSize; /* 00: size */
181 long fccType; /* 04: type 'vidc' usually */
182 long fccHandler; /* 08: */
183 long dwVersion; /* 0c: version of compman opening you */
184 long dwFlags; /* 10: LOshort is type specific */
185 LRESULT dwError; /* 14: */
186 void* pV1Reserved; /* 18: */
187 void* pV2Reserved; /* 1c: */
188 long dnDevNode; /* 20: */
189 /* 24: */
190 } ICOPEN,*LPICOPEN;
191
192 #define ICCOMPRESS_KEYFRAME 0x00000001L
193
194 typedef struct {
195 long dwFlags;
196 LPBITMAPINFOHEADER lpbiOutput;
197 void* lpOutput;
198 LPBITMAPINFOHEADER lpbiInput;
199 const void* lpInput;
200 long* lpckid;
201 long* lpdwFlags;
202 long lFrameNum;
203 long dwFrameSize;
204 long dwQuality;
205 LPBITMAPINFOHEADER lpbiPrev;
206 void* lpPrev;
207 } ICCOMPRESS;
208
209 long VFWAPIV ICCompress(
210 HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiOutput,void* lpData,
211 LPBITMAPINFOHEADER lpbiInput,void* lpBits,long* lpckid,
212 long* lpdwFlags,long lFrameNum,long dwFrameSize,long dwQuality,
213 LPBITMAPINFOHEADER lpbiPrev,void* lpPrev
214 );
215
216
217 #define ICCompressGetFormat(hic, lpbiInput, lpbiOutput) \
218 ICSendMessage( \
219 hic,ICM_COMPRESS_GET_FORMAT,(long)(void*)(lpbiInput), \
220 (long)(void*)(lpbiOutput) \
221 )
222
223 #define ICCompressGetFormatSize(hic,lpbi) ICCompressGetFormat(hic,lpbi,NULL)
224
225 #define ICGetDefaultKeyFrameRate(hic,lpint) \
226 ICSendMessage( \
227 hic, ICM_GETDEFAULTKEYFRAMERATE, \
228 (long)(void*)(lpint), \
229 0 )
230
231 #define ICGetDefaultQuality(hic,lpint) \
232 ICSendMessage( \
233 hic, ICM_GETDEFAULTQUALITY, \
234 (long)(void*)(lpint), \
235 0 )
236
237
238 #define ICCompressBegin(hic, lpbiInput, lpbiOutput) \
239 ICSendMessage( \
240 hic, ICM_COMPRESS_BEGIN, (long)(void*)(lpbiInput), \
241 (long)(void*)(lpbiOutput) \
242 )
243
244 #define ICCompressGetSize(hic, lpbiInput, lpbiOutput) \
245 ICSendMessage( \
246 hic, ICM_COMPRESS_GET_SIZE, (long)(void*)(lpbiInput), \
247 (long)(void*)(lpbiOutput) \
248 )
249
250 #define ICCompressQuery(hic, lpbiInput, lpbiOutput) \
251 ICSendMessage( \
252 hic, ICM_COMPRESS_QUERY, (long)(void*)(lpbiInput), \
253 (long)(void*)(lpbiOutput) \
254 )
255
256
257 #define ICCompressEnd(hic) ICSendMessage(hic, ICM_COMPRESS_END, 0, 0)
258
259 /* ICCOMPRESSFRAMES.dwFlags */
260 #define ICCOMPRESSFRAMES_PADDING 0x00000001
261 typedef struct {
262 long dwFlags;
263 LPBITMAPINFOHEADER lpbiOutput;
264 LPARAM lOutput;
265 LPBITMAPINFOHEADER lpbiInput;
266 LPARAM lInput;
267 long lStartFrame;
268 long lFrameCount;
269 long lQuality;
270 long lDataRate;
271 long lKeyRate;
272 long dwRate;
273 long dwScale;
274 long dwOverheadPerFrame;
275 long dwReserved2;
276 long CALLBACK (*GetData)(LPARAM lInput,long lFrame,void* lpBits,long len);
277 long CALLBACK (*PutData)(LPARAM lOutput,long lFrame,void* lpBits,long len);
278 } ICCOMPRESSFRAMES;
279
280 /* Values for wMode of ICOpen() */
281 #define ICMODE_COMPRESS 1
282 #define ICMODE_DECOMPRESS 2
283 #define ICMODE_FASTDECOMPRESS 3
284 #define ICMODE_QUERY 4
285 #define ICMODE_FASTCOMPRESS 5
286 #define ICMODE_DRAW 8
287
288 /* quality flags */
289 #define ICQUALITY_LOW 0
290 #define ICQUALITY_HIGH 10000
291 #define ICQUALITY_DEFAULT -1
292
293 typedef struct {
294 long dwSize; /* 00: */
295 long fccType; /* 04:compressor type 'vidc' 'audc' */
296 long fccHandler; /* 08:compressor sub-type 'rle ' 'jpeg' 'pcm '*/
297 long dwFlags; /* 0c:flags LOshort is type specific */
298 long dwVersion; /* 10:version of the driver */
299 long dwVersionICM; /* 14:version of the ICM used */
300 /*
301 * under Win32, the driver always returns UNICODE strings.
302 */
303 WCHAR szName[16]; /* 18:short name */
304 WCHAR szDescription[128]; /* 38:long name */
305 WCHAR szDriver[128]; /* 138:driver that contains compressor*/
306 /* 238: */
307 } ICINFO;
308
309 /* ICINFO.dwFlags */
310 #define VIDCF_QUALITY 0x0001 /* supports quality */
311 #define VIDCF_CRUNCH 0x0002 /* supports crunching to a frame size */
312 #define VIDCF_TEMPORAL 0x0004 /* supports inter-frame compress */
313 #define VIDCF_COMPRESSFRAMES 0x0008 /* wants the compress all frames message */
314 #define VIDCF_DRAW 0x0010 /* supports drawing */
315 #define VIDCF_FASTTEMPORALC 0x0020 /* does not need prev frame on compress */
316 #define VIDCF_FASTTEMPORALD 0x0080 /* does not need prev frame on decompress */
317 #define VIDCF_QUALITYTIME 0x0040 /* supports temporal quality */
318
319 #define VIDCF_FASTTEMPORAL (VIDCF_FASTTEMPORALC|VIDCF_FASTTEMPORALD)
320
321
322 /* function shortcuts */
323 /* ICM_ABOUT */
324 #define ICMF_ABOUT_QUERY 0x00000001
325
326 #define ICQueryAbout(hic) \
327 (ICSendMessage(hic,ICM_ABOUT,(long)-1,ICMF_ABOUT_QUERY)==ICERR_OK)
328
329 #define ICAbout(hic, hwnd) ICSendMessage(hic,ICM_ABOUT,(long)(unsigned int)(hwnd),0)
330
331 /* ICM_CONFIGURE */
332 #define ICMF_CONFIGURE_QUERY 0x00000001
333 #define ICQueryConfigure(hic) \
334 (ICSendMessage(hic,ICM_CONFIGURE,(long)-1,ICMF_CONFIGURE_QUERY)==ICERR_OK)
335
336 #define ICConfigure(hic,hwnd) \
337 ICSendMessage(hic,ICM_CONFIGURE,(long)(unsigned int)(hwnd),0)
338
339 /* Decompression stuff */
340 #define ICDECOMPRESS_HURRYUP 0x80000000 /* don't draw just buffer (hurry up!) */
341 #define ICDECOMPRESS_UPDATE 0x40000000 /* don't draw just update screen */
342 #define ICDECOMPRESS_PREROL 0x20000000 /* this frame is before real start */
343 #define ICDECOMPRESS_NULLFRAME 0x10000000 /* repeat last frame */
344 #define ICDECOMPRESS_NOTKEYFRAME 0x08000000 /* this frame is not a key frame */
345
346 typedef struct {
347 long dwFlags; /* flags (from AVI index...) */
348 LPBITMAPINFOHEADER lpbiInput; /* BITMAPINFO of compressed data */
349 const void* lpInput; /* compressed data */
350 LPBITMAPINFOHEADER lpbiOutput; /* DIB to decompress to */
351 void* lpOutput;
352 long ckid; /* ckid from AVI file */
353 } ICDECOMPRESS;
354
355 typedef struct {
356 long dwFlags;
357 LPBITMAPINFOHEADER lpbiSrc;
358 const void* lpSrc;
359 LPBITMAPINFOHEADER lpbiDst;
360 void* lpDst;
361
362 /* changed for ICM_DECOMPRESSEX */
363 INT xDst; /* destination rectangle */
364 INT yDst;
365 INT dxDst;
366 INT dyDst;
367
368 INT xSrc; /* source rectangle */
369 INT ySrc;
370 INT dxSrc;
371 INT dySrc;
372 } ICDECOMPRESSEX;
373
374
375 long VFWAPIV ICDecompress(HIC hic,long dwFlags,LPBITMAPINFOHEADER lpbiFormat,void* lpData,LPBITMAPINFOHEADER lpbi,void* lpBits);
376
377
378 #define ICDecompressBegin(hic, lpbiInput, lpbiOutput) \
379 ICSendMessage( \
380 hic, ICM_DECOMPRESS_BEGIN, (long)(void*)(lpbiInput), \
381 (long)(void*)(lpbiOutput) \
382 )
383
384 #define ICDecompressQuery(hic, lpbiInput, lpbiOutput) \
385 ICSendMessage( \
386 hic,ICM_DECOMPRESS_QUERY, (long)(void*)(lpbiInput), \
387 (long) (void*)(lpbiOutput) \
388 )
389
390 #define ICDecompressGetFormat(hic, lpbiInput, lpbiOutput) \
391 ((long)ICSendMessage( \
392 hic,ICM_DECOMPRESS_GET_FORMAT, (long)(void*)(lpbiInput), \
393 (long)(void*)(lpbiOutput) \
394 ))
395
396 #define ICDecompressGetFormatSize(hic, lpbi) \
397 ICDecompressGetFormat(hic, lpbi, NULL)
398
399 #define ICDecompressGetPalette(hic, lpbiInput, lpbiOutput) \
400 ICSendMessage( \
401 hic, ICM_DECOMPRESS_GET_PALETTE, (long)(void*)(lpbiInput), \
402 (long)(void*)(lpbiOutput) \
403 )
404
405 #define ICDecompressSetPalette(hic,lpbiPalette) \
406 ICSendMessage( \
407 hic,ICM_DECOMPRESS_SET_PALETTE, \
408 (long)(void*)(lpbiPalette),0 \
409 )
410
411 #define ICDecompressEnd(hic) ICSendMessage(hic, ICM_DECOMPRESS_END, 0, 0)
412
413
414 #define ICDRAW_QUERY 0x00000001L /* test for support */
415 #define ICDRAW_FULLSCREEN 0x00000002L /* draw to full screen */
416 #define ICDRAW_HDC 0x00000004L /* draw to a HDC/HWND */
417
418 LRESULT VFWAPI ICClose(HIC hic);
419 int VFWAPI ICSendMessage(HIC hic, unsigned int msg, long dw1, long dw2);
420
421
422 #define ICDRAW_HURRYUP 0x80000000L /* don't draw just buffer (hurry up!) */
423 #define ICDRAW_UPDATE 0x40000000L /* don't draw just update screen */
424 #define ICDRAW_PREROLL 0x20000000L /* this frame is before real start */
425 #define ICDRAW_NULLFRAME 0x10000000L /* repeat last frame */
426 #define ICDRAW_NOTKEYFRAME 0x08000000L /* this frame is not a key frame */
427
428 typedef struct {
429 long dwFlags;
430 void* lpFormat;
431 void* lpData;
432 long cbData;
433 long lTime;
434 } ICDRAW;
435
436
437 #define AVIGETFRAMEF_BESTDISPLAYFMT 1
438
439 typedef struct _AVISTREAMINFOA {
440 long fccType;
441 long fccHandler;
442 long dwFlags; /* AVIIF_* */
443 long dwCaps;
444 short wPriority;
445 short wLanguage;
446 long dwScale;
447 long dwRate; /* dwRate / dwScale == samples/second */
448 long dwStart;
449 long dwLength; /* In units above... */
450 long dwInitialFrames;
451 long dwSuggestedBufferSize;
452 long dwQuality;
453 long dwSampleSize;
454 RECT rcFrame;
455 long dwEditCount;
456 long dwFormatChangeCount;
457 char szName[64];
458 } AVISTREAMINFOA, * LPAVISTREAMINFOA, *PAVISTREAMINFOA;
459
460 typedef struct _AVISTREAMINFOW {
461 long fccType;
462 long fccHandler;
463 long dwFlags;
464 long dwCaps;
465 short wPriority;
466 short wLanguage;
467 long dwScale;
468 long dwRate; /* dwRate / dwScale == samples/second */
469 long dwStart;
470 long dwLength; /* In units above... */
471 long dwInitialFrames;
472 long dwSuggestedBufferSize;
473 long dwQuality;
474 long dwSampleSize;
475 RECT rcFrame;
476 long dwEditCount;
477 long dwFormatChangeCount;
478 short szName[64];
479 } AVISTREAMINFOW, * LPAVISTREAMINFOW, *PAVISTREAMINFOW;
480 DECL_WINELIB_TYPE_AW(AVISTREAMINFO)
481 DECL_WINELIB_TYPE_AW(LPAVISTREAMINFO)
482 DECL_WINELIB_TYPE_AW(PAVISTREAMINFO)
483
484 #define AVISTREAMINFO_DISABLED 0x00000001
485 #define AVISTREAMINFO_FORMATCHANGES 0x00010000
486
487 /* AVIFILEINFO.dwFlags */
488 #define AVIFILEINFO_HASINDEX 0x00000010
489 #define AVIFILEINFO_MUSTUSEINDEX 0x00000020
490 #define AVIFILEINFO_ISINTERLEAVED 0x00000100
491 #define AVIFILEINFO_WASCAPTUREFILE 0x00010000
492 #define AVIFILEINFO_COPYRIGHTED 0x00020000
493
494 /* AVIFILEINFO.dwCaps */
495 #define AVIFILECAPS_CANREAD 0x00000001
496 #define AVIFILECAPS_CANWRITE 0x00000002
497 #define AVIFILECAPS_ALLKEYFRAMES 0x00000010
498 #define AVIFILECAPS_NOCOMPRESSION 0x00000020
499
500 typedef struct _AVIFILEINFOW {
501 long dwMaxBytesPerSec;
502 long dwFlags;
503 long dwCaps;
504 long dwStreams;
505 long dwSuggestedBufferSize;
506 long dwWidth;
507 long dwHeight;
508 long dwScale;
509 long dwRate;
510 long dwLength;
511 long dwEditCount;
512 short szFileType[64];
513 } AVIFILEINFOW, * LPAVIFILEINFOW, *PAVIFILEINFOW;
514
515 typedef struct _AVIFILEINFOA {
516 long dwMaxBytesPerSec;
517 long dwFlags;
518 long dwCaps;
519 long dwStreams;
520 long dwSuggestedBufferSize;
521 long dwWidth;
522 long dwHeight;
523 long dwScale;
524 long dwRate;
525 long dwLength;
526 long dwEditCount;
527 char szFileType[64];
528 } AVIFILEINFOA, * LPAVIFILEINFOA, *PAVIFILEINFOA;
529
530 DECL_WINELIB_TYPE_AW(AVIFILEINFO)
531 DECL_WINELIB_TYPE_AW(PAVIFILEINFO)
532 DECL_WINELIB_TYPE_AW(LPAVIFILEINFO)
533
534 /* AVICOMPRESSOPTIONS.dwFlags. determines presence of fields in below struct */
535 #define AVICOMPRESSF_INTERLEAVE 0x00000001
536 #define AVICOMPRESSF_DATARATE 0x00000002
537 #define AVICOMPRESSF_KEYFRAMES 0x00000004
538 #define AVICOMPRESSF_VALID 0x00000008
539
540 typedef struct {
541 long fccType; /* stream type, for consistency */
542 long fccHandler; /* compressor */
543 long dwKeyFrameEvery; /* keyframe rate */
544 long dwQuality; /* compress quality 0-10,000 */
545 long dwBytesPerSecond; /* unsigned chars per second */
546 long dwFlags; /* flags... see below */
547 void* lpFormat; /* save format */
548 long cbFormat;
549 void* lpParms; /* compressor options */
550 long cbParms;
551 long dwInterleaveEvery; /* for non-video streams only */
552 } AVICOMPRESSOPTIONS, *LPAVICOMPRESSOPTIONS,*PAVICOMPRESSOPTIONS;
553
554
555
556 typedef struct {
557 long cbSize; // set to sizeof(COMPVARS) before
558 // calling ICCompressorChoose
559 long dwFlags; // see below...
560 HIC hic; // HIC of chosen compressor
561 long fccType; // basically ICTYPE_VIDEO
562 long fccHandler; // handler of chosen compressor or
563 // "" or "DIB "
564 LPBITMAPINFO lpbiIn; // input format
565 LPBITMAPINFO lpbiOut; // output format - will compress to this
566 void* lpBitsOut;
567 void* lpBitsPrev;
568 long lFrame;
569 long lKey; // key frames how often?
570 long lDataRate; // desired data rate KB/Sec
571 long lQ; // desired quality
572 long lKeyCount;
573 void* lpState; // state of compressor
574 long cbState; // size of the state
575 } COMPVARS, *PCOMPVARS;
576
577 // FLAGS for dwFlags element of COMPVARS structure:
578
579
580 #define AVIERR_OK 0
581 #define MAKE_AVIERR(error) MAKE_SCODE(SEVERITY_ERROR,FACILITY_ITF,0x4000+error)
582
583 #define AVIERR_UNSUPPORTED MAKE_AVIERR(101)
584 #define AVIERR_BADFORMAT MAKE_AVIERR(102)
585 #define AVIERR_MEMORY MAKE_AVIERR(103)
586 #define AVIERR_INTERNAL MAKE_AVIERR(104)
587 #define AVIERR_BADFLAGS MAKE_AVIERR(105)
588 #define AVIERR_BADPARAM MAKE_AVIERR(106)
589 #define AVIERR_BADSIZE MAKE_AVIERR(107)
590 #define AVIERR_BADHANDLE MAKE_AVIERR(108)
591 #define AVIERR_FILEREAD MAKE_AVIERR(109)
592 #define AVIERR_FILEWRITE MAKE_AVIERR(110)
593 #define AVIERR_FILEOPEN MAKE_AVIERR(111)
594 #define AVIERR_COMPRESSOR MAKE_AVIERR(112)
595 #define AVIERR_NOCOMPRESSOR MAKE_AVIERR(113)
596 #define AVIERR_READONLY MAKE_AVIERR(114)
597 #define AVIERR_NODATA MAKE_AVIERR(115)
598 #define AVIERR_BUFFERTOOSMALL MAKE_AVIERR(116)
599 #define AVIERR_CANTCOMPRESS MAKE_AVIERR(117)
600 #define AVIERR_USERABORT MAKE_AVIERR(198)
601 #define AVIERR_ERROR MAKE_AVIERR(199)
602
603 #ifdef __cplusplus
604 }
605 #endif
606 #endif /* __WINE_VFW_H */