• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/tools/misc/lzma_src/C/

Lines Matching refs:posState

752 static void LenEnc_Encode(CLenEnc *p, CRangeEnc *rc, UInt32 symbol, UInt32 posState)

757 RcTree_Encode(rc, p->low + (posState << kLenNumLowBits), kLenNumLowBits, symbol);
765 RcTree_Encode(rc, p->mid + (posState << kLenNumMidBits), kLenNumMidBits, symbol - kLenNumLowSymbols);
775 static void LenEnc_SetPrices(CLenEnc *p, UInt32 posState, UInt32 numSymbols, UInt32 *prices, UInt32 *ProbPrices)
786 prices[i] = a0 + RcTree_GetPrice(p->low + (posState << kLenNumLowBits), kLenNumLowBits, i, ProbPrices);
792 prices[i] = b0 + RcTree_GetPrice(p->mid + (posState << kLenNumMidBits), kLenNumMidBits, i - kLenNumLowSymbols, ProbPrices);
798 static void MY_FAST_CALL LenPriceEnc_UpdateTable(CLenPriceEnc *p, UInt32 posState, UInt32 *ProbPrices)
800 LenEnc_SetPrices(&p->p, posState, p->tableSize, p->prices[posState], ProbPrices);
801 p->counters[posState] = p->tableSize;
806 UInt32 posState;
807 for (posState = 0; posState < numPosStates; posState++)
808 LenPriceEnc_UpdateTable(p, posState, ProbPrices);
811 static void LenEnc_Encode2(CLenPriceEnc *p, CRangeEnc *rc, UInt32 symbol, UInt32 posState, Bool updatePrice, UInt32 *ProbPrices)
813 LenEnc_Encode(&p->p, rc, symbol, posState);
815 if (--p->counters[posState] == 0)
816 LenPriceEnc_UpdateTable(p, posState, ProbPrices);
875 static UInt32 GetRepLen1Price(CLzmaEnc *p, UInt32 state, UInt32 posState)
879 GET_PRICE_0(p->isRep0Long[state][posState]);
882 static UInt32 GetPureRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 state, UInt32 posState)
888 price += GET_PRICE_1(p->isRep0Long[state][posState]);
904 static UInt32 GetRepPrice(CLzmaEnc *p, UInt32 repIndex, UInt32 len, UInt32 state, UInt32 posState)
906 return p->repLenEnc.prices[posState][len - LZMA_MATCH_LEN_MIN] +
907 GetPureRepPrice(p, repIndex, state, posState);
950 UInt32 numAvail, mainLen, numPairs, repMaxIndex, i, posState, lenEnd, len, cur;
1028 posState = (position & p->pbMask);
1032 p->opt[1].price = GET_PRICE_0(p->isMatch[p->state][posState]) +
1040 matchPrice = GET_PRICE_1(p->isMatch[p->state][posState]);
1045 UInt32 shortRepPrice = repMatchPrice + GetRepLen1Price(p, p->state, posState);
1075 price = repMatchPrice + GetPureRepPrice(p, i, p->state, posState);
1078 UInt32 curAndLenPrice = price + p->repLenEnc.prices[posState][repLen - 2];
1104 UInt32 curAndLenPrice = normalMatchPrice + p->lenEnc.prices[posState][len - LZMA_MATCH_LEN_MIN];
1145 UInt32 numAvailFull, newLen, numPairs, posPrev, state, posState, startLen;
1240 posState = (position & p->pbMask);
1242 curAnd1Price = curPrice + GET_PRICE_0(p->isMatch[state][posState]);
1261 matchPrice = curPrice + GET_PRICE_1(p->isMatch[state][posState]);
1266 UInt32 shortRepPrice = repMatchPrice + GetRepLen1Price(p, state, posState);
1341 price = repMatchPrice + GetPureRepPrice(p, repIndex, state, posState);
1344 UInt32 curAndLenPrice = price + p->repLenEnc.prices[posState][lenTest - 2];
1374 price + p->repLenEnc.prices[posState][lenTest - 2] +
1431 UInt32 curAndLenPrice = normalMatchPrice + p->lenEnc.prices[posState][lenTest - LZMA_MATCH_LEN_MIN];
1616 static void WriteEndMarker(CLzmaEnc *p, UInt32 posState)
1619 RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 1);
1623 LenEnc_Encode2(&p->lenEnc, &p->rc, len - LZMA_MATCH_LEN_MIN, posState, !p->fastMode, p->ProbPrices);
1787 UInt32 pos, len, posState;
1798 posState = nowPos32 & p->pbMask;
1805 RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 0);
1817 RangeEnc_EncodeBit(&p->rc, &p->isMatch[p->state][posState], 1);
1824 RangeEnc_EncodeBit(&p->rc, &p->isRep0Long[p->state][posState], ((len == 1) ? 0 : 1));
1847 LenEnc_Encode2(&p->repLenEnc, &p->rc, len - LZMA_MATCH_LEN_MIN, posState, !p->fastMode, p->ProbPrices);
1856 LenEnc_Encode2(&p->lenEnc, &p->rc, len - LZMA_MATCH_LEN_MIN, posState, !p->fastMode, p->ProbPrices);