Lines Matching refs:cc
22 int VP8LColorCacheInit(VP8LColorCache* const cc, int hash_bits) {
24 assert(cc != NULL);
26 cc->colors_ = (uint32_t*)WebPSafeCalloc((uint64_t)hash_size,
27 sizeof(*cc->colors_));
28 if (cc->colors_ == NULL) return 0;
29 cc->hash_shift_ = 32 - hash_bits;
33 void VP8LColorCacheClear(VP8LColorCache* const cc) {
34 if (cc != NULL) {
35 WebPSafeFree(cc->colors_);
36 cc->colors_ = NULL;