Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PPM_CONTEXT Struct Reference

Collaboration diagram for PPM_CONTEXT:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void encodeBinSymbol (int symbol)
void encodeSymbol1 (int symbol)
void encodeSymbol2 (int symbol)
void decodeBinSymbol ()
void decodeSymbol1 ()
void decodeSymbol2 ()
void update1 (STATE *p)
void update2 (STATE *p)
SEE2_CONTEXTmakeEscFreq2 ()
void rescale ()
void refresh (int OldNU, BOOL Scale)
PPM_CONTEXTcutOff (int Order)
PPM_CONTEXTremoveBinConts (int Order)
STATEoneState () const

Public Attributes

BYTE NumStats
BYTE Flags
WORD SummFreq
PPM_CONTEXT::STATEStats
PPM_CONTEXTSuffix

Classes

struct  STATE

Member Function Documentation

PPM_CONTEXT * PPM_CONTEXT::cutOff int  Order  ) 
 

Definition at line 150 of file Model.cpp.

References Flags, FreeUnits(), i, MaxOrder, MoveUnitsUp(), NULL, NumStats, O_BOUND, oneState(), p, P_CALL, PrefetchData(), refresh(), SpecialFreeUnit(), StateCpy(), Stats, PPM_CONTEXT::STATE::Successor, SummFreq, SWAP(), PPM_CONTEXT::STATE::Symbol, and UnitsStart.

Referenced by RestoreModelRare().

void PPM_CONTEXT::decodeBinSymbol  )  [inline]
 

Definition at line 458 of file Model.cpp.

References ariGetCurrentShiftCount(), BIN_SCALE, BinSumm, CharMask, EscCount, ExpEscape, Flags, PPM_CONTEXT::STATE::Freq, GET_MEAN, SUBRANGE::HighCount, InitEsc, INTERVAL, SUBRANGE::LowCount, NS2BSIndx, NULL, NumMasked, NumStats, oneState(), PERIOD_BITS, PrevSuccess, QTable, RunLength, SubRange, Suffix, PPM_CONTEXT::STATE::Symbol, TOT_BITS, and WORD.

Referenced by DecodeFile().

void PPM_CONTEXT::decodeSymbol1  )  [inline]
 

Definition at line 510 of file Model.cpp.

References ariGetCurrentCount(), CharMask, EscCount, PPM_CONTEXT::STATE::Freq, SUBRANGE::HighCount, i, SUBRANGE::LowCount, MAX_FREQ, NULL, NumMasked, NumStats, p, PrefetchData(), PrevSuccess, rescale(), RunLength, SUBRANGE::scale, Stats, SubRange, Suffix, SummFreq, PPM_CONTEXT::STATE::Symbol, and update1().

Referenced by DecodeFile().

void PPM_CONTEXT::decodeSymbol2  )  [inline]
 

Definition at line 579 of file Model.cpp.

References ariGetCurrentCount(), CharMask, EscCount, SUBRANGE::HighCount, i, SUBRANGE::LowCount, makeEscFreq2(), NumMasked, NumStats, p, SUBRANGE::scale, Stats, SubRange, SEE2_CONTEXT::Summ, PPM_CONTEXT::STATE::Symbol, SEE2_CONTEXT::update(), and update2().

Referenced by DecodeFile().

void PPM_CONTEXT::encodeBinSymbol int  symbol  )  [inline]
 

Definition at line 441 of file Model.cpp.

References BIN_SCALE, BinSumm, CharMask, EscCount, ExpEscape, Flags, PPM_CONTEXT::STATE::Freq, GET_MEAN, SUBRANGE::HighCount, InitEsc, INTERVAL, SUBRANGE::LowCount, NS2BSIndx, NULL, NumMasked, NumStats, oneState(), PERIOD_BITS, PrevSuccess, QTable, RunLength, SubRange, Suffix, PPM_CONTEXT::STATE::Symbol, and WORD.

Referenced by EncodeFile().

void PPM_CONTEXT::encodeSymbol1 int  symbol  )  [inline]
 

Definition at line 483 of file Model.cpp.

References CharMask, EscCount, PPM_CONTEXT::STATE::Freq, SUBRANGE::HighCount, i, SUBRANGE::LowCount, MAX_FREQ, NULL, NumMasked, NumStats, p, PrefetchData(), PrevSuccess, rescale(), RunLength, SUBRANGE::scale, Stats, SubRange, Suffix, SummFreq, PPM_CONTEXT::STATE::Symbol, and update1().

Referenced by EncodeFile().

void PPM_CONTEXT::encodeSymbol2 int  symbol  )  [inline]
 

Definition at line 556 of file Model.cpp.

References CharMask, EscCount, PPM_CONTEXT::STATE::Freq, SUBRANGE::HighCount, i, SUBRANGE::LowCount, makeEscFreq2(), NumMasked, NumStats, p, SUBRANGE::scale, Stats, SubRange, SEE2_CONTEXT::Summ, PPM_CONTEXT::STATE::Symbol, SEE2_CONTEXT::update(), and update2().

