Home
last modified time | relevance | path

Searched refs:ZOPFLI_CACHE_LENGTH (Results 1 – 2 of 2) sorted by relevance

/external/zopfli/src/zopfli/
Dcache.c33 lmc->sublen = (unsigned char*)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize); in ZopfliInitCache()
39 for (i = 0; i < ZOPFLI_CACHE_LENGTH * blocksize * 3; i++) lmc->sublen[i] = 0; in ZopfliInitCache()
56 #if ZOPFLI_CACHE_LENGTH == 0 in ZopfliSublenToCache()
60 cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3]; in ZopfliSublenToCache()
69 if (j >= ZOPFLI_CACHE_LENGTH) break; in ZopfliSublenToCache()
72 if (j < ZOPFLI_CACHE_LENGTH) { in ZopfliSublenToCache()
74 cache[(ZOPFLI_CACHE_LENGTH - 1) * 3] = bestlength - 3; in ZopfliSublenToCache()
88 #if ZOPFLI_CACHE_LENGTH == 0 in ZopfliCacheToSublen()
92 cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3]; in ZopfliCacheToSublen()
93 for (j = 0; j < ZOPFLI_CACHE_LENGTH; j++) { in ZopfliCacheToSublen()
[all …]
Dutil.h70 #define ZOPFLI_CACHE_LENGTH 8 macro