Searched refs:color_cache (Results 1 – 5 of 5) sorted by relevance
23 int VP8LColorCacheInit(VP8LColorCache* const color_cache, int hash_bits) { in VP8LColorCacheInit() argument25 assert(color_cache != NULL); in VP8LColorCacheInit()27 color_cache->colors_ = (uint32_t*)WebPSafeCalloc( in VP8LColorCacheInit()28 (uint64_t)hash_size, sizeof(*color_cache->colors_)); in VP8LColorCacheInit()29 if (color_cache->colors_ == NULL) return 0; in VP8LColorCacheInit()30 color_cache->hash_shift_ = 32 - hash_bits; in VP8LColorCacheInit()31 color_cache->hash_bits_ = hash_bits; in VP8LColorCacheInit()35 void VP8LColorCacheClear(VP8LColorCache* const color_cache) { in VP8LColorCacheClear() argument36 if (color_cache != NULL) { in VP8LColorCacheClear()37 WebPSafeFree(color_cache->colors_); in VP8LColorCacheClear()[all …]
75 int VP8LColorCacheInit(VP8LColorCache* const color_cache, int hash_bits);81 void VP8LColorCacheClear(VP8LColorCache* const color_cache);
181 uint32_t *color_cache; /* color cache data */ member223 av_free(img->color_cache); in image_ctx_free()546 img->color_cache[cache_idx] = c; in color_cache_put()584 img->color_cache = av_mallocz_array(1 << img->color_cache_bits, in decode_entropy_coded_image()585 sizeof(*img->color_cache)); in decode_entropy_coded_image()586 if (!img->color_cache) in decode_entropy_coded_image()741 AV_WB32(p, img->color_cache[cache_idx]); in decode_entropy_coded_image()
1132 VP8LColorCache* const color_cache = in DecodeImageData() local1189 if (color_cache != NULL) { in DecodeImageData()1191 VP8LColorCacheInsert(color_cache, *last_cached++); in DecodeImageData()1225 if (color_cache != NULL) { in DecodeImageData()1227 VP8LColorCacheInsert(color_cache, *last_cached++); in DecodeImageData()1232 assert(color_cache != NULL); in DecodeImageData()1234 VP8LColorCacheInsert(color_cache, *last_cached++); in DecodeImageData()1236 *src = VP8LColorCacheLookup(color_cache, key); in DecodeImageData()
3407 02201c35 Merge "remove one malloc() by making color_cache non dynamic" into 0.2.03411 7f0c178e remove one malloc() by making color_cache non dynamic3810 337914a0 add utils/color_cache.[hc] from experimental