/external/zopfli/src/zopfli/ |
H A D | lz77.h | 37 Parameter dists: Contains the distances. A value is 0 to indicate that there is 39 Parameter size: The size of both the litlens and dists arrays. 46 unsigned short* dists; /* If 0: indicates literal in corresponding litlens, member in struct:ZopfliLZ77Store 106 dists: ll77 distances 107 start: where to begin counting in litlens and dists 108 end: where to stop counting in litlens and dists (not inclusive) 114 const unsigned short* dists,
|
H A D | blocksplitter.c | 102 dists: ll77 distances 107 const unsigned short* dists, 109 return ZopfliCalculateBlockSize(litlens, dists, lstart, lend, 2); 114 const unsigned short* dists; member in struct:SplitCostContext 128 return EstimateCost(c->litlens, c->dists, c->start, i) + 129 EstimateCost(c->litlens, c->dists, i, c->end); 151 const unsigned short* dists, 162 size_t length = dists[i] == 0 ? 1 : litlens[i]; 220 const unsigned short* dists, 246 c.dists 106 EstimateCost(const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend) argument 150 PrintBlockSplitPoints(const unsigned short* litlens, const unsigned short* dists, size_t llsize, const size_t* lz77splitpoints, size_t nlz77points) argument 218 ZopfliBlockSplitLZ77(const ZopfliOptions* options, const unsigned short* litlens, const unsigned short* dists, size_t llsize, size_t maxblocks, size_t** splitpoints, size_t* npoints) argument [all...] |
H A D | lz77.c | 30 store->dists = 0; 35 free(store->dists); 44 dest->dists = (unsigned short*)malloc(sizeof(*dest->dists) * source->size); 46 if (!dest->litlens || !dest->dists) exit(-1); /* Allocation failed. */ 51 dest->dists[i] = source->dists[i]; 63 ZOPFLI_APPEND_DATA(dist, &store->dists, &size2); 460 const unsigned short* dists, 473 if (dists[ 459 ZopfliLZ77Counts(const unsigned short* litlens, const unsigned short* dists, size_t start, size_t end, size_t* ll_count, size_t* d_count) argument [all...] |
H A D | deflate.c | 298 const unsigned short* dists, 309 unsigned dist = dists[i]; 351 const unsigned short* dists, 356 if (dists[i] == 0) { 360 result += d_lengths[ZopfliGetDistSymbol(dists[i])]; 362 result += ZopfliGetDistExtraBits(dists[i]); 474 const unsigned short* dists, 480 ZopfliLZ77Counts(litlens, dists, lstart, lend, ll_counts, d_counts); 489 const unsigned short* dists, 501 GetDynamicLengths(litlens, dists, lstar 297 AddLZ77Data(const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend, size_t expected_data_size, const unsigned* ll_symbols, const unsigned* ll_lengths, const unsigned* d_symbols, const unsigned* d_lengths, unsigned char* bp, unsigned char** out, size_t* outsize) argument 348 CalculateBlockSymbolSize(const unsigned* ll_lengths, const unsigned* d_lengths, const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend) argument 473 GetDynamicLengths(const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend, unsigned* ll_lengths, unsigned* d_lengths) argument 488 ZopfliCalculateBlockSize(const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend, int btype) argument 528 AddLZ77Block(const ZopfliOptions* options, int btype, int final, const unsigned short* litlens, const unsigned short* dists, size_t lstart, size_t lend, size_t expected_data_size, unsigned char* bp, unsigned char** out, size_t* outsize) argument [all...] |
H A D | squeeze.c | 34 /* The 32 unique dist symbols, not the 32768 possible dists. */ 35 size_t dists[32]; member in struct:SymbolStats 44 memset(stats->dists, 0, 32 * sizeof(stats->dists[0])); 52 memcpy(dest->dists, source->dists, 32 * sizeof(dest->dists[0])); 69 result->dists[i] = 70 (size_t) (stats1->dists[i] * w1 + stats2->dists[ [all...] |
/external/zlib/src/contrib/puff/ |
H A D | puff.c | 449 static const short dists[30] = { /* Offset base for distance codes 0..29 */ local 483 dist = dists[symbol] + bits(s, dext[symbol]);
|