53 lines
965 B
C++
53 lines
965 B
C++
#ifndef _AVIFILE_AVIBITMAP_HPP_
|
|
#define _AVIFILE_AVIBITMAP_HPP_
|
|
#ifndef _COMMON_FILE_HPP_
|
|
#include <common/file.hpp>
|
|
#endif
|
|
#ifndef _COMMON_BITMAPINFO_HPP_
|
|
#include <common/bminfo.hpp>
|
|
#endif
|
|
|
|
class AVIBitmap : public BitmapInfo
|
|
{
|
|
public:
|
|
AVIBitmap(void);
|
|
AVIBitmap(const AVIBitmap &someAVIBitmap);
|
|
virtual ~AVIBitmap();
|
|
AVIBitmap &operator=(const AVIBitmap &someAVIBitmap);
|
|
bool operator==(const AVIBitmap &someAVIBitmap)const;
|
|
bool read(File &inFile);
|
|
bool write(File &outFile);
|
|
private:
|
|
enum {TrueColor=24};
|
|
};
|
|
|
|
inline
|
|
AVIBitmap::AVIBitmap(void)
|
|
{
|
|
}
|
|
|
|
inline
|
|
AVIBitmap::AVIBitmap(const AVIBitmap &someAVIBitmap)
|
|
{
|
|
*this=someAVIBitmap;
|
|
}
|
|
|
|
inline
|
|
AVIBitmap::~AVIBitmap()
|
|
{
|
|
}
|
|
|
|
inline
|
|
AVIBitmap &AVIBitmap::operator=(const AVIBitmap &someAVIBitmap)
|
|
{
|
|
(BitmapInfo&)*this=(BitmapInfo&)someAVIBitmap;
|
|
return *this;
|
|
}
|
|
|
|
inline
|
|
bool AVIBitmap::operator==(const AVIBitmap &someAVIBitmap)const
|
|
{
|
|
return (BitmapInfo&)*this==(BitmapInfo&)someAVIBitmap;
|
|
}
|
|
#endif
|