/external/libopus/silk/fixed/ |
D | process_gains_FIX.c | 44 opus_int32 s_Q16, InvMaxSqrVal_Q16, gain, gain_squared, ResNrg, ResNrgPart, quant_offset_Q10; in silk_process_gains_FIX() local 73 gain = psEncCtrl->Gains_Q16[ k ]; in silk_process_gains_FIX() 74 gain_squared = silk_ADD_SAT32( ResNrgPart, silk_SMMUL( gain, gain ) ); in silk_process_gains_FIX() 77 gain_squared = silk_SMLAWW( silk_LSHIFT( ResNrgPart, 16 ), gain, gain ); in silk_process_gains_FIX() 79 gain = silk_SQRT_APPROX( gain_squared ); /* Q8 */ in silk_process_gains_FIX() 80 gain = silk_min( gain, silk_int32_MAX >> 8 ); in silk_process_gains_FIX() 81 psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 8 ); /* Q16 */ in silk_process_gains_FIX() 83 gain = silk_SQRT_APPROX( gain_squared ); /* Q0 */ in silk_process_gains_FIX() 84 gain = silk_min( gain, silk_int32_MAX >> 16 ); in silk_process_gains_FIX() 85 psEncCtrl->Gains_Q16[ k ] = silk_LSHIFT_SAT32( gain, 16 ); /* Q16 */ in silk_process_gains_FIX()
|
/external/sonivox/arm-wt-22k/lib_src/ |
D | eas_dlssynth.c | 185 …Voice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain, EAS_U8 velocity) in DLS_UpdateGain() argument 201 gain += FMUL_15x15(temp, pWTVoice->modLFO.lfoValue); in DLS_UpdateGain() 202 if (gain > 0) in DLS_UpdateGain() 203 gain = 0; in DLS_UpdateGain() 208 gain = (DLS_GAIN_FACTOR * gain) >> DLS_GAIN_SHIFT; in DLS_UpdateGain() 211 gain += (pWTVoice->eg1Value - 32767) >> 1; in DLS_UpdateGain() 212 gain = EAS_LogToLinear16(gain); in DLS_UpdateGain() 214 gain = EAS_LogToLinear16(gain); in DLS_UpdateGain() 216 gain = FMUL_15x15(gain, temp); in DLS_UpdateGain() 221 gain = (DLS_GAIN_FACTOR * gain) >> DLS_GAIN_SHIFT; in DLS_UpdateGain() [all …]
|
D | eas_mixer.c | 137 EAS_U16 gain; in EAS_MixEnginePost() local 149 gain = 32767; in EAS_MixEnginePost() 151 gain = (EAS_U16) temp; in EAS_MixEnginePost() 154 gain = (EAS_U16) pEASData->masterGain; in EAS_MixEnginePost() 156 gain = (EAS_U16) pEASData->masterGain; in EAS_MixEnginePost() 164 gain = gain >> 5; in EAS_MixEnginePost() 166 gain = gain >> 4; in EAS_MixEnginePost() 168 gain = gain >> 4; in EAS_MixEnginePost() 173 …SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) ((EAS_U16) num… in EAS_MixEnginePost() 175 SynthMasterGain(pEASData->pMixBuffer, pEASData->pOutputAudioBuffer, gain, (EAS_U16) numSamples); in EAS_MixEnginePost()
|
D | ARM-E_voice_gain_gnu.s | 59 gain .req r8 label 137 LDR gain, [pWTFrame, #m_prevGain] 138 MOV gain, gain, LSL #(NUM_MIXER_GUARD_BITS + 4) 141 SUB gainIncrement, gainIncrement, gain 149 ADD gain, gain, gainIncrement @ gain step to eliminate zipper noise 150 SMULWB tmp0, gain, tmp0 @ sample * local gain
|
D | eas_wtengine.c | 81 EAS_I32 gain; in WT_VoiceGain() local 107 gain = pWTIntFrame->prevGain << 16; in WT_VoiceGain() 118 gain += gainIncrement; in WT_VoiceGain() 120 tmp2 = gain >> 16; in WT_VoiceGain() 590 EAS_I32 gain; in WT_InterpolateMono() local 611 gain = pWTIntFrame->prevGain << 16; in WT_InterpolateMono() 638 gain += gainIncrement; in WT_InterpolateMono() 639 tmp2 = (gain >> SYNTH_UPDATE_PERIOD_IN_BITS); in WT_InterpolateMono() 654 pWTVoice->gain = (EAS_I16)(gain >> SYNTH_UPDATE_PERIOD_IN_BITS); in WT_InterpolateMono()
|
/external/libopus/silk/float/ |
D | scale_vector_FLP.c | 37 silk_float gain, in silk_scale_vector_FLP() argument 46 data1[ i + 0 ] *= gain; in silk_scale_vector_FLP() 47 data1[ i + 1 ] *= gain; in silk_scale_vector_FLP() 48 data1[ i + 2 ] *= gain; in silk_scale_vector_FLP() 49 data1[ i + 3 ] *= gain; in silk_scale_vector_FLP() 54 data1[ i ] *= gain; in silk_scale_vector_FLP()
|
D | scale_copy_vector_FLP.c | 38 silk_float gain, in silk_scale_copy_vector_FLP() argument 47 data_out[ i + 0 ] = gain * data_in[ i + 0 ]; in silk_scale_copy_vector_FLP() 48 data_out[ i + 1 ] = gain * data_in[ i + 1 ]; in silk_scale_copy_vector_FLP() 49 data_out[ i + 2 ] = gain * data_in[ i + 2 ]; in silk_scale_copy_vector_FLP() 50 data_out[ i + 3 ] = gain * data_in[ i + 3 ]; in silk_scale_copy_vector_FLP() 55 data_out[ i ] = gain * data_in[ i ]; in silk_scale_copy_vector_FLP()
|
D | process_gains_FLP.c | 45 silk_float s, InvMaxSqrVal, gain, quant_offset; in silk_process_gains_FLP() local 60 gain = psEncCtrl->Gains[ k ]; in silk_process_gains_FLP() 61 gain = ( silk_float )sqrt( gain * gain + psEncCtrl->ResNrg[ k ] * InvMaxSqrVal ); in silk_process_gains_FLP() 62 psEncCtrl->Gains[ k ] = silk_min_float( gain, 32767.0f ); in silk_process_gains_FLP()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/ |
D | cb_construct.c | 36 int16_t gain[CB_NSTAGES]; in WebRtcIlbcfix_CbConstruct() local 46 gain[0] = WebRtcIlbcfix_GainDequant(gain_index[0], 16384, 0); in WebRtcIlbcfix_CbConstruct() 47 gain[1] = WebRtcIlbcfix_GainDequant(gain_index[1], gain[0], 1); in WebRtcIlbcfix_CbConstruct() 48 gain[2] = WebRtcIlbcfix_GainDequant(gain_index[2], gain[1], 2); in WebRtcIlbcfix_CbConstruct() 57 gainPtr = &gain[0]; in WebRtcIlbcfix_CbConstruct()
|
D | gain_dequant.c | 34 const int16_t *gain; in WebRtcIlbcfix_GainDequant() local 42 gain = WebRtcIlbcfix_kGain[stage]; in WebRtcIlbcfix_GainDequant() 44 return (int16_t)((scale * gain[index] + 8192) >> 14); in WebRtcIlbcfix_GainDequant()
|
/external/speex/libspeex/ |
D | ltp.c | 173 …(spx_word16_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack) in open_loop_nbest_pitch() argument 292 if (gain) in open_loop_nbest_pitch() 302 gain[j]=g; in open_loop_nbest_pitch() 376 spx_word16_t gain[3]; in pitch_gain_search_3tap() local 487 gain[0] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4]); in pitch_gain_search_3tap() 488 gain[1] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+1]); in pitch_gain_search_3tap() 489 gain[2] = ADD16(32,(spx_word16_t)gain_cdbk[best_cdbk*4+2]); in pitch_gain_search_3tap() 492 gain[0] = 0.015625*gain_cdbk[best_cdbk*4] + .5; in pitch_gain_search_3tap() 493 gain[1] = 0.015625*gain_cdbk[best_cdbk*4+1]+ .5; in pitch_gain_search_3tap() 494 gain[2] = 0.015625*gain_cdbk[best_cdbk*4+2]+ .5; in pitch_gain_search_3tap() [all …]
|
/external/aac/libAACenc/src/ |
D | quantize.cpp | 104 static void FDKaacEnc_quantizeLines(INT gain, in FDKaacEnc_quantizeLines() argument 112 FIXP_QTD quantizer = FDKaacEnc_quantTableQ[(-gain)&3]; in FDKaacEnc_quantizeLines() 113 INT quantizershift = ((-gain)>>2)+1; in FDKaacEnc_quantizeLines() 167 static void FDKaacEnc_invQuantizeLines(INT gain, in FDKaacEnc_invQuantizeLines() argument 177 iquantizermod = gain&3; in FDKaacEnc_invQuantizeLines() 178 iquantizershift = gain>>2; in FDKaacEnc_invQuantizeLines() 307 INT gain, in FDKaacEnc_calcSfbDist() argument 320 FDKaacEnc_quantizeLines(gain, in FDKaacEnc_calcSfbDist() 330 FDKaacEnc_invQuantizeLines(gain,1,&quantSpectrum[i],&invQuantSpec); in FDKaacEnc_calcSfbDist() 363 INT gain, in FDKaacEnc_calcSfbQuantEnergyAndDist() argument [all …]
|
D | metadata_main.cpp | 281 static void encodeDynrng(INT gain, UCHAR* const dyn_rng_ctl, UCHAR* const dyn_rng_sgn ) in encodeDynrng() argument 283 if(gain < 0) in encodeDynrng() 286 gain = -gain; in encodeDynrng() 292 gain = FDKmin(gain,(127<<14)); in encodeDynrng() 294 *dyn_rng_ctl = (UCHAR)((gain + (1<<13)) >> 14); in encodeDynrng() 307 static UCHAR encodeCompr(INT gain) in encodeCompr() argument 313 tmp = ((3156476 - gain) * 15 + 197283) / 394566; in encodeCompr() 332 INT gain; in decodeCompr() local 337 …gain = (INT)( scaleValue(((LONG)FL2FXCONST_DBL(6.0206f/128.f)*(8-x) - (LONG)FL2FXCONST_DBL(0.4014f… in decodeCompr() 339 return gain; in decodeCompr()
|
/external/fec/ |
D | vtest615.c | 52 double gain,esn0,ebn0; local 111 gain = 1./sqrt(0.5/pow(10.,esn0/10.)); 122 symbols[6*i+0] = addnoise(parity(sr & V615POLYA),gain,Gain,OFFSET,CLIP); 123 symbols[6*i+1] = addnoise(parity(sr & V615POLYB),gain,Gain,OFFSET,CLIP); 124 symbols[6*i+2] = addnoise(parity(sr & V615POLYC),gain,Gain,OFFSET,CLIP); 125 symbols[6*i+3] = addnoise(parity(sr & V615POLYD),gain,Gain,OFFSET,CLIP); 126 symbols[6*i+4] = addnoise(parity(sr & V615POLYE),gain,Gain,OFFSET,CLIP); 127 symbols[6*i+5] = addnoise(parity(sr & V615POLYF),gain,Gain,OFFSET,CLIP);
|
D | vtest39.c | 50 double gain,esn0,ebn0; local 109 gain = 1./sqrt(0.5/pow(10.,esn0/10.)); 120 symbols[3*i+0] = addnoise(parity(sr & V39POLYA),gain,Gain,127.5,255); 121 symbols[3*i+1] = addnoise(parity(sr & V39POLYB),gain,Gain,127.5,255); 122 symbols[3*i+2] = addnoise(parity(sr & V39POLYC),gain,Gain,127.5,255);
|
/external/iw/ |
D | reg.c | 19 #define DBI_TO_MBI(gain) ((gain) * 100) argument 20 #define MBI_TO_DBI(gain) ((gain) / 100) argument 21 #define DBM_TO_MBM(gain) ((gain) * 100) argument 22 #define MBM_TO_DBM(gain) ((gain) / 100) argument
|
/external/skia/src/gpu/effects/ |
D | GrMatrixConvolutionEffect.h | 25 SkScalar gain, in Create() argument 30 return new GrMatrixConvolutionEffect(texture, bounds, kernelSize, kernel, gain, bias, in Create() 37 SkScalar gain, 49 float gain() const { return fGain; } in gain() function 61 SkScalar gain,
|
D | GrMatrixConvolutionEffect.cpp | 61 const char* gain = uniformHandler->getUniformCStr(fGainUni); in emitCode() local 91 fragBuilder->codeAppendf("%s = sum * %s + %s;", args.fOutputColor, gain, bias); in emitCode() 103 fragBuilder->codeAppendf("%s.rgb = sum.rgb * %s + %s;", args.fOutputColor, gain, bias); in emitCode() 134 pdman.set1f(fGainUni, conv.gain()); in onSetData() 143 SkScalar gain, in GrMatrixConvolutionEffect() argument 150 fGain(SkScalarToFloat(gain)), in GrMatrixConvolutionEffect() 176 fGain == s.gain() && in onIsEqual() 188 SkScalar gain, in CreateGaussian() argument 221 return new GrMatrixConvolutionEffect(texture, bounds, kernelSize, kernel, gain, bias, in CreateGaussian() 237 SkScalar gain = d->fRandom->nextSScalar1(); in TestCreate() local [all …]
|
/external/aac/libPCMutils/src/ |
D | limiter.cpp | 226 FIXP_DBL tmp, old, gain, additionalGain, additionalGainUnfiltered; in applyLimiter() local 317 gain = fDivNorm(threshold, max)>>1; in applyLimiter() 320 gain = FL2FXCONST_DBL(1.0f/(1<<1)); in applyLimiter() 327 if (gain < smoothState0) { in applyLimiter() 328 …cor = fMin(cor, fMultDiv2((gain - fMultDiv2(FL2FXCONST_SGL(0.1f*(1<<1)),smoothState0)), FL2FXCONST… in applyLimiter() 331 cor = gain; in applyLimiter() 337 smoothState0 = fMax(smoothState0, gain); /* avoid overshooting target */ in applyLimiter() 346 gain = smoothState0; in applyLimiter() 355 if (gain < FL2FXCONST_DBL(1.0f/(1<<1))) in applyLimiter() 356 tmp = fMult(tmp,gain<<1); in applyLimiter() [all …]
|
/external/libopus/celt/ |
D | vq.c | 70 opus_val16 gain, theta; in exp_rotation() local 78 gain = celt_div((opus_val32)MULT16_16(Q15_ONE,len),(opus_val32)(len+factor*K)); in exp_rotation() 79 theta = HALF16(MULT16_16_Q15(gain,gain)); in exp_rotation() 113 int N, opus_val32 Ryy, opus_val16 gain) in normalise_residual() argument 126 g = MULT16_16_P15(celt_rsqrt_norm(t),gain); in normalise_residual() 156 , opus_val16 gain in alg_quant() argument 311 normalise_residual(iy, X, N, yy, gain); in alg_quant() 323 ec_dec *dec, opus_val16 gain) in alg_unquant() argument 340 normalise_residual(iy, X, N, Ryy, gain); in alg_unquant() 347 void renormalise_vector(celt_norm *X, int N, opus_val16 gain) in renormalise_vector() argument [all …]
|
D | vq.h | 52 , opus_val16 gain 64 ec_dec *dec, opus_val16 gain); 66 void renormalise_vector(celt_norm *X, int N, opus_val16 gain);
|
/external/webrtc/webrtc/common_audio/signal_processing/ |
D | ilbc_specific_functions.c | 68 int16_t gain, int32_t add_constant, in WebRtcSpl_AddAffineVectorToVector() argument 76 out[i] += (int16_t)((in[i] * gain + add_constant) >> right_shifts); in WebRtcSpl_AddAffineVectorToVector() 81 int16_t gain, int32_t add_constant, in WebRtcSpl_AffineTransformVector() argument 88 out[i] = (int16_t)((in[i] * gain + add_constant) >> right_shifts); in WebRtcSpl_AffineTransformVector()
|
D | vector_scaling_operations.c | 87 int16_t gain, size_t in_vector_length, in WebRtcSpl_ScaleVector() argument 100 *outptr++ = (int16_t)((*inptr++ * gain) >> right_shifts); in WebRtcSpl_ScaleVector() 105 int16_t gain, size_t in_vector_length, in WebRtcSpl_ScaleVectorWithSat() argument 117 *outptr++ = WebRtcSpl_SatW32ToW16((*inptr++ * gain) >> right_shifts); in WebRtcSpl_ScaleVectorWithSat()
|
/external/opencv3/modules/video/src/ |
D | kalman.cpp | 68 gain = Mat::zeros(DP, MP, type); in init() 116 gain = temp4.t(); in correct() 122 statePost = statePre + gain*temp5; in correct() 125 errorCovPost = errorCovPre - gain*temp2; in correct()
|
/external/opencv/cv/src/ |
D | cvkalman.cpp | 91 CV_CALL( kalman->gain = cvCreateMat( DP, MP, CV_32FC1 )); in cvCreateKalman() 112 kalman->KalmGainMatr = kalman->gain->data.fl; in cvCreateKalman() 148 cvReleaseMat( &kalman->gain ); in cvReleaseKalman() 224 CV_CALL( cvTranspose( kalman->temp4, kalman->gain )); in cvKalmanCorrect() 230 CV_CALL( cvMatMulAdd( kalman->gain, kalman->temp5, kalman->state_pre, kalman->state_post )); in cvKalmanCorrect() 233 CV_CALL( cvGEMM( kalman->gain, kalman->temp2, -1, kalman->error_cov_pre, 1, in cvKalmanCorrect()
|