Searched refs:DB_SHIFT (Results 1 – 8 of 8) sorted by relevance
/external/libopus/celt/ |
D | quant_bands.c | 153 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 …]
|
D | celt_encoder.c | 424 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), oldE[i]); in patch_transient_decision() 428 spread_old[i] = MAX16(spread_old[i-1]-QCONST16(1.0f, DB_SHIFT), in patch_transient_decision() 432 spread_old[i] = MAX16(spread_old[i], spread_old[i+1]-QCONST16(1.0f, DB_SHIFT)); in patch_transient_decision() 445 return mean_diff > QCONST16(1.f, DB_SHIFT); in patch_transient_decision() 835 logXC = PSHR32(logXC-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis() 836 logXC2 = PSHR32(logXC2-QCONST16(6.f, DB_SHIFT),DB_SHIFT-8); in alloc_trim_analysis() 852 …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() 853 trim -= SHR16(surround_trim, DB_SHIFT-8); in alloc_trim_analysis() 986 maxDepth=-QCONST16(31.9f, DB_SHIFT); in dynalloc_analysis() 991 noise_floor[i] = MULT16_16(QCONST16(0.0625f, DB_SHIFT),logN[i]) in dynalloc_analysis() [all …]
|
D | mathops.h | 207 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()
|
D | celt_decoder.c | 556 decay = loss_count==0 ? QCONST16(1.5f, DB_SHIFT) : QCONST16(.5f, DB_SHIFT); in celt_decode_lost() 1103 oldBandE[i] = -QCONST16(28.f,DB_SHIFT); 1147 max_background_increase = M*QCONST16(0.001f,DB_SHIFT); 1149 max_background_increase = QCONST16(1.f,DB_SHIFT); 1161 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); 1166 oldLogE[c*nbEBands+i]=oldLogE2[c*nbEBands+i]=-QCONST16(28.f,DB_SHIFT); 1307 oldLogE[i]=oldLogE2[i]=-QCONST16(28.f,DB_SHIFT);
|
D | arch.h | 138 #define DB_SHIFT 10 macro
|
D | bands.c | 233 shift = 16-(lg>>DB_SHIFT); in denormalise_bands() 240 g = celt_exp2_frac(lg&((1<<DB_SHIFT)-1)); in denormalise_bands()
|
/external/libopus/src/ |
D | opus_multistream_encoder.c | 193 …QCONST16(0.5000000f, DB_SHIFT), QCONST16(0.2924813f, DB_SHIFT), QCONST16(0.1609640f, DB_SHIFT), QC… in logSum() 194 …QCONST16(0.0437314f, DB_SHIFT), QCONST16(0.0221971f, DB_SHIFT), QCONST16(0.0111839f, DB_SHIFT), QC… in logSum() 195 QCONST16(0.0028123f, DB_SHIFT) in logSum() 206 if (!(diff < QCONST16(8.f, DB_SHIFT))) /* inverted to catch NaNs */ in logSum() 209 low = SHR32(diff, DB_SHIFT-1); in logSum() 210 frac = SHL16(diff - SHL16(low, DB_SHIFT-1), 16-DB_SHIFT); in logSum() 260 maskLogE[c][i] = -QCONST16(28.f, DB_SHIFT); in surround_analysis() 306 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i-1]-QCONST16(1.f, DB_SHIFT)); in surround_analysis() 308 bandLogE[21*c+i] = MAX16(bandLogE[21*c+i], bandLogE[21*c+i+1]-QCONST16(2.f, DB_SHIFT)); in surround_analysis() 321 maskLogE[0][i] = logSum(maskLogE[0][i], bandLogE[21*c+i]-QCONST16(.5f, DB_SHIFT)); in surround_analysis() [all …]
|
D | opus_encoder.c | 1729 QCONST16(.5f, DB_SHIFT)), -QCONST16(2.0f, DB_SHIFT)); in opus_encode_native() 1737 masking_depth += QCONST16(.2f, DB_SHIFT); in opus_encode_native() 1738 rate_offset = (opus_int32)PSHR32(MULT16_16(srate, masking_depth), DB_SHIFT); in opus_encode_native()
|