Searched refs:lmc (Results 1 – 7 of 7) sorted by relevance
/external/zopfli/src/zopfli/ |
D | cache.c | 28 void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache* lmc) { in ZopfliInitCache() argument 30 lmc->length = (unsigned short*)malloc(sizeof(unsigned short) * blocksize); in ZopfliInitCache() 31 lmc->dist = (unsigned short*)malloc(sizeof(unsigned short) * blocksize); in ZopfliInitCache() 33 lmc->sublen = (unsigned char*)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize); in ZopfliInitCache() 37 for (i = 0; i < blocksize; i++) lmc->length[i] = 1; in ZopfliInitCache() 38 for (i = 0; i < blocksize; i++) lmc->dist[i] = 0; in ZopfliInitCache() 39 for (i = 0; i < ZOPFLI_CACHE_LENGTH * blocksize * 3; i++) lmc->sublen[i] = 0; in ZopfliInitCache() 42 void ZopfliCleanCache(ZopfliLongestMatchCache* lmc) { in ZopfliCleanCache() argument 43 free(lmc->length); in ZopfliCleanCache() 44 free(lmc->dist); in ZopfliCleanCache() [all …]
|
D | lz77.c | 171 unsigned char cache_available = s->lmc && (s->lmc->length[lmcpos] == 0 || in TryGetFromLongestMatchCache() 172 s->lmc->dist[lmcpos] != 0); in TryGetFromLongestMatchCache() 174 (*limit == ZOPFLI_MAX_MATCH || s->lmc->length[lmcpos] <= *limit || in TryGetFromLongestMatchCache() 175 (sublen && ZopfliMaxCachedSublen(s->lmc, in TryGetFromLongestMatchCache() 176 lmcpos, s->lmc->length[lmcpos]) >= *limit)); in TryGetFromLongestMatchCache() 178 if (s->lmc && limit_ok_for_cache && cache_available) { in TryGetFromLongestMatchCache() 179 if (!sublen || s->lmc->length[lmcpos] in TryGetFromLongestMatchCache() 180 <= ZopfliMaxCachedSublen(s->lmc, lmcpos, s->lmc->length[lmcpos])) { in TryGetFromLongestMatchCache() 181 *length = s->lmc->length[lmcpos]; in TryGetFromLongestMatchCache() 184 ZopfliCacheToSublen(s->lmc, lmcpos, *length, sublen); in TryGetFromLongestMatchCache() [all …]
|
D | 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,
|
D | deflate.c | 602 s.lmc = (ZopfliLongestMatchCache*)malloc(sizeof(ZopfliLongestMatchCache)); in DeflateDynamicBlock() 603 ZopfliInitCache(blocksize, s.lmc); in DeflateDynamicBlock() 633 ZopfliCleanCache(s.lmc); in DeflateDynamicBlock() 634 free(s.lmc); in DeflateDynamicBlock() 654 s.lmc = (ZopfliLongestMatchCache*)malloc(sizeof(ZopfliLongestMatchCache)); in DeflateFixedBlock() 655 ZopfliInitCache(blocksize, s.lmc); in DeflateFixedBlock() 664 ZopfliCleanCache(s.lmc); in DeflateFixedBlock() 665 free(s.lmc); in DeflateFixedBlock() 782 s.lmc = (ZopfliLongestMatchCache*)malloc(sizeof(ZopfliLongestMatchCache)); in DeflateSplittingLast() 783 ZopfliInitCache(inend - instart, s.lmc); in DeflateSplittingLast() [all …]
|
D | lz77.h | 67 ZopfliLongestMatchCache* lmc; member
|
D | blocksplitter.c | 300 s.lmc = 0; in ZopfliBlockSplit()
|
/external/kernel-headers/original/uapi/rdma/ |
D | ib_user_verbs.h | 223 __u8 lmc; member
|