Home
last modified time | relevance | path

Searched refs:color_cache (Results 1 – 5 of 5) sorted by relevance

/third_party/skia/third_party/externals/libwebp/src/utils/
Dcolor_cache_utils.c23 int VP8LColorCacheInit(VP8LColorCache* const color_cache, int hash_bits) { in VP8LColorCacheInit() argument
25 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() argument
36 if (color_cache != NULL) { in VP8LColorCacheClear()
37 WebPSafeFree(color_cache->colors_); in VP8LColorCacheClear()
[all …]
Dcolor_cache_utils.h75 int VP8LColorCacheInit(VP8LColorCache* const color_cache, int hash_bits);
81 void VP8LColorCacheClear(VP8LColorCache* const color_cache);
/third_party/ffmpeg/libavcodec/
Dwebp.c181 uint32_t *color_cache; /* color cache data */ member
223 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()
/third_party/skia/third_party/externals/libwebp/src/dec/
Dvp8l_dec.c1132 VP8LColorCache* const color_cache = in DecodeImageData() local
1189 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()
/third_party/skia/third_party/externals/libwebp/
DChangeLog3407 02201c35 Merge "remove one malloc() by making color_cache non dynamic" into 0.2.0
3411 7f0c178e remove one malloc() by making color_cache non dynamic
3810 337914a0 add utils/color_cache.[hc] from experimental