48 lines
975 B
C++
48 lines
975 B
C++
#ifndef _AVIFILE_AVIINDEXHEADER_HPP_
|
|
#define _AVIFILE_AVIINDEXHEADER_HPP_
|
|
#ifndef _COMMON_WINDOWS_HPP_
|
|
#include <common/windows.hpp>
|
|
#endif
|
|
#ifndef _COMMON_FILE_HPP_
|
|
#include <common/file.hpp>
|
|
#endif
|
|
//#ifndef _COMMON_PUREVIEWOFFILE_HPP_
|
|
//#include <common/pview.hpp>
|
|
//#endif
|
|
#ifndef _COMMON_ARRAY_HPP_
|
|
#include <common/array.hpp>
|
|
#endif
|
|
#ifndef _AVIFILE_FOURCC_HPP_
|
|
#include <avifile/fourcc.hpp>
|
|
#endif
|
|
#ifndef _COMMON_VFW_HPP_
|
|
#include <common/vfw.hpp>
|
|
#endif
|
|
|
|
|
|
class AVIIndexHeader
|
|
{
|
|
public:
|
|
AVIIndexHeader();
|
|
virtual ~AVIIndexHeader();
|
|
bool read(File &inFile);
|
|
// bool operator<<(PureViewOfFile &pureView);
|
|
FOURCC fcc(void)const;
|
|
UINT cb(void)const;
|
|
WORD longsPerEntry(void)const;
|
|
BYTE indexSubType(void)const;
|
|
DWORD entriesInUse(void)const;
|
|
DWORD chunkID(void)const;
|
|
private:
|
|
DWORD mFCC;
|
|
UINT mCB;
|
|
WORD mLongsPerEntry;
|
|
BYTE mIndexSubType;
|
|
BYTE mIndexType;
|
|
DWORD mEntriesInUse;
|
|
DWORD mChunkId;
|
|
DWORD mReserved[3];
|
|
Array<DWORD> mADW;
|
|
};
|
|
#endif
|