Home
last modified time | relevance | path

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

/external/lzma/C/
DPpmd7Enc.c80 if (p->MinContext->NumStats != 1) in Ppmd7_EncodeSymbol()
82 CPpmd_State *s = Ppmd7_GetStats(p, p->MinContext); in Ppmd7_EncodeSymbol()
87 RangeEnc_Encode(rc, 0, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
94 i = p->MinContext->NumStats - 1; in Ppmd7_EncodeSymbol()
99 RangeEnc_Encode(rc, sum, s->Freq, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
111 i = p->MinContext->NumStats - 1; in Ppmd7_EncodeSymbol()
113 RangeEnc_Encode(rc, sum, p->MinContext->SummFreq - sum, p->MinContext->SummFreq); in Ppmd7_EncodeSymbol()
118 CPpmd_State *s = Ppmd7Context_OneState(p->MinContext); in Ppmd7_EncodeSymbol()
143 unsigned i, numMasked = p->MinContext->NumStats; in Ppmd7_EncodeSymbol()
147 if (!p->MinContext->Suffix) in Ppmd7_EncodeSymbol()
[all …]
DPpmd7Dec.c82 if (p->MinContext->NumStats != 1) in Ppmd7_DecodeSymbol()
84 CPpmd_State *s = Ppmd7_GetStats(p, p->MinContext); in Ppmd7_DecodeSymbol()
87 if ((count = rc->GetThreshold(rc, p->MinContext->SummFreq)) < (hiCnt = s->Freq)) in Ppmd7_DecodeSymbol()
97 i = p->MinContext->NumStats - 1; in Ppmd7_DecodeSymbol()
111 if (count >= p->MinContext->SummFreq) in Ppmd7_DecodeSymbol()
114 rc->Decode(rc, hiCnt, p->MinContext->SummFreq - hiCnt); in Ppmd7_DecodeSymbol()
117 i = p->MinContext->NumStats - 1; in Ppmd7_DecodeSymbol()
127 symbol = (p->FoundState = Ppmd7Context_OneState(p->MinContext))->Symbol; in Ppmd7_DecodeSymbol()
134 MASK(Ppmd7Context_OneState(p->MinContext)->Symbol) = 0; in Ppmd7_DecodeSymbol()
142 unsigned i, num, numMasked = p->MinContext->NumStats; in Ppmd7_DecodeSymbol()
[all …]
DPpmd7.c299 p->MinContext = p->MaxContext = (CTX_PTR)(p->HiUnit -= UNIT_SIZE); /* AllocContext(p); */ in RestartModel()
300 p->MinContext->Suffix = 0; in RestartModel()
301 p->MinContext->NumStats = 256; in RestartModel()
302 p->MinContext->SummFreq = 256 + 1; in RestartModel()
305 p->MinContext->Stats = REF(p->FoundState); in RestartModel()
344 CTX_PTR c = p->MinContext; in CreateSuccessors()
427 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel()
429 c = SUFFIX(p->MinContext); in UpdateModel()
459 p->MinContext = p->MaxContext = CreateSuccessors(p, True); in UpdateModel()
460 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] + \