/external/chromium_org/third_party/opus/src/silk/ |
sum_sqr_shift.c | 44 opus_int32 nrg_tmp, nrg; local 46 nrg = 0; 50 nrg = silk_SMLABB_ovflw( nrg, x[ i ], x[ i ] ); 51 nrg = silk_SMLABB_ovflw( nrg, x[ i + 1 ], x[ i + 1 ] ); 52 if( nrg < 0 ) { 54 nrg = (opus_int32)silk_RSHIFT_uint( (opus_uint32)nrg, 2 ); 62 nrg = (opus_int32)silk_ADD_RSHIFT_uint( nrg, (opus_uint32)nrg_tmp, shft ) [all...] |
VAD.c | 305 opus_int32 nl, nrg, inv_nrg; local 321 nrg = silk_ADD_POS_SAT32( pX[ k ], psSilk_VAD->NoiseLevelBias[ k ] ); 322 silk_assert( nrg > 0 ); 325 inv_nrg = silk_DIV32( silk_int32_MAX, nrg ); 329 if( nrg > silk_LSHIFT( nl, 3 ) ) { 331 } else if( nrg < nl ) {
|
/external/chromium_org/third_party/opus/src/silk/float/ |
levinsondurbin_FLP.c | 42 silk_float min_nrg, nrg, t, km, Atmp1, Atmp2; local 45 nrg = corr[ 0 ]; 46 nrg = silk_max_float(min_nrg, nrg); 47 A[ 0 ] = corr[ 1 ] / nrg; 48 nrg -= A[ 0 ] * corr[ 1 ]; 49 nrg = silk_max_float(min_nrg, nrg); 59 km = t / nrg; 62 nrg -= km * t [all...] |
residual_energy_FLP.c | 37 /* Residual energy: nrg = wxx - 2 * wXx * c + c' * wXX * c */ 47 silk_float tmp, nrg = 0.0f, regularization; local 54 nrg = wxx; 60 nrg -= 2.0f * tmp; 68 nrg += c[ i ] * ( 2.0f * tmp + matrix_c_ptr( wXX, i, i, D ) * c[ i ] ); 70 if( nrg > 0 ) { 82 silk_assert( nrg == 0 ); 83 nrg = 1.0f; 86 return nrg;
|
find_LTP_FLP.c | 51 silk_float w[ MAX_NB_SUBFR ], nrg[ MAX_NB_SUBFR ], regu; local 73 nrg[ k ] = silk_residual_energy_covar_FLP( b_ptr, WLTP_ptr, Rr, rr[ k ], LTP_ORDER ); 75 temp = Wght[ k ] / ( nrg[ k ] * Wght[ k ] + 0.01f * subfr_length ); 90 LPC_LTP_res_nrg += nrg[ k ] * Wght[ k ];
|
noise_shape_analysis_FLP.c | 138 silk_float nrg, pre_nrg, log_energy, log_energy_prev, energy_variation; local 187 nrg = ( silk_float )nSamples + ( silk_float )silk_energy_FLP( pitch_res_ptr, nSamples ); 188 log_energy = silk_log2( nrg ); 258 nrg = silk_levinsondurbin_FLP( &psEncCtrl->AR2[ k * MAX_SHAPE_LPC_ORDER ], auto_corr, psEnc->sCmn.shapingLPCOrder ); 259 psEncCtrl->Gains[ k ] = ( silk_float )sqrt( nrg ); 280 nrg = silk_LPC_inverse_pred_gain_FLP( &psEncCtrl->AR1[ k * MAX_SHAPE_LPC_ORDER ], psEnc->sCmn.shapingLPCOrder ); 281 psEncCtrl->GainsPre[ k ] = 1.0f - 0.7f * ( 1.0f - pre_nrg / nrg );
|
/external/chromium_org/third_party/opus/src/silk/fixed/ |
residual_energy16_FIX.c | 34 /* Residual energy: nrg = wxx - 2 * wXx * c + c' * wXX * c */ 45 opus_int32 c_max, w_max, tmp, tmp2, nrg; local 78 nrg = silk_RSHIFT( wxx, 1 + lshifts ) - tmp; /* Q: -lshifts - 1 */ 91 nrg = silk_ADD_LSHIFT32( nrg, tmp2, lshifts ); /* Q: -lshifts - 1 */ 94 if( nrg < 1 ) { 95 nrg = 1; 96 } else if( nrg > silk_RSHIFT( silk_int32_MAX, lshifts + 2 ) ) { 97 nrg = silk_int32_MAX >> 1; 99 nrg = silk_LSHIFT( nrg, lshifts + 1 ); /* Q0 * [all...] |
burg_modified_FIX.c | 57 opus_int32 C0, num, nrg, rc_Q31, invGain_Q30, Atmp_QA, Atmp1, tmp1, tmp2, x1, x2; local 174 nrg = silk_ADD32( CAb[ 0 ], CAf[ 0 ] ); /* Q( 1-rshifts ) */ 184 nrg = silk_ADD_LSHIFT32( nrg, silk_SMMUL( silk_ADD32( CAb[ k + 1 ], CAf[ k + 1 ] ), 193 if( silk_abs( num ) < nrg ) { 194 rc_Q31 = silk_DIV32_varQ( num, nrg, 31 ); 267 nrg = CAf[ 0 ]; /* Q( -rshifts ) */ 271 nrg = silk_SMLAWW( nrg, CAf[ k + 1 ], Atmp1 ); /* Q( -rshifts ) */ 275 *res_nrg = silk_SMLAWW( nrg, silk_SMMUL( SILK_FIX_CONST( FIND_LPC_COND_FAC, 32 ), C0 ), -tmp1 );/* Q( -rshifts ) * [all...] |
find_LTP_FIX.c | 62 opus_int32 b_Q16[ LTP_ORDER ], delta_b_Q14[ LTP_ORDER ], d_Q14[ MAX_NB_SUBFR ], nrg[ MAX_NB_SUBFR ], g_Q26; local 108 nrg[ k ] = silk_residual_energy16_covar_FIX( b_Q14_ptr, WLTP_ptr, Rr, rr[ k ], LTP_ORDER, 14 ); /* nrg_fix in Q( -corr_rshifts[ k ] ) */ 110 /* temp = Wght[ k ] / ( nrg[ k ] * Wght[ k ] + 0.01f * subfr_length ); */ 112 denom32 = silk_LSHIFT_SAT32( silk_SMULWB( nrg[ k ], Wght_Q15[ k ] ), 1 + extra_shifts ) + /* Q( -corr_rshifts[ k ] + extra_shifts ) */ 152 LPC_LTP_res_nrg = silk_ADD32( LPC_LTP_res_nrg, silk_RSHIFT( silk_ADD32( silk_SMULWB( nrg[ k ], Wght_Q15[ k ] ), 1 ), 1 + ( maxRshifts - corr_rshifts[ k ] ) ) ); /* Q( -maxRshifts ) */
|
noise_shape_analysis_FIX.c | 154 opus_int32 nrg, pre_nrg_Q30, log_energy_Q7, log_energy_prev_Q7, energy_variation_Q7; local 214 silk_sum_sqr_shift( &nrg, &scale, pitch_res_ptr, nSamples ); 215 nrg += silk_RSHIFT( nSamples, scale ); /* Q(-scale)*/ 217 log_energy_Q7 = silk_lin2log( nrg ); 292 nrg = silk_schur64( refl_coef_Q16, auto_corr, psEnc->sCmn.shapingLPCOrder ); 293 silk_assert( nrg >= 0 ); 305 nrg >>= 1; 308 tmp32 = silk_SQRT_APPROX( nrg ); 336 nrg = silk_LPC_inverse_pred_gain_Q24( AR1_Q24, psEnc->sCmn.shapingLPCOrder ); 338 /*psEncCtrl->GainsPre[ k ] = 1.0f - 0.7f * ( 1.0f - pre_nrg / nrg ) = 0.3f + 0.7f * pre_nrg / nrg;* [all...] |
/external/aac/libAACenc/src/ |
aacenc_pns.cpp | 209 noiseNrg[sfb] = NO_NOISE_PNS; /* clear nrg's of previous frame */ 404 INT nrg = (-sfbEnergyLdData[sfb]+FL2FXCONST_DBL(0.5f/64.0f))>>(DFRACT_BITS-1-7); local 405 noiseNrg[sfb] = tmp - nrg;
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
line_pe.c | 96 Word32 nrg = sfbEnergy[sfbGrp+sfb]; local 100 if (nrg > thres) {
|
/external/aac/libSBRenc/src/ |
invf_est.cpp | 111 4, /* Number of borders Nrg. */ 140 4, /* Number of borders Nrg. */ 368 FIXP_DBL nrg; local 374 nrg = (fMultDiv2(FL2FXCONST_DBL(2.f*0.375f), (FIXP_DBL)(CalcLdData(detectorValues->avgNrg+(FIXP_DBL)1) + FL2FXCONST_DBL(0.0625f) + FL2FXCONST_DBL(0.6875f)))) << 0; /* scaled by 1/2^8; 2^44 -> qmf energy scale */ 391 regionNrg = findRegion(nrg,nrgBorders,numRegionsNrg);
|
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
lpc_analysis.c | 117 double nrg[4], chng, pg; local 123 nrg[0] = 0.0001; 125 nrg[0] += input[k]*input[k]; 127 nrg[1] = 0.0001; 129 nrg[1] += input[k]*input[k]; 131 nrg[2] = 0.0001; 133 nrg[2] += input[k]*input[k]; 135 nrg[3] = 0.0001; 137 nrg[3] += input[k]*input[k]; 141 chng = 0.25 * (fabs(10.0 * log10(nrg[3] / nrg[2])) 171 double nrg[4], chng; local [all...] |
entropy_coding.c | 408 WebRtc_Word32 nrg, res; local 533 nrg = 0; 536 nrg += (ARCoefQ12[j] * ((CorrQ7_norm[j - n] * ARCoefQ12[n] + 256) >> 9) + 540 nrg += (ARCoefQ12[j] * ((CorrQ7_norm[n - j] * ARCoefQ12[n] + 256) >> 9) + 545 nrg_u32 = (WebRtc_UWord32)nrg; 552 nrg = 0x7FFFFFFF; 554 nrg = (WebRtc_Word32)nrg_u32; 557 gain2_Q10 = WebRtcSpl_DivResultInQ31(FRAMESAMPLES_QUARTER, nrg); [all...] |
/external/webrtc/src/modules/audio_processing/agc/ |
analog_agc.c | 116 WebRtc_Word32 nrg, max_nrg, sample, tmp32; local 281 nrg = WEBRTC_SPL_MUL_16_16(in_mic[i * L + n], in_mic[i * L + n]); 282 if (nrg > max_nrg) 284 max_nrg = nrg; 405 WebRtc_UWord32 nrg; local 433 nrg = WEBRTC_SPL_MUL_16_16(in_near[sampleCntr], in_near[sampleCntr]); 434 frameNrg += nrg; [all...] |
digital_agc.c | 313 WebRtc_Word32 nrg, max_nrg; local 417 nrg = WEBRTC_SPL_MUL_16_16(out[k * L + n], out[k * L + n]); 418 if (nrg > max_nrg) 420 max_nrg = nrg; 668 WebRtc_Word32 out, nrg, tmp32, tmp32b; local 677 nrg = 0; 706 nrg += WEBRTC_SPL_RSHIFT_W32(tmp32, 6); 712 if (!(0xFFFF0000 & nrg)) 719 if (!(0xFF000000 & (nrg << zeros))) 723 if (!(0xF0000000 & (nrg << zeros)) [all...] |
/external/aac/libSBRdec/src/ |
psdec.cpp | 595 FIXP_DBL peakDiff, nrg, transRatio; local 687 nrg = h_ps_d->specificTo.mpeg.aPrevNrgBin[bin] + fMult( INT_FILTER_COEFF, aaPowerSlot[bin] - h_ps_d->specificTo.mpeg.aPrevNrgBin[bin] ); 691 nrg = fixMax(nrg,FL2FXCONST_DBL(0.f)); 693 /* save nrg for the next frame */ 694 h_ps_d->specificTo.mpeg.aPrevNrgBin[bin] = nrg; 696 nrg = fMult( nrg, TRANSIENT_IMPACT_FACTOR ); 699 if ( peakDiff <= nrg || peakDiff == FL2FXCONST_DBL(0.0) ) { 702 else if ( nrg <= FL2FXCONST_DBL(0.0f) ) [all...] |
/external/chromium_org/third_party/opus/src/src/ |
opus_demo.c | 254 double bits=0.0, bits_max=0.0, bits_act=0.0, bits2=0.0, nrg; local 835 nrg = 0.0; [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/fix/source/ |
entropy_coding.c | 507 WebRtc_Word32 nrg; local 569 nrg = 0; 572 nrg += WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(ARCoefQ12[j], WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(CorrQ7_norm[j-n], ARCoefQ12[n]) + 256, 9)) + 4, 3); 574 nrg += WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(ARCoefQ12[j], WEBRTC_SPL_RSHIFT_W32(WEBRTC_SPL_MUL(CorrQ7_norm[n-j], ARCoefQ12[n]) + 256, 9)) + 4, 3); 578 nrg = WEBRTC_SPL_RSHIFT_W32(nrg, lft_shft); 580 nrg = WEBRTC_SPL_LSHIFT_W32(nrg, -lft_shft); 582 if(nrg>131072) 583 gain2_Q10 = WebRtcSpl_DivResultInQ31(FRAMESAMPLES >> 2, nrg); /* also shifts 31 bits to the left! * [all...] |