Home | History | Annotate | Download | only in enc

Lines Matching defs:hashers

393                                          VP8LColorCache* const hashers,
397 const uint32_t key = VP8LColorCacheGetIndex(hashers, pixel);
398 if (VP8LColorCacheLookup(hashers, key) == pixel) {
402 VP8LColorCacheSet(hashers, key, pixel);
416 VP8LColorCache hashers;
418 if (use_color_cache && !VP8LColorCacheInit(&hashers, cache_bits)) {
423 AddSingleLiteral(argb[0], use_color_cache, &hashers, refs);
440 VP8LColorCacheInsert(&hashers, argb[i + k]);
445 hashers, refs);
449 if (use_color_cache) VP8LColorCacheClear(&hashers);
463 VP8LColorCache hashers;
466 cc_init = VP8LColorCacheInit(&hashers, cache_bits);
505 AddSingleLiteral(argb[i], use_color_cache, &hashers, refs);
509 for (j = i; j < i + len; ++j) VP8LColorCacheInsert(&hashers, argb[j]);
517 if (cc_init) VP8LColorCacheClear(&hashers);
701 VP8LColorCache hashers[MAX_COLOR_CACHE_BITS + 1];
719 cc_init[i] = VP8LColorCacheInit(&hashers[i], i);
743 if (VP8LColorCacheLookup(&hashers[i], key) == pix) {
746 VP8LColorCacheSet(&hashers[i], key, pix);
766 hashers[i].colors_[key] = *argb;
786 if (cc_init[i]) VP8LColorCacheClear(&hashers[i]);
797 VP8LColorCache hashers;
799 if (!VP8LColorCacheInit(&hashers, cache_bits)) return 0;
805 const int ix = VP8LColorCacheContains(&hashers, argb_literal);
807 // hashers contains argb_literal
810 VP8LColorCacheInsert(&hashers, argb_literal);
818 VP8LColorCacheInsert(&hashers, argb[pixel_index++]);
823 VP8LColorCacheClear(&hashers);