Lines Matching refs:hashers
425 VP8LColorCache* const hashers, in AddSingleLiteral() argument
429 const uint32_t key = VP8LColorCacheGetIndex(hashers, pixel); in AddSingleLiteral()
430 if (VP8LColorCacheLookup(hashers, key) == pixel) { in AddSingleLiteral()
434 VP8LColorCacheSet(hashers, key, pixel); in AddSingleLiteral()
448 VP8LColorCache hashers; in BackwardReferencesRle() local
450 if (use_color_cache && !VP8LColorCacheInit(&hashers, cache_bits)) { in BackwardReferencesRle()
455 AddSingleLiteral(argb[0], use_color_cache, &hashers, refs); in BackwardReferencesRle()
472 VP8LColorCacheInsert(&hashers, argb[i + k]); in BackwardReferencesRle()
477 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs); in BackwardReferencesRle()
481 if (use_color_cache) VP8LColorCacheClear(&hashers); in BackwardReferencesRle()
495 VP8LColorCache hashers; in BackwardReferencesLz77() local
498 cc_init = VP8LColorCacheInit(&hashers, cache_bits); in BackwardReferencesLz77()
537 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs); in BackwardReferencesLz77()
541 for (j = i; j < i + len; ++j) VP8LColorCacheInsert(&hashers, argb[j]); in BackwardReferencesLz77()
549 if (cc_init) VP8LColorCacheClear(&hashers); in BackwardReferencesLz77()
733 VP8LColorCache hashers[MAX_COLOR_CACHE_BITS + 1]; in CalculateBestCacheSize() local
752 cc_init[i] = VP8LColorCacheInit(&hashers[i], i); in CalculateBestCacheSize()
776 if (VP8LColorCacheLookup(&hashers[i], key) == pix) { in CalculateBestCacheSize()
779 VP8LColorCacheSet(&hashers[i], key, pix); in CalculateBestCacheSize()
805 hashers[i].colors_[key] = *argb; in CalculateBestCacheSize()
825 if (cc_init[i]) VP8LColorCacheClear(&hashers[i]); in CalculateBestCacheSize()
836 VP8LColorCache hashers; in BackwardRefsWithLocalCache() local
838 if (!VP8LColorCacheInit(&hashers, cache_bits)) return 0; in BackwardRefsWithLocalCache()
844 const int ix = VP8LColorCacheContains(&hashers, argb_literal); in BackwardRefsWithLocalCache()
849 VP8LColorCacheInsert(&hashers, argb_literal); in BackwardRefsWithLocalCache()
857 VP8LColorCacheInsert(&hashers, argb[pixel_index++]); in BackwardRefsWithLocalCache()
862 VP8LColorCacheClear(&hashers); in BackwardRefsWithLocalCache()