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.c418 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision()
422 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision()
426 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision()
439 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision()
829 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
830 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis()
846 …X32(-QCONST16(2.f, 8), MIN32(QCONST16(2.f, 8), SHR32(diff+QCONST16(1.f, DB_SHIFT),DB_SHIFT-8)/6 )); in alloc_trim_analysis()
847 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis()
979 maxDepth=-QCONST16(31.9f, DB_SHIFT); in dynalloc_analysis()
984 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_analysis()
[all …]
Dmathops.h207 static const opus_val16 C[5] = {-6801+(1<<(13-DB_SHIFT)), 15746, -5217, 2545, -1401}; in celt_log2()
213 return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT); in celt_log2()
Dcelt_decoder.c524 decay = loss_count==0 ? QCONST16(1.5f, DB_SHIFT) : QCONST16(.5f, DB_SHIFT); in celt_decode_lost()
1071 oldBandE[i] = -QCONST16(28.f,DB_SHIFT);
1115 max_background_increase = M*QCONST16(0.001f,DB_SHIFT);
1117 max_background_increase = QCONST16(1.f,DB_SHIFT);
1129 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
1134 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT);
1275 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT);
Darch.h119 #define DB_SHIFT 10 macro
Dbands.c233 shift = 16-(lg>>DB_SHIFT); in denormalise_bands()
240 g = celt_exp2_frac(lg&((1<<DB_SHIFT)-1)); in denormalise_bands()
/external/libopus/src/
Dopus_multistream_encoder.c224 …QCONST16(0.5000000f, DB_SHIFT), QCONST16(0.2924813f, DB_SHIFT), QCONST16(0.1609640f, DB_SHIFT), QC… in logSum()
225 …QCONST16(0.0437314f, DB_SHIFT), QCONST16(0.0221971f, DB_SHIFT), QCONST16(0.0111839f, DB_SHIFT), QC… in logSum()
226 QCONST16(0.0028123f, DB_SHIFT) in logSum()
237 if (!(diff < QCONST16(8.f, DB_SHIFT))) /* inverted to catch NaNs */ in logSum()
240 low = SHR32(diff, DB_SHIFT-1); in logSum()
241 frac = SHL16(diff - SHL16(low, DB_SHIFT-1), 16-DB_SHIFT); in logSum()
291 maskLogE[c][i] = -QCONST16(28.f, DB_SHIFT); in surround_analysis()
337 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis()
339 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); in surround_analysis()
352 maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis()
[all …]
Dopus_encoder.c1713 QCONST16(.5f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in opus_encode_native()
1721 masking_depth += QCONST16(.2f, DB_SHIFT); in opus_encode_native()
1722 rate_offset = (opus_int32)PSHR32(MULT16_16(srate, masking_depth), DB_SHIFT); in opus_encode_native()