HomeSort by: relevance | last modified time | path
    Searched refs:lmc (Results 1 - 6 of 6) sorted by relevancy

  /src/external/zlib/pigz/dist/zopfli/
cache.h 46 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc);
49 void ZopfliCleanCache(ZopfliLongestMatchCache* lmc);
54 ZopfliLongestMatchCache* lmc);
57 void ZopfliCacheToSublen(const ZopfliLongestMatchCache* lmc,
61 unsigned ZopfliMaxCachedSublen(const ZopfliLongestMatchCache* lmc,
cache.c 28 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc) {
30 lmc->length = (unsigned short*)malloc(sizeof(unsigned short) * blocksize);
31 lmc->dist = (unsigned short*)malloc(sizeof(unsigned short) * blocksize);
33 lmc->sublen = (unsigned char*)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize);
37 for (i = 0; i < blocksize; i++) lmc->length[i] = 1;
38 for (i = 0; i < blocksize; i++) lmc->dist[i] = 0;
39 for (i = 0; i < ZOPFLI_CACHE_LENGTH * blocksize * 3; i++) lmc->sublen[i] = 0;
42 void ZopfliCleanCache(ZopfliLongestMatchCache* lmc) {
43 free(lmc->length);
44 free(lmc->dist)
    [all...]
lz77.c 151 /* The LMC cache starts at the beginning of the block rather than the
157 unsigned char cache_available = s->lmc && (s->lmc->length[lmcpos] == 0 ||
158 s->lmc->dist[lmcpos] != 0);
160 (*limit == ZOPFLI_MAX_MATCH || s->lmc->length[lmcpos] <= *limit ||
161 (sublen && ZopfliMaxCachedSublen(s->lmc,
162 lmcpos, s->lmc->length[lmcpos]) >= *limit));
164 if (s->lmc && limit_ok_for_cache && cache_available) {
165 if (!sublen || s->lmc->length[lmcpos]
166 <= ZopfliMaxCachedSublen(s->lmc, lmcpos, s->lmc->length[lmcpos]))
    [all...]
lz77.h 64 ZopfliLongestMatchCache* lmc; member in struct:ZopfliBlockState
deflate.c 448 s.lmc = (ZopfliLongestMatchCache*)malloc(sizeof(ZopfliLongestMatchCache));
449 ZopfliInitCache(blocksize, s.lmc);
479 ZopfliCleanCache(s.lmc);
480 free(s.lmc);
500 s.lmc = (ZopfliLongestMatchCache*)malloc(sizeof(ZopfliLongestMatchCache));
501 ZopfliInitCache(blocksize, s.lmc);
510 ZopfliCleanCache(s.lmc);
511 free(s.lmc);
628 s.lmc = (ZopfliLongestMatchCache*)malloc(sizeof(ZopfliLongestMatchCache));
629 ZopfliInitCache(inend - instart, s.lmc);
    [all...]
blocksplitter.c 302 s.lmc = 0;

Completed in 21 milliseconds