29 #ifndef __COMPRESSOR_H__
30 #define __COMPRESSOR_H__
56 virtual void Init(
idFile *
f,
bool compress,
int wordLength ) = 0;
61 virtual const char *
GetName(
void ) = 0;
63 virtual int Read(
void *outData,
int outLength ) = 0;
64 virtual int Write(
const void *inData,
int inLength ) = 0;
65 virtual int Length(
void ) = 0;
67 virtual int Tell(
void ) = 0;
69 virtual void Flush(
void ) = 0;
static idCompressor * AllocRunLength_ZeroBased(void)
virtual int Read(void *outData, int outLength)=0
virtual int Write(const void *inData, int inLength)=0
static idCompressor * AllocLZW(void)
virtual float GetCompressionRatio(void) const =0
virtual const char * GetName(void)=0
static idCompressor * AllocLZSS_WordAligned(void)
virtual int Seek(long offset, fsOrigin_t origin)=0
virtual void Init(idFile *f, bool compress, int wordLength)=0
static idCompressor * AllocArithmetic(void)
virtual int Length(void)=0
virtual void Flush(void)=0
static idCompressor * AllocRunLength(void)
virtual ID_TIME_T Timestamp(void)=0
virtual void FinishCompress(void)=0
virtual void ForceFlush(void)=0
static idCompressor * AllocHuffman(void)
virtual const char * GetFullPath(void)=0
static idCompressor * AllocNoCompression(void)
static idCompressor * AllocLZSS(void)
static idCompressor * AllocBitStream(void)