Searched refs:MinContext (Results 1 – 4 of 4) sorted by relevance
/external/lzma/C/ |
D | Ppmd7Enc.c | 82 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 …]
|
D | Ppmd7Dec.c | 86 if (p->MinContext->NumStats != 1) in Ppmd7_DecodeSymbol() 88 CPpmd_State *s = Ppmd7_GetStats(p, p->MinContext); in Ppmd7_DecodeSymbol() 91 if ((count = rc->GetThreshold(rc, p->MinContext->SummFreq)) < (hiCnt = s->Freq)) in Ppmd7_DecodeSymbol() 101 i = p->MinContext->NumStats - 1; in Ppmd7_DecodeSymbol() 115 if (count >= p->MinContext->SummFreq) in Ppmd7_DecodeSymbol() 118 rc->Decode(rc, hiCnt, p->MinContext->SummFreq - hiCnt); in Ppmd7_DecodeSymbol() 121 i = p->MinContext->NumStats - 1; in Ppmd7_DecodeSymbol() 131 symbol = (p->FoundState = Ppmd7Context_OneState(p->MinContext))->Symbol; in Ppmd7_DecodeSymbol() 138 MASK(Ppmd7Context_OneState(p->MinContext)->Symbol) = 0; in Ppmd7_DecodeSymbol() 146 unsigned i, num, numMasked = p->MinContext->NumStats; in Ppmd7_DecodeSymbol() [all …]
|
D | Ppmd7.c | 303 p->MinContext = p->MaxContext = (CTX_PTR)(p->HiUnit -= UNIT_SIZE); /* AllocContext(p); */ in RestartModel() 304 p->MinContext->Suffix = 0; in RestartModel() 305 p->MinContext->NumStats = 256; in RestartModel() 306 p->MinContext->SummFreq = 256 + 1; in RestartModel() 309 p->MinContext->Stats = REF(p->FoundState); in RestartModel() 348 CTX_PTR c = p->MinContext; in CreateSuccessors() 431 if (p->FoundState->Freq < MAX_FREQ / 4 && p->MinContext->Suffix != 0) in UpdateModel() 433 c = SUFFIX(p->MinContext); in UpdateModel() 463 p->MinContext = p->MaxContext = CreateSuccessors(p, True); in UpdateModel() 464 if (p->MinContext == 0) in UpdateModel() [all …]
|
D | Ppmd7.h | 44 CPpmd7_Context *MinContext, *MaxContext; member 89 &p->BinSumm[(size_t)(unsigned)Ppmd7Context_OneState(p->MinContext)->Freq - 1][p->PrevSuccess + \ 90 p->NS2BSIndx[(size_t)Ppmd7_GetContext(p, p->MinContext->Suffix)->NumStats - 1] + \ 92 2 * p->HB2Flag[(unsigned)Ppmd7Context_OneState(p->MinContext)->Symbol] + \
|