Home
last modified time | relevance | path

Searched refs:MinContext (Results 1 – 4 of 4) sorted by relevance

/external/lzma/C/
DPpmd7Enc.c82 if (p->MinContext->NumStats != 1) in Ppmd7_EncodeSymbol()
84 CPpmd_State *s = Ppmd7_GetStats(p, p->MinContext); in Ppmd7_EncodeSymbol()
89 RangeEnc_Encode(rc, 0, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
96 i = p->MinContext->NumStats - 1; in Ppmd7_EncodeSymbol()
101 RangeEnc_Encode(rc, sum, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
113 i = p->MinContext->NumStats - 1; in Ppmd7_EncodeSymbol()
115 RangeEnc_Encode(rc, sum, p->MinContext->SummFreq - sum, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
120 CPpmd_State *s = Ppmd7Context_OneState(p->MinContext); in Ppmd7_EncodeSymbol()
145 unsigned i, numMasked = p->MinContext->NumStats; in Ppmd7_EncodeSymbol()
149 if (!p->MinContext->Suffix) in Ppmd7_EncodeSymbol()
[all …]
DPpmd7Dec.c84 if (p->MinContext->NumStats != 1) in Ppmd7_DecodeSymbol()
86 CPpmd_State *s = Ppmd7_GetStats(p, p->MinContext); in Ppmd7_DecodeSymbol()
89 if ((count = rc->GetThreshold(rc, p->MinContext->SummFreq)) < (hiCnt = s->Freq)) in Ppmd7_DecodeSymbol()
99 i = p->MinContext->NumStats - 1; in Ppmd7_DecodeSymbol()
113 if (count >= p->MinContext->SummFreq) in Ppmd7_DecodeSymbol()
116 rc->Decode(rc, hiCnt, p->MinContext->SummFreq - hiCnt); in Ppmd7_DecodeSymbol()
119 i = p->MinContext->NumStats - 1; in Ppmd7_DecodeSymbol()
129 symbol = (p->FoundState = Ppmd7Context_OneState(p->MinContext))->Symbol; in Ppmd7_DecodeSymbol()
136 MASK(Ppmd7Context_OneState(p->MinContext)->Symbol) = 0; in Ppmd7_DecodeSymbol()
144 unsigned i, num, numMasked = p->MinContext->NumStats; in Ppmd7_DecodeSymbol()
[all …]
DPpmd7.c301 p->MinContext = p->MaxContext = (CTX_PTR)(p->HiUnit -= UNIT_SIZE); /* AllocContext(p); */ in RestartModel()
302 p->MinContext->Suffix = 0; in RestartModel()
303 p->MinContext->NumStats = 256; in RestartModel()
304 p->MinContext->SummFreq = 256 + 1; in RestartModel()
307 p->MinContext->Stats = REF(p->FoundState); in RestartModel()
346 CTX_PTR c = p->MinContext; in CreateSuccessors()
429 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
431 c = SUFFIX(p->MinContext); in UpdateModel()
461 p->MinContext = p->MaxContext = CreateSuccessors(p, True); in UpdateModel()
462 if (p->MinContext == 0) in UpdateModel()
[all …]
DPpmd7.h44 CPpmd7_Context *MinContext, *MaxContext; member
89 &p->BinSumm[Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \
90 p->NS2BSIndx[Ppmd7_GetContext(p, p->MinContext->Suffix)->NumStats - 1] + \
92 2 * p->HB2Flag[Ppmd7Context_OneState(p->MinContext)->Symbol] + \