• Home
  • Raw
  • Download

Lines Matching refs:probs

692 static void LitEnc_Encode(CRangeEnc *p, CLzmaProb *probs, UInt32 sym)  in LitEnc_Encode()  argument
700 CLzmaProb *prob = probs + (sym >> 8); in LitEnc_Encode()
709 static void LitEnc_EncodeMatched(CRangeEnc *p, CLzmaProb *probs, UInt32 sym, UInt32 matchByte) in LitEnc_EncodeMatched() argument
721 prob = probs + (offs + (matchByte & offs) + (sym >> 8)); in LitEnc_EncodeMatched()
771 static UInt32 LitEnc_GetPrice(const CLzmaProb *probs, UInt32 sym, const CProbPrice *ProbPrices) in LitEnc_GetPrice() argument
779 price += GET_PRICEa(probs[sym], bit); in LitEnc_GetPrice()
786 static UInt32 LitEnc_Matched_GetPrice(const CLzmaProb *probs, UInt32 sym, UInt32 matchByte, const C… in LitEnc_Matched_GetPrice() argument
794 price += GET_PRICEa(probs[offs + (matchByte & offs) + (sym >> 8)], (sym >> 7) & 1); in LitEnc_Matched_GetPrice()
803 static void RcTree_ReverseEncode(CRangeEnc *rc, CLzmaProb *probs, unsigned numBits, unsigned sym) in RcTree_ReverseEncode() argument
813 RC_BIT(rc, probs + m, bit); in RcTree_ReverseEncode()
834 CLzmaProb *probs = p->low; in LenEnc_Encode() local
836 RC_BIT_PRE(rc, probs); in LenEnc_Encode()
839 RC_BIT_1(rc, probs); in LenEnc_Encode()
840 probs += kLenNumLowSymbols; in LenEnc_Encode()
841 RC_BIT_PRE(rc, probs); in LenEnc_Encode()
844 RC_BIT_1(rc, probs); in LenEnc_Encode()
857 RC_BIT_0(rc, probs); in LenEnc_Encode()
858 probs += (posState << (1 + kLenNumLowBits)); in LenEnc_Encode()
859 bit = (sym >> 2) ; RC_BIT(rc, probs + 1, bit); m = (1 << 1) + bit; in LenEnc_Encode()
860 bit = (sym >> 1) & 1; RC_BIT(rc, probs + m, bit); m = (m << 1) + bit; in LenEnc_Encode()
861 bit = sym & 1; RC_BIT(rc, probs + m, bit); in LenEnc_Encode()
866 static void SetPrices_3(const CLzmaProb *probs, UInt32 startPrice, UInt32 *prices, const CProbPrice… in SetPrices_3() argument
873 price += GET_PRICEa(probs[1 ], (i >> 2)); in SetPrices_3()
874 price += GET_PRICEa(probs[2 + (i >> 2)], (i >> 1) & 1); in SetPrices_3()
875 prob = probs[4 + (i >> 1)]; in SetPrices_3()
900 const CLzmaProb *probs = enc->low + (posState << (1 + kLenNumLowBits)); in LenPriceEnc_UpdateTables() local
901 SetPrices_3(probs, a, prices, ProbPrices); in LenPriceEnc_UpdateTables()
902 SetPrices_3(probs + kLenNumLowSymbols, c, prices + kLenNumLowSymbols, ProbPrices); in LenPriceEnc_UpdateTables()
929 const CLzmaProb *probs = enc->high; in LenPriceEnc_UpdateTables() local
948 price += GET_PRICEa(probs[sym], bit); in LenPriceEnc_UpdateTables()
953 unsigned prob = probs[(size_t)i + (1 << (kLenNumHighBits - 1))]; in LenPriceEnc_UpdateTables()
1208 const CLzmaProb *probs = LIT_PROBS(position, *(data - 1)); in GetOptimum() local
1211 LitEnc_Matched_GetPrice(probs, curByte, matchByte, p->ProbPrices) : in GetOptimum()
1212 LitEnc_GetPrice(probs, curByte, p->ProbPrices)); in GetOptimum()
1508 const CLzmaProb *probs = LIT_PROBS(position, *(data - 1)); in GetOptimum() local
1510 LitEnc_Matched_GetPrice(probs, curByte, matchByte, p->ProbPrices) : in GetOptimum()
1511 LitEnc_GetPrice(probs, curByte, p->ProbPrices)); in GetOptimum()
2016 CLzmaProb *probs = p->posSlotEncoder[0]; in WriteEndMarker() local
2021 RC_BIT_PRE(p, probs + m) in WriteEndMarker()
2022 RC_BIT_1(&p->rc, probs + m); in WriteEndMarker()
2041 CLzmaProb *probs = p->posAlignEncoder; in WriteEndMarker() local
2046 RC_BIT_PRE(p, probs + m) in WriteEndMarker()
2047 RC_BIT_1(&p->rc, probs + m); in WriteEndMarker()
2086 const CLzmaProb *probs = p->posAlignEncoder; in FillAlignPrices() local
2095 bit = sym & 1; sym >>= 1; price += GET_PRICEa(probs[m], bit); m = (m << 1) + bit; in FillAlignPrices()
2096 bit = sym & 1; sym >>= 1; price += GET_PRICEa(probs[m], bit); m = (m << 1) + bit; in FillAlignPrices()
2097 bit = sym & 1; sym >>= 1; price += GET_PRICEa(probs[m], bit); m = (m << 1) + bit; in FillAlignPrices()
2098 prob = probs[m]; in FillAlignPrices()
2121 const CLzmaProb *probs = p->posEncoders + (size_t)base * 2; in FillDistancesPrices() local
2134 price += GET_PRICEa(probs[m], bit); in FillDistancesPrices()
2140 unsigned prob = probs[m]; in FillDistancesPrices()
2151 const CLzmaProb *probs = p->posSlotEncoder[lps]; in FillDistancesPrices() local
2160 bit = sym & 1; sym >>= 1; price = GET_PRICEa(probs[sym], bit); in FillDistancesPrices()
2161 bit = sym & 1; sym >>= 1; price += GET_PRICEa(probs[sym], bit); in FillDistancesPrices()
2162 bit = sym & 1; sym >>= 1; price += GET_PRICEa(probs[sym], bit); in FillDistancesPrices()
2163 bit = sym & 1; sym >>= 1; price += GET_PRICEa(probs[sym], bit); in FillDistancesPrices()
2164 bit = sym & 1; sym >>= 1; price += GET_PRICEa(probs[sym], bit); in FillDistancesPrices()
2165 prob = probs[(size_t)slot + (1 << (kNumPosSlotBits - 1))]; in FillDistancesPrices()
2300 CLzmaProb *probs; in LzmaEnc_CodeOneBlock() local
2320 probs = &p->isMatch[p->state][posState]; in LzmaEnc_CodeOneBlock()
2322 RC_BIT_PRE(&p->rc, probs) in LzmaEnc_CodeOneBlock()
2336 RC_BIT_0(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2339 probs = LIT_PROBS(nowPos32, *(data - 1)); in LzmaEnc_CodeOneBlock()
2344 LitEnc_Encode(&p->rc, probs, curByte); in LzmaEnc_CodeOneBlock()
2346 LitEnc_EncodeMatched(&p->rc, probs, curByte, *(data - p->reps[0])); in LzmaEnc_CodeOneBlock()
2350 RC_BIT_1(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2351 probs = &p->isRep[p->state]; in LzmaEnc_CodeOneBlock()
2352 RC_BIT_PRE(&p->rc, probs) in LzmaEnc_CodeOneBlock()
2356 RC_BIT_1(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2357 probs = &p->isRepG0[p->state]; in LzmaEnc_CodeOneBlock()
2358 RC_BIT_PRE(&p->rc, probs) in LzmaEnc_CodeOneBlock()
2361 RC_BIT_0(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2362 probs = &p->isRep0Long[p->state][posState]; in LzmaEnc_CodeOneBlock()
2363 RC_BIT_PRE(&p->rc, probs) in LzmaEnc_CodeOneBlock()
2366 RC_BIT_1_BASE(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2370 RC_BIT_0_BASE(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2376 RC_BIT_1(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2377 probs = &p->isRepG1[p->state]; in LzmaEnc_CodeOneBlock()
2378 RC_BIT_PRE(&p->rc, probs) in LzmaEnc_CodeOneBlock()
2381 RC_BIT_0_BASE(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2386 RC_BIT_1(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2387 probs = &p->isRepG2[p->state]; in LzmaEnc_CodeOneBlock()
2388 RC_BIT_PRE(&p->rc, probs) in LzmaEnc_CodeOneBlock()
2391 RC_BIT_0_BASE(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2396 RC_BIT_1_BASE(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2420 RC_BIT_0(&p->rc, probs); in LzmaEnc_CodeOneBlock()
2439 probs = p->posSlotEncoder[GetLenToPosState(len)]; in LzmaEnc_CodeOneBlock()
2442 CLzmaProb *prob = probs + (sym >> kNumPosSlotBits); in LzmaEnc_CodeOneBlock()
2645 CLzmaProb *probs = p->posSlotEncoder[i]; in LzmaEnc_Init() local
2648 probs[j] = kProbInitValue; in LzmaEnc_Init()
2659 CLzmaProb *probs = p->litProbs; in LzmaEnc_Init() local
2661 probs[k] = kProbInitValue; in LzmaEnc_Init()