/external/libopus/celt/ |
quant_bands.c | 153 return MIN32(200,SHR32(dist,2*DB_SHIFT-6)); 192 oldE = MAX16(-QCONST16(9.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]); 196 qi = (f+QCONST32(.5f,DB_SHIFT+7))>>(DB_SHIFT+7); 197 decay_bound = EXTRACT16(MAX32(-QCONST16(28.f,DB_SHIFT), 203 decay_bound = MAX16(-QCONST16(28.f,DB_SHIFT), oldEBands[i+c*m->nbEBands]) - max_decay; 209 qi += (int)SHR16(SUB16(decay_bound,x), DB_SHIFT); 246 error[i+c*m->nbEBands] = PSHR32(f,7) - SHL16(qi,DB_SHIFT); 248 q = (opus_val32)SHL32(EXTEND32(qi),DB_SHIFT); 252 tmp = MAX32(-QCONST32(28.f, DB_SHIFT+7), tmp) [all...] |
celt_encoder.c | 390 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); 394 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), 398 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); 411 return mean_diff > QCONST16(1.f, DB_SHIFT); 795 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); 796 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); 812 trim -= MAX16(-QCONST16(2.f, 8), MIN16(QCONST16(2.f, 8), SHR16(diff+QCONST16(1.f, DB_SHIFT),DB_SHIFT-8)/6 )) [all...] |
mathops.h | 175 static const opus_val16 C[5] = {-6801+(1<<(13-DB_SHIFT)), 15746, -5217, 2545, -1401}; 181 return SHL16(i-13,DB_SHIFT)+SHR16(frac,14-DB_SHIFT);
|
celt_decoder.c | 474 decay = loss_count==0 ? QCONST16(1.5f, DB_SHIFT) : QCONST16(.5f, DB_SHIFT); 999 oldBandE[i] = -QCONST16(28.f,DB_SHIFT); [all...] |
arch.h | 107 #define DB_SHIFT 10
|
bands.c | 232 shift = 16-(lg>>DB_SHIFT); 239 g = celt_exp2_frac(lg&((1<<DB_SHIFT)-1)); [all...] |
/external/libopus/src/ |
opus_multistream_encoder.c | 202 QCONST16(0.5000000f, DB_SHIFT), QCONST16(0.2924813f, DB_SHIFT), QCONST16(0.1609640f, DB_SHIFT), QCONST16(0.0849625f, DB_SHIFT), 203 QCONST16(0.0437314f, DB_SHIFT), QCONST16(0.0221971f, DB_SHIFT), QCONST16(0.0111839f, DB_SHIFT), QCONST16(0.0056136f, DB_SHIFT), 204 QCONST16(0.0028123f, DB_SHIFT) 215 if (!(diff < QCONST16(8.f, DB_SHIFT))) /* inverted to catch NaNs * [all...] |
opus_encoder.c | [all...] |