#include #include #include HRESULT hResult; PAVIFILE pfile; PAVISTREAM pstream; unsigned long framenum, startf, endf; PGETFRAME pget; LPBITMAPINFOHEADER lpbi; unsigned char *lpbitmp, *lpcurpix; unsigned short *lpcurpixw; unsigned char pix; AVIFILEINFO Pfi; int totalFrames; unsigned int nextFileFrames; unsigned int nextFileSamples; /* prototypes of global functions */ /* choose between declaration (GLOBAL undefined) * and definition (GLOBAL defined) * GLOBAL is defined in exactly one file (avi2mpg1.c) */ #ifndef GLOBAL #define EXTERN extern #else #define EXTERN #endif /* readpic.c */ void readframe(unsigned long lCurFrame, unsigned char *frame[]); /* U V temporary buffers */ EXTERN unsigned char *Ubuffer, *Vbuffer, *Ubuffer422, *Vbuffer422; EXTERN int horizontal_size, vertical_size; /* frame size (pels) */ EXTERN int width, height; /* encoded frame size (pels) multiples of 16 or 32 */