Searched refs:BITRES (Results 1 – 7 of 7) sorted by relevance
/external/libopus/celt/ |
D | rate.c | 135 get_required_bits(tmp, entryN[i], get_pulses(entryK[i]), BITRES); in compute_pulse_cache() 155 max_bits = C*(1+MAX_FINE_BITS)<<BITRES; in compute_pulse_cache() 192 offset = ((m->logN[j]+((LM0+k)<<BITRES))>>1)-QTHETA_OFFSET; in compute_pulse_cache() 208 … offset = ((m->logN[j]+(i<<BITRES))>>1)-(N==2?QTHETA_OFFSET_TWOPHASE:QTHETA_OFFSET); in compute_pulse_cache() 223 offset = ((m->logN[j] + (i<<BITRES))>>1)-FINE_OFFSET; in compute_pulse_cache() 226 offset += 1<<BITRES>>2; in compute_pulse_cache() 230 den = (ndof-1)<<BITRES; in compute_pulse_cache() 233 max_bits += C*qb<<BITRES; in compute_pulse_cache() 265 alloc_floor = C<<BITRES; in interp_bits2pulses() 268 logM = LM<<BITRES; in interp_bits2pulses() [all …]
|
D | entcode.c | 77 nbits=_this->nbits_total<<BITRES; in ec_tell_frac() 103 nbits=_this->nbits_total<<BITRES; in ec_tell_frac() 106 for(i=BITRES;i-->0;){ in ec_tell_frac()
|
D | celt_encoder.c | 1134 boost_bits = boost*width<<BITRES; in dynalloc_analysis() 1137 boost_bits = (boost*width<<BITRES)/8; in dynalloc_analysis() 1140 boost_bits = boost*6<<BITRES; in dynalloc_analysis() 1144 && (tot_boost+boost_bits)>>BITRES>>3 > 2*effectiveBytes/3) in dynalloc_analysis() 1146 opus_int32 cap = ((2*effectiveBytes/3)<<BITRES<<3); in dynalloc_analysis() 1325 target -= (opus_int32)((coded_bins<<BITRES)*(.4f-analysis->activity)); in compute_vbr() 1340 … SHR32(MULT16_16(stereo_saving-QCONST16(0.1f,8),(coded_stereo_dof<<BITRES)),8)); in compute_vbr() 1357 tonal_target = target + (opus_int32)((coded_bins<<BITRES)*1.2f*tonal); in compute_vbr() 1359 tonal_target += (opus_int32)((coded_bins<<BITRES)*.8f); in compute_vbr() 1370 …ound_target = target + (opus_int32)SHR32(MULT16_16(surround_masking,coded_bins<<BITRES), DB_SHIFT); in compute_vbr() [all …]
|
D | bands.c | 111 int shift = celt_ilog2(maxval) - 14 + (((m->logN[i]>>BITRES)+LM+1)>>1); in compute_band_energies() 289 thresh32 = SHR32(celt_exp2(-SHL16(depth, 10-BITRES)),1); in anti_collapse() 659 qb = IMIN(b-pulse_cap-(4<<BITRES), qb); in compute_qn() 661 qb = IMIN(8<<BITRES, qb); in compute_qn() 663 if (qb<(1<<BITRES>>1)) { in compute_qn() 666 qn = exp2_table8[qb&0x7]>>(14-(qb>>BITRES)); in compute_qn() 729 pulse_cap = m->logN[i]+LM*(1<<BITRES); in compute_theta() 861 if (*b>2<<BITRES && ctx->remaining_bits > 2<<BITRES) in compute_theta() 919 if (ctx->remaining_bits>=1<<BITRES) in quant_band_n1() 928 ctx->remaining_bits -= 1<<BITRES; in quant_band_n1() [all …]
|
D | celt_decoder.c | 1021 total_bits<<=BITRES; 1031 quanta = IMIN(width<<BITRES, IMAX(6<<BITRES, width)); 1034 while (tell+(dynalloc_loop_logp<<BITRES) < total_bits && boost < cap[i]) 1052 alloc_trim = tell+(6<<BITRES) <= total_bits ? 1055 bits = (((opus_int32)len*8)<<BITRES) - ec_tell_frac(dec) - 1; 1056 anti_collapse_rsv = isTransient&&LM>=2&&bits>=((LM+2)<<BITRES) ? (1<<BITRES) : 0; 1085 len*(8<<BITRES)-anti_collapse_rsv, balance, dec, LM, codedBands, &st->rng, 0,
|
D | entcode.h | 57 # define BITRES 3 macro
|
D | modes.c | 388 logN[i] = log2_frac(mode->eBands[i+1]-mode->eBands[i], BITRES); in opus_custom_mode_create()
|