Home
last modified time | relevance | path

Searched refs:fine_bits (Results 1 – 4 of 4) sorted by relevance

/third_party/ffmpeg/libavcodec/
Dopus.c865 int fine_bits; in ff_celt_bitalloc() local
887 fine_bits = (f->pulses[i] + offset + (dof << 2)) / (dof << 3); in ff_celt_bitalloc()
890 f->fine_bits[i] = av_clip(fine_bits, 0, max_bits); in ff_celt_bitalloc()
894 f->fine_priority[i] = (f->fine_bits[i] * (dof << 3) >= f->pulses[i] + offset); in ff_celt_bitalloc()
897 f->pulses[i] -= f->fine_bits[i] << (f->channels - 1) << 3; in ff_celt_bitalloc()
902 f->fine_bits[i] = 0; in ff_celt_bitalloc()
909 CELT_MAX_FINE_BITS - f->fine_bits[i]); in ff_celt_bitalloc()
910 f->fine_bits[i] += fineextra; in ff_celt_bitalloc()
921 f->fine_bits[i] = f->pulses[i] >> (f->channels - 1) >> 3; in ff_celt_bitalloc()
923 f->fine_priority[i] = f->fine_bits[i] < 1; in ff_celt_bitalloc()
Dopus_celt.c83 if (!f->fine_bits[i]) in celt_decode_fine_energy()
90 q2 = ff_opus_rc_get_raw(rc, f->fine_bits[i]); in celt_decode_fine_energy()
91 offset = (q2 + 0.5f) * (1 << (14 - f->fine_bits[i])) / 16384.0f - 0.5f; in celt_decode_fine_energy()
104 if (f->fine_priority[i] != priority || f->fine_bits[i] >= CELT_MAX_FINE_BITS) in celt_decode_final_energy()
111 offset = (q2 - 0.5f) * (1 << (14 - f->fine_bits[i] - 1)) / 16384.0f; in celt_decode_final_energy()
Dopusenc.c388 if (!f->fine_bits[i]) in celt_quant_fine()
392 int quant, lim = (1 << f->fine_bits[i]); in celt_quant_fine()
395 ff_opus_rc_put_raw(rc, quant, f->fine_bits[i]); in celt_quant_fine()
396 offset = 0.5f - ((quant + 0.5f) * (1 << (14 - f->fine_bits[i])) / 16384.0f); in celt_quant_fine()
406 if (f->fine_priority[i] != priority || f->fine_bits[i] >= CELT_MAX_FINE_BITS) in celt_quant_final()
411 const float offset = 0.5f * (1 << (14 - f->fine_bits[i] - 1)) / 16384.0f; in celt_quant_final()
Dopus_celt.h137 int fine_bits [CELT_MAX_BANDS]; member