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.c390 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
394 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
398 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
411 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
795 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
796 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
812 …X16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHIFT-8)/6 )); in alloc_trim_analysis()
813 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis()
945 maxDepth=-QCONST16(31.9f, DB_SHIFT); in dynalloc_analysis()
950 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_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.c474 decay = loss_count==0 ? QCONST16(1.5f, DB_SHIFT) : QCONST16(.5f, DB_SHIFT); in celt_decode_lost()
999 oldBandE[i] = -QCONST16(28.f,DB_SHIFT);
1043 max_background_increase = M*QCONST16(0.001f,DB_SHIFT);
1045 max_background_increase = QCONST16(1.f,DB_SHIFT);
1057 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
1062 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
1203 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT);
Darch.h107 #define DB_SHIFT 10 macro
Dbands.c232 shift = 16-(lg>>DB_SHIFT); in denormalise_bands()
239 g = celt_exp2_frac(lg&((1<<DB_SHIFT)-1)); in denormalise_bands()
/external/libopus/src/
Dopus_multistream_encoder.c202 …QCONST16(0.5000000f, DB_SHIFT), QCONST16(0.2924813f, DB_SHIFT), QCONST16(0.1609640f, DB_SHIFT), QC… in logSum()
203 …QCONST16(0.0437314f, DB_SHIFT), QCONST16(0.0221971f, DB_SHIFT), QCONST16(0.0111839f, DB_SHIFT), QC… in logSum()
204 QCONST16(0.0028123f, DB_SHIFT) in logSum()
215 if (!(diff < QCONST16(8.f, DB_SHIFT))) /* inverted to catch NaNs */ in logSum()
218 low = SHR32(diff, DB_SHIFT-1); in logSum()
219 frac = SHL16(diff - SHL16(low, DB_SHIFT-1), 16-DB_SHIFT); in logSum()
267 maskLogE[c][i] = -QCONST16(28.f, DB_SHIFT); in surround_analysis()
302 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis()
304 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); in surround_analysis()
317 maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis()
[all …]
Dopus_encoder.c1556 QCONST16(.5f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in opus_encode_native()
1564 masking_depth += QCONST16(.2f, DB_SHIFT); in opus_encode_native()
1565 rate_offset = (opus_int32)PSHR32(MULT16_16(srate, masking_depth), DB_SHIFT); in opus_encode_native()