Home
last modified time | relevance | path

Searched refs:litlen (Results 1 – 5 of 5) sorted by relevance

/external/lz4/lib/
Dlz4hc.c1098 int litlen; member
1102 LZ4_FORCE_INLINE int LZ4HC_literalsPrice(int const litlen) in LZ4HC_literalsPrice() argument
1104 int price = litlen; in LZ4HC_literalsPrice()
1105 if (litlen >= (int)RUN_MASK) in LZ4HC_literalsPrice()
1106 price += 1 + (litlen-RUN_MASK)/255; in LZ4HC_literalsPrice()
1112 LZ4_FORCE_INLINE int LZ4HC_sequencePrice(int litlen, int mlen) in LZ4HC_sequencePrice() argument
1116 price += LZ4HC_literalsPrice(litlen); in LZ4HC_sequencePrice()
1209 opt[rPos].litlen = llen + rPos; in LZ4HC_compress_optimal()
1212 rPos, cost, opt[rPos].litlen); in LZ4HC_compress_optimal()
1223 opt[mlen].litlen = llen; in LZ4HC_compress_optimal()
[all …]
/external/zopfli/src/zopfli/
Dsqueeze.c114 typedef double CostModelFun(unsigned litlen, unsigned dist, void* context);
120 static double GetCostFixed(unsigned litlen, unsigned dist, void* unused) { in GetCostFixed() argument
123 if (litlen <= 143) return 8; in GetCostFixed()
127 int lbits = ZopfliGetLengthExtraBits(litlen); in GetCostFixed()
128 int lsym = ZopfliGetLengthSymbol(litlen); in GetCostFixed()
141 static double GetCostStat(unsigned litlen, unsigned dist, void* context) { in GetCostStat() argument
144 return stats->ll_symbols[litlen]; in GetCostStat()
146 int lsym = ZopfliGetLengthSymbol(litlen); in GetCostStat()
147 int lbits = ZopfliGetLengthExtraBits(litlen); in GetCostStat()
Ddeflate.c310 unsigned litlen = litlens[i]; in AddLZ77Data() local
312 assert(litlen < 256); in AddLZ77Data()
313 assert(ll_lengths[litlen] > 0); in AddLZ77Data()
314 AddHuffmanBits(ll_symbols[litlen], ll_lengths[litlen], bp, out, outsize); in AddLZ77Data()
317 unsigned lls = ZopfliGetLengthSymbol(litlen); in AddLZ77Data()
319 assert(litlen >= 3 && litlen <= 288); in AddLZ77Data()
323 AddBits(ZopfliGetLengthExtraBitsValue(litlen), in AddLZ77Data()
324 ZopfliGetLengthExtraBits(litlen), in AddLZ77Data()
330 testlength += litlen; in AddLZ77Data()
/external/toybox/lib/
Ddeflate.c236 int i, litlen, distlen, hufflen; in inflate() local
241 litlen = bitbuf_get(bb, 5)+257; // max 288 in inflate()
254 for (i = 0; i < litlen + distlen;) { in inflate()
268 if (i > litlen+distlen) error_exit("bad tree"); in inflate()
270 len2huff(lithuff = h2, bits, litlen); in inflate()
271 len2huff(disthuff = ((struct huff *)toybuf)+2, bits+litlen, distlen); in inflate()
/external/zlib/src/contrib/blast/
Dblast.c299 static const unsigned char litlen[] = { in decomp() local
317 construct(&litcode, litlen, sizeof(litlen)); in decomp()