Home
last modified time | relevance | path

Searched refs:DB_SHIFT (Results 1 – 8 of 8) sorted by relevance

/external/libopus/celt/
Dquant_bands.c153 return MIN32(200,SHR32(dist,2*DB_SHIFT-6)); in loss_distortion()
192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); in quant_coarse_energy_impl()
196 qi = (f+QCONST32(.5f,DB_SHIFT+7))>>(DB_SHIFT+7); in quant_coarse_energy_impl()
197 decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT), in quant_coarse_energy_impl()
203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay; in quant_coarse_energy_impl()
209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT); in quant_coarse_energy_impl()
246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); in quant_coarse_energy_impl()
248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); in quant_coarse_energy_impl()
252 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp); in quant_coarse_energy_impl()
285 max_decay = QCONST16(16.f,DB_SHIFT); in quant_coarse_energy()
[all …]
Dcelt_encoder.c393 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
397 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
401 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
414 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
805 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
806 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
822 if (diff > QCONST16(2.f, DB_SHIFT)) in alloc_trim_analysis()
824 if (diff > QCONST16(8.f, DB_SHIFT)) in alloc_trim_analysis()
826 if (diff < -QCONST16(4.f, DB_SHIFT)) in alloc_trim_analysis()
828 if (diff < -QCONST16(10.f, DB_SHIFT)) in alloc_trim_analysis()
[all …]
Dmathops.h175 static const opus_val16 C[5] = {-6801+(1<<(13-DB_SHIFT)), 15746, -5217, 2545, -1401}; in celt_log2()
181 return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT); in celt_log2()
Dcelt_decoder.c396 QCONST16(1.5f, DB_SHIFT) : QCONST16(.5f, DB_SHIFT); in celt_decode_lost()
919 oldBandE[i] = -QCONST16(28.f,DB_SHIFT);
994 backgroundLogE[i] = MIN16(backgroundLogE[i] + M*QCONST16(0.001f,DB_SHIFT), oldBandE[i]);
1004 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
1009 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
1151 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT);
Darch.h101 #define DB_SHIFT 10 macro
Dbands.c221 shift = 16-(lg>>DB_SHIFT); in denormalise_bands()
228 g = celt_exp2_frac(lg&((1<<DB_SHIFT)-1)); in denormalise_bands()
/external/libopus/src/
Dopus_multistream_encoder.c189 …QCONST16(0.5000000f, DB_SHIFT), QCONST16(0.2924813f, DB_SHIFT), QCONST16(0.1609640f, DB_SHIFT), QC… in logSum()
190 …QCONST16(0.0437314f, DB_SHIFT), QCONST16(0.0221971f, DB_SHIFT), QCONST16(0.0111839f, DB_SHIFT), QC… in logSum()
191 QCONST16(0.0028123f, DB_SHIFT) in logSum()
202 if (diff >= QCONST16(8.f, DB_SHIFT)) in logSum()
205 low = SHR32(diff, DB_SHIFT-1); in logSum()
206 frac = SHL16(diff - SHL16(low, DB_SHIFT-1), 16-DB_SHIFT); in logSum()
253 maskLogE[c][i] = -QCONST16(28.f, DB_SHIFT); in surround_analysis()
274 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis()
276 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); in surround_analysis()
289 maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis()
[all …]
Dopus_encoder.c1516 QCONST16(.5f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in opus_encode_native()
1524 masking_depth += QCONST16(.2f, DB_SHIFT); in opus_encode_native()
1525 rate_offset = (opus_int32)PSHR32(MULT16_16(srate, masking_depth), DB_SHIFT); in opus_encode_native()