Referenced by EncodeFile().

SEE2_CONTEXT * PPM_CONTEXT::makeEscFreq2  )  [inline]
 

Definition at line 540 of file Model.cpp.

References DummySEE2Cont, Flags, SEE2_CONTEXT::getMean(), NumMasked, NumStats, PrefetchData(), QTable, SUBRANGE::scale, SEE2Cont, Stats, SubRange, Suffix, SummFreq, and t.

Referenced by decodeSymbol2(), and encodeSymbol2().

STATE& PPM_CONTEXT::oneState  )  const [inline]
 

Definition at line 52 of file Model.cpp.

References SummFreq.

Referenced by CreateSuccessors(), cutOff(), decodeBinSymbol(), encodeBinSymbol(), ReduceOrder(), removeBinConts(), rescale(), RestoreModelRare(), and UpdateModel().

void PPM_CONTEXT::refresh int  OldNU,
BOOL  Scale
 

Definition at line 134 of file Model.cpp.

References Flags, PPM_CONTEXT::STATE::Freq, i, NumStats, p, ShrinkUnits(), Stats, SummFreq, and PPM_CONTEXT::STATE::Symbol.

Referenced by cutOff(), and RestoreModelRare().

PPM_CONTEXT * PPM_CONTEXT::removeBinConts int  Order  ) 
 

Definition at line 183 of file Model.cpp.

References Flags, FreeUnits(), MaxOrder, NULL, NumStats, oneState(), p, P_CALL, PrefetchData(), Stats, PPM_CONTEXT::STATE::Successor, Suffix, and UnitsStart.

Referenced by RestoreModelRare().

void PPM_CONTEXT::rescale  ) 
 

Definition at line 279 of file Model.cpp.

References Flags, FreeUnits(), PPM_CONTEXT::STATE::Freq, i, MAX_FREQ, MRM_FREEZE, MRMethod, NumStats, oneState(), OrderFall, p, ShrinkUnits(), StateCpy(), Stats, SummFreq, SWAP(), and PPM_CONTEXT::STATE::Symbol.

Referenced by decodeSymbol1(), encodeSymbol1(), update1(), and update2().

void PPM_CONTEXT::update1 STATE p  )  [inline]
 

Definition at line 475 of file Model.cpp.

References MAX_FREQ, rescale(), SummFreq, and SWAP().

Referenced by decodeSymbol1(), and encodeSymbol1().

void PPM_CONTEXT::update2 STATE p  )  [inline]
 

Definition at line 534 of file Model.cpp.

References EscCount, PPM_CONTEXT::STATE::Freq, InitRL, MAX_FREQ, rescale(), RunLength, and SummFreq.

Referenced by decodeSymbol2(), and encodeSymbol2().


Member Data Documentation

BYTE PPM_CONTEXT::Flags
 

Definition at line 32 of file Model.cpp.

Referenced by CreateSuccessors(), cutOff(), decodeBinSymbol(), encodeBinSymbol(), makeEscFreq2(), refresh(), removeBinConts(), rescale(), RestoreModelRare(), and UpdateModel().

BYTE PPM_CONTEXT::NumStats
 

Definition at line 32 of file Model.cpp.

Referenced by CreateSuccessors(), cutOff(), decodeBinSymbol(), DecodeFile(), decodeSymbol1(), decodeSymbol2(), encodeBinSymbol(), EncodeFile(), encodeSymbol1(), encodeSymbol2(), makeEscFreq2(), ReduceOrder(), refresh(), removeBinConts(), rescale(), RestoreModelRare(), StartModelRare(), and UpdateModel().

struct PPM_CONTEXT::STATE * PPM_CONTEXT::Stats
 

Referenced by CreateSuccessors(), cutOff(), decodeSymbol1(), decodeSymbol2(), encodeSymbol1(), encodeSymbol2(), makeEscFreq2(), ReduceOrder(), refresh(), removeBinConts(), rescale(), RestoreModelRare(), StartModelRare(), and UpdateModel().

PPM_CONTEXT* PPM_CONTEXT::Suffix
 

Definition at line 38 of file Model.cpp.

Referenced by CreateSuccessors(), decodeBinSymbol(), DecodeFile(), decodeSymbol1(), encodeBinSymbol(), EncodeFile(), encodeSymbol1(), makeEscFreq2(), ReduceOrder(), removeBinConts(), RestoreModelRare(), StartModelRare(), and UpdateModel().

WORD PPM_CONTEXT::SummFreq
 

Definition at line 33 of file Model.cpp.

Referenced by CreateSuccessors(), cutOff(), decodeSymbol1(), encodeSymbol1(), makeEscFreq2(), oneState(), ReduceOrder(), refresh(), rescale(), RestoreModelRare(), StartModelRare(), update1(), update2(), and UpdateModel().


The documentation for this struct was generated from the following file:
Generated on Sat Nov 5 17:45:19 2005 for OPIE by  doxygen 1.4.2