1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#ifndef __PPMD_VARIANT_I_H__
#define __PPMD_VARIANT_I_H__
#include "Context.h"
#include "SubAllocatorVariantI.h"
// PPMd Variant I. Used by WinZip.
#define MRM_RESTART 0
#define MRM_CUT_OFF 1
#define MRM_FREEZE 2
typedef struct PPMdModelVariantI
{
PPMdCoreModel core;
PPMdSubAllocatorVariantI *alloc;
uint8_t NS2BSIndx[256],QTable[260]; // constants
PPMdContext *MaxContext;
int MaxOrder,MRMethod;
SEE2Context SEE2Cont[24][32],DummySEE2Cont;
uint16_t BinSumm[25][64]; // binary SEE-contexts
bool endofstream;
} PPMdModelVariantI;
void StartPPMdModelVariantI(PPMdModelVariantI *self,
PPMdReadFunction *readfunc,void *inputcontext,
PPMdSubAllocatorVariantI *alloc,int maxorder,int restoration);
int NextPPMdVariantIByte(PPMdModelVariantI *self);
#endif
|