You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
613 B
36 lines
613 B
3 years ago
|
#ifndef AVIIMAGEH
|
||
|
#define AVIIMAGEH
|
||
|
|
||
|
//#include <vcl.h>
|
||
|
#include <stdio.h>
|
||
|
#include <tchar.h>
|
||
|
#include <vfw.h>
|
||
|
|
||
|
|
||
|
class aviimage
|
||
|
{
|
||
|
AVIFILEINFO fi;
|
||
|
AVISTREAMINFO si;
|
||
|
CHAR szFile[MAX_PATH];
|
||
|
DWORD dwStream;
|
||
|
TRect frect;
|
||
|
LONG i,lStart,lEnd;
|
||
|
LPBITMAPINFOHEADER pbmih;
|
||
|
PAVIFILE pavi;
|
||
|
PAVISTREAM pstm,ptmp;
|
||
|
PGETFRAME pfrm;
|
||
|
WORD wVideo;
|
||
|
|
||
|
public:
|
||
|
aviimage();
|
||
|
aviimage(wchar_t* filename);
|
||
|
TRect getframerect() { return frect; }
|
||
|
long getfirst() { return lStart ; }
|
||
|
long getlast() { return lEnd; }
|
||
|
void saveaframe(long framenum, TMemoryStream* mem);
|
||
|
void finish();
|
||
|
};
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|