Go to the source code of this file.
#define Ppmd7_GetBinSumm |
( |
|
p) | |
|
Value:
p->NS2BSIndx[(size_t)
Ppmd7_GetContext(p, p->MinContext->Suffix)->NumStats - 1] + \
(p->HiBitsFlag = p->HB2Flag[p->FoundState->Symbol]) + \
((p->RunLength >> 26) & 0x20)]
Definition at line 88 of file Ppmd7.h.
#define Ppmd7_GetPtr |
( |
|
p, |
|
|
|
offs |
|
) |
| ((void *)((p)->Base + (offs))) |
#define PPMD7_MAX_MEM_SIZE (0xFFFFFFFF - 12 * 3) |
#define PPMD7_MAX_ORDER 64 |
#define PPMD7_MIN_MEM_SIZE (1 << 11) |
#define PPMD7_MIN_ORDER 2 |
#define Ppmd7_WasAllocated |
( |
|
p) | |
((p)->Base != NULL) |
#define Ppmd7Context_OneState |
( |
|
p) | |
((CPpmd_State *)&(p)->SummFreq) |
#define Ppmd7z_RangeDec_IsFinishedOK |
( |
|
p) | |
((p)->Code == 0) |
void Ppmd7_Construct |
( |
CPpmd7 * |
p) | |
|
Definition at line 60 of file Ppmd7.c.
68 unsigned step = (i >= 12 ? 4 : (i >> 2) + 1);
76 memset(p->
NS2BSIndx + 11, (3 << 1), 256 - 11);
78 for (i = 0; i < 3; i++)
80 for (m = i, k = 1; i < 256; i++)
88 memset(p->
HB2Flag + 0x40, 8, 0x100 - 0x40);
Definition at line 83 of file Ppmd7Dec.c.
85 size_t charMask[256 /
sizeof(size_t)];
104 if ((hiCnt += (++s)->Freq) > count)
122 do {
MASK((--s)->Symbol) = 0; }
while (--i);
144 UInt32 freqSum, count, hiCnt;
162 hiCnt += (s->
Freq & k);
176 for (hiCnt = 0; (hiCnt += (*pps)->Freq) <= count; pps++);
185 if (count >= freqSum)
187 rc->
Decode(rc, hiCnt, freqSum - hiCnt);
189 do {
MASK(ps[--i]->Symbol) = 0; }
while (i != 0);
void Ppmd7_Init |
( |
CPpmd7 * |
p, |
|
|
unsigned |
maxOrder |
|
) |
| |
Definition at line 638 of file Ppmd7.c.
644 see = p->
See[(unsigned)p->
NS2Indx[(
size_t)nonMasked - 1]] +
647 4 * (
unsigned)(numMasked > nonMasked) +
652 *escFreq = r + (r == 0);
void Ppmd7_Update1 |
( |
CPpmd7 * |
p) | |
|
Definition at line 672 of file Ppmd7.c.
677 if (s[0].Freq > s[-1].Freq)
void Ppmd7_Update1_0 |
( |
CPpmd7 * |
p) | |
|
void Ppmd7_Update2 |
( |
CPpmd7 * |
p) | |
|
void Ppmd7_UpdateBin |
( |
CPpmd7 * |
p) | |
|
Definition at line 11 of file Ppmd7Dec.c.
15 p->
Range = 0xFFFFFFFF;
18 for (i = 0; i < 4; i++)
20 return (p->
Code < 0xFFFFFFFF);
const Byte PPMD7_kExpEscape[16] |