Searched refs:litlens (Results 1 – 7 of 7) sorted by relevance
/external/zopfli/src/zopfli/ |
D | blocksplitter.c | 106 static double EstimateCost(const unsigned short* litlens, in EstimateCost() argument 109 return ZopfliCalculateBlockSize(litlens, dists, lstart, lend, 2); in EstimateCost() 113 const unsigned short* litlens; member 128 return EstimateCost(c->litlens, c->dists, c->start, i) + in SplitCost() 129 EstimateCost(c->litlens, c->dists, i, c->end); in SplitCost() 150 static void PrintBlockSplitPoints(const unsigned short* litlens, in PrintBlockSplitPoints() argument 162 size_t length = dists[i] == 0 ? 1 : litlens[i]; in PrintBlockSplitPoints() 219 const unsigned short* litlens, in ZopfliBlockSplitLZ77() argument 245 c.litlens = litlens; in ZopfliBlockSplitLZ77() 256 splitcost = EstimateCost(litlens, dists, lstart, llpos) + in ZopfliBlockSplitLZ77() [all …]
|
D | squeeze.c | 33 size_t litlens[288]; member 43 memset(stats->litlens, 0, 288 * sizeof(stats->litlens[0])); in InitStats() 51 memcpy(dest->litlens, source->litlens, 288 * sizeof(dest->litlens[0])); in CopyStats() 65 result->litlens[i] = in AddWeighedStatFreqs() 66 (size_t) (stats1->litlens[i] * w1 + stats2->litlens[i] * w2); in AddWeighedStatFreqs() 72 result->litlens[256] = 1; /* End symbol. */ in AddWeighedStatFreqs() 99 RandomizeFreqs(state, stats->litlens, 288); in RandomizeStatFreqs() 101 stats->litlens[256] = 1; /* End symbol. */ in RandomizeStatFreqs() 106 for (i = 0; i < 288; i++) stats->litlens[i] = 0; in ClearStatFreqs() 394 ZopfliCalculateEntropy(stats->litlens, 288, stats->ll_symbols); in CalculateStatistics() [all …]
|
D | deflate.c | 297 static void AddLZ77Data(const unsigned short* litlens, in AddLZ77Data() argument 310 unsigned litlen = litlens[i]; in AddLZ77Data() 350 const unsigned short* litlens, in CalculateBlockSymbolSize() argument 357 result += ll_lengths[litlens[i]]; in CalculateBlockSymbolSize() 359 result += ll_lengths[ZopfliGetLengthSymbol(litlens[i])]; in CalculateBlockSymbolSize() 361 result += ZopfliGetLengthExtraBits(litlens[i]); in CalculateBlockSymbolSize() 473 static void GetDynamicLengths(const unsigned short* litlens, in GetDynamicLengths() argument 480 ZopfliLZ77Counts(litlens, dists, lstart, lend, ll_counts, d_counts); in GetDynamicLengths() 488 double ZopfliCalculateBlockSize(const unsigned short* litlens, in ZopfliCalculateBlockSize() argument 501 GetDynamicLengths(litlens, dists, lstart, lend, ll_lengths, d_lengths); in ZopfliCalculateBlockSize() [all …]
|
D | lz77.c | 29 store->litlens = 0; in ZopfliInitLZ77Store() 34 free(store->litlens); in ZopfliCleanLZ77Store() 42 dest->litlens = in ZopfliCopyLZ77Store() 43 (unsigned short*)malloc(sizeof(*dest->litlens) * source->size); in ZopfliCopyLZ77Store() 46 if (!dest->litlens || !dest->dists) exit(-1); /* Allocation failed. */ in ZopfliCopyLZ77Store() 50 dest->litlens[i] = source->litlens[i]; in ZopfliCopyLZ77Store() 62 ZOPFLI_APPEND_DATA(length, &store->litlens, &store->size); in ZopfliStoreLitLenDist() 459 void ZopfliLZ77Counts(const unsigned short* litlens, in ZopfliLZ77Counts() argument 474 ll_count[litlens[i]]++; in ZopfliLZ77Counts() 476 ll_count[ZopfliGetLengthSymbol(litlens[i])]++; in ZopfliLZ77Counts()
|
D | lz77.h | 45 unsigned short* litlens; /* Lit or len. */ member 113 void ZopfliLZ77Counts(const unsigned short* litlens,
|
D | deflate.h | 78 double ZopfliCalculateBlockSize(const unsigned short* litlens,
|
D | blocksplitter.h | 45 const unsigned short* litlens,
|