Lines Matching defs:cache
53 static inline int celt_bits2pulses(const uint8_t *cache, int bits)
55 // TODO: Find the size of cache and make it into an array in the parameters list
58 high = cache[0];
63 if (cache[center] >= bits)
69 return (bits - (low == 0 ? -1 : cache[low]) <= cache[high] - bits) ? low : high;
72 static inline int celt_pulses2bits(const uint8_t *cache, int pulses)
74 // TODO: Find the size of cache and make it into an array in the parameters list
75 return (pulses == 0) ? 0 : cache[pulses] + 1;
494 const uint8_t *cache;
572 cache = ff_celt_cache_bits +
574 if (!stereo && duration >= 0 && b > cache[cache[0]] + 12 && N > 2) {
790 uint32_t q = celt_bits2pulses(cache, b);
791 uint32_t curr_bits = celt_pulses2bits(cache, q);
797 curr_bits = celt_pulses2bits(cache, --q);