unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ModelPPM Class Reference

#include <model.hpp>

Inheritance diagram for ModelPPM:
[legend]
Collaboration diagram for ModelPPM:
[legend]

Public Member Functions

 ModelPPM ()
 
void CleanUp ()
 
bool DecodeInit (Unpack *UnpackRead, int &EscChar)
 
int DecodeChar ()
 

Private Member Functions

void RestartModelRare ()
 
void StartModelRare (int MaxOrder)
 
RARPPM_CONTEXTCreateSuccessors (bool Skip, RARPPM_STATE *p1)
 
void UpdateModel ()
 
void ClearMask ()
 

Private Attributes

RARPPM_SEE2_CONTEXT SEE2Cont [25][16]
 
RARPPM_SEE2_CONTEXT DummySEE2Cont
 
struct RARPPM_CONTEXTMinContext
 
struct RARPPM_CONTEXTMedContext
 
struct RARPPM_CONTEXTMaxContext
 
RARPPM_STATEFoundState
 
int NumMasked
 
int InitEsc
 
int OrderFall
 
int MaxOrder
 
int RunLength
 
int InitRL
 
byte CharMask [256]
 
byte NS2Indx [256]
 
byte NS2BSIndx [256]
 
byte HB2Flag [256]
 
byte EscCount
 
byte PrevSuccess
 
byte HiBitsFlag
 
ushort BinSumm [128][64]
 
RangeCoder Coder
 
SubAllocator SubAlloc
 

Friends

struct RARPPM_CONTEXT
 

Additional Inherited Members

- Static Private Attributes inherited from RARPPM_DEF
static const int INT_BITS =7
 
static const int PERIOD_BITS =7
 
static const int TOT_BITS =INT_BITS+PERIOD_BITS
 
static const int INTERVAL =1 << INT_BITS
 
static const int BIN_SCALE =1 << TOT_BITS
 
static const int MAX_FREQ =124
 

Detailed Description

Definition at line 92 of file model.hpp.

Constructor & Destructor Documentation

◆ ModelPPM()

ModelPPM::ModelPPM ( )

Definition at line 30 of file model.cpp.

References MaxContext, MedContext, and MinContext.

Member Function Documentation

◆ CleanUp()

void ModelPPM::CleanUp ( )

◆ ClearMask()

void ModelPPM::ClearMask ( )
inlineprivate

Definition at line 550 of file model.cpp.

References CharMask, and EscCount.

Referenced by DecodeChar().

◆ CreateSuccessors()

◆ DecodeChar()

◆ DecodeInit()

◆ RestartModelRare()

◆ StartModelRare()

void ModelPPM::StartModelRare ( int  MaxOrder)
private

◆ UpdateModel()

Friends And Related Function Documentation

◆ RARPPM_CONTEXT

friend struct RARPPM_CONTEXT
friend

Definition at line 95 of file model.hpp.

Member Data Documentation

◆ BinSumm

ushort ModelPPM::BinSumm[128][64]
private

Definition at line 104 of file model.hpp.

Referenced by RARPPM_CONTEXT::decodeBinSymbol(), and RestartModelRare().

◆ CharMask

◆ Coder

◆ DummySEE2Cont

RARPPM_SEE2_CONTEXT ModelPPM::DummySEE2Cont
private

Definition at line 97 of file model.hpp.

Referenced by RARPPM_CONTEXT::makeEscFreq2(), and StartModelRare().

◆ EscCount

◆ FoundState

◆ HB2Flag

byte ModelPPM::HB2Flag[256]
private

◆ HiBitsFlag

byte ModelPPM::HiBitsFlag
private

◆ InitEsc

int ModelPPM::InitEsc
private

Definition at line 101 of file model.hpp.

Referenced by RARPPM_CONTEXT::decodeBinSymbol(), and UpdateModel().

◆ InitRL

int ModelPPM::InitRL
private

Definition at line 101 of file model.hpp.

Referenced by RestartModelRare(), and RARPPM_CONTEXT::update2().

◆ MaxContext

struct RARPPM_CONTEXT * ModelPPM::MaxContext
private

Definition at line 99 of file model.hpp.

Referenced by DecodeChar(), ModelPPM(), RestartModelRare(), and UpdateModel().

◆ MaxOrder

int ModelPPM::MaxOrder
private

Definition at line 101 of file model.hpp.

Referenced by DecodeInit(), RestartModelRare(), and StartModelRare().

◆ MedContext

struct RARPPM_CONTEXT * ModelPPM::MedContext
private

Definition at line 99 of file model.hpp.

Referenced by ModelPPM().

◆ MinContext

struct RARPPM_CONTEXT* ModelPPM::MinContext
private

◆ NS2BSIndx

byte ModelPPM::NS2BSIndx[256]
private

Definition at line 102 of file model.hpp.

Referenced by RARPPM_CONTEXT::decodeBinSymbol(), and StartModelRare().

◆ NS2Indx

byte ModelPPM::NS2Indx[256]
private

Definition at line 102 of file model.hpp.

Referenced by RARPPM_CONTEXT::makeEscFreq2(), and StartModelRare().

◆ NumMasked

◆ OrderFall

int ModelPPM::OrderFall
private

Definition at line 101 of file model.hpp.

Referenced by DecodeChar(), RARPPM_CONTEXT::rescale(), RestartModelRare(), and UpdateModel().

◆ PrevSuccess

byte ModelPPM::PrevSuccess
private

◆ RunLength

int ModelPPM::RunLength
private

◆ SEE2Cont

RARPPM_SEE2_CONTEXT ModelPPM::SEE2Cont[25][16]
private

Definition at line 97 of file model.hpp.

Referenced by RARPPM_CONTEXT::makeEscFreq2(), and RestartModelRare().

◆ SubAlloc


The documentation for this class was generated from the following files: