/external/webrtc/src/modules/audio_processing/ |
H A D | gain_control_impl.h | 49 virtual int set_compression_gain_db(int gain);
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
H A D | AudioBus.cpp | 432 // If it is copying from the same bus and no need to change gain, just return. 445 // We don't want to suddenly change the gain from mixing one time slice to the next, 446 // so we "de-zipper" by slowly changing the gain each sample-frame until we've achieved the target gain. 448 // Take master bus gain into account as well as the targetGain. 452 float gain = static_cast<float>(m_isFirstTime ? totalDesiredGain : *lastMixGain); local 458 // If the gain is within epsilon of totalDesiredGain, we can skip dezippering. 461 float gainDiff = fabs(totalDesiredGain - gain); 463 // Number of frames to de-zipper before we are close enough to the target gain. 464 // FIXME: framesToDezipper could be smaller when target gain i [all...] |
/external/sonivox/arm-fm-22k/lib_src/ |
H A D | eas_midi.c | 451 EAS_I32 gain = ((EAS_I32) c << 8) | ((EAS_I32) pMIDIStream->d1 << 1); local 452 gain = (gain * gain) >> 15; 453 VMSetVolume(pSynth, (EAS_U16) gain);
|
/external/sonivox/arm-hybrid-22k/lib_src/ |
H A D | eas_midi.c | 451 EAS_I32 gain = ((EAS_I32) c << 8) | ((EAS_I32) pMIDIStream->d1 << 1); local 452 gain = (gain * gain) >> 15; 453 VMSetVolume(pSynth, (EAS_U16) gain);
|
H A D | eas_wtsynth.c | 56 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain); 130 /* left and right gain values are needed only if stereo output */ 360 pVoice->gain = 0; 418 wtConfig.gain = pVoice->gain; 519 intFrame.prevGain = pVoice->gain; 536 /* update the gain */ 537 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain); 580 /* if the update interval has elapsed, then force the current gain to the next 581 * gain sinc 719 WT_UpdateGain(S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain) argument [all...] |
/external/sonivox/arm-wt-22k/lib_src/ |
H A D | eas_midi.c | 451 EAS_I32 gain = ((EAS_I32) c << 8) | ((EAS_I32) pMIDIStream->d1 << 1); local 452 gain = (gain * gain) >> 15; 453 VMSetVolume(pSynth, (EAS_U16) gain);
|
H A D | eas_wtsynth.c | 56 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain); 130 /* left and right gain values are needed only if stereo output */ 360 pVoice->gain = 0; 418 wtConfig.gain = pVoice->gain; 523 intFrame.prevGain = pVoice->gain; 540 /* update the gain */ 541 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain); 586 /* if the update interval has elapsed, then force the current gain to the next 587 * gain sinc 725 WT_UpdateGain(S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain) argument [all...] |
/external/skia/src/effects/ |
H A D | SkMatrixConvolutionImageFilter.cpp | 39 SkScalar gain, 48 fGain(gain), 337 SkScalar gain, 346 gain, 366 float gain() const { return fGain; } function in class:GrMatrixConvolutionEffect 380 SkScalar gain, 494 const char* gain = builder->getUniformCStr(fGainUni); local 515 builder->fsCodeAppendf("\t\t%s = sum * %s + %s;\n", outputColor, gain, bias); 523 builder->fsCodeAppendf("\t\t%s.rgb = sum.rgb * %s + %s;\n", outputColor, gain, bias); 563 uman.set1f(fGainUni, conv.gain()); 36 SkMatrixConvolutionImageFilter( const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha, SkImageFilter* input, const CropRect* cropRect) argument 333 Create(GrTexture* texture, const SkIRect& bounds, const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha) argument 577 GrMatrixConvolutionEffect(GrTexture* texture, const SkIRect& bounds, const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha) argument 642 SkScalar gain = random->nextSScalar1(); local [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/encoder/x86/ |
H A D | quantize_mmx.asm | 56 psubw mm3, mm0 ;gain the sign back 96 psubw mm7, mm4;gain the sign back 137 psubw mm7, mm4;gain the sign back 178 psubw mm7, mm4;gain the sign back
|
/external/chromium_org/third_party/skia/gm/ |
H A D | matrixconvolution.cpp | 62 SkScalar gain = 0.3f, bias = SkIntToScalar(100); local 67 gain,
|
/external/libvpx/libvpx/vp8/encoder/x86/ |
H A D | quantize_mmx.asm | 56 psubw mm3, mm0 ;gain the sign back 96 psubw mm7, mm4;gain the sign back 137 psubw mm7, mm4;gain the sign back 178 psubw mm7, mm4;gain the sign back
|
/external/skia/gm/ |
H A D | matrixconvolution.cpp | 61 SkScalar gain = 0.3f, bias = SkIntToScalar(100); local 66 gain,
|
/external/chromium_org/third_party/speex/libspeex/ |
H A D | ltp.h | 54 void open_loop_nbest_pitch(spx_word16_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack); 100 /** Forced pitch delay and gain */ 124 /** Unquantize forced pitch delay and gain */
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/ |
H A D | gain_control_impl.h | 50 virtual int set_compression_gain_db(int gain) OVERRIDE;
|
/external/speex/libspeex/ |
H A D | ltp.h | 54 void open_loop_nbest_pitch(spx_word16_t *sw, int start, int end, int len, int *pitch, spx_word16_t *gain, int N, char *stack); 100 /** Forced pitch delay and gain */ 124 /** Unquantize forced pitch delay and gain */
|
H A D | scal.c | 236 float gain; local 241 gain = coef*sqrt(.1+st->curve[i]); 242 frame[2*i-1] = gain*x1; 243 frame[2*i] = gain*x2;
|
H A D | preprocess.c | 209 spx_word16_t *gain_floor; /**< Minimum gain allowed */ 214 spx_word16_t *gain; /**< Ephraim Malah gain */ member in struct:SpeexPreprocessState_ 238 float agc_gain; /**< Current AGC gain */ 239 float max_gain; /**< Maximum gain allowed */ 240 float max_increase_step; /**< Maximum increase in gain from one frame to another */ 241 float max_decrease_step; /**< Maximum decrease in gain from one frame to another */ 243 float init_max; /**< Current gain limit during initialisation */ 290 /* This function approximates the gain function 292 which multiplied by xi/(1+xi) is the optimal gain [all...] |
/external/chromium_org/third_party/webrtc/modules/audio_coding/codecs/isac/main/source/ |
H A D | decode.c | 64 float gain; local 142 /* Convert AvgPitchGain back to float for computation of gain. */ 144 gain = 1.0f - 0.45f * (float)AvgPitchGain; 147 /* Reduce gain to compensate for pitch enhancer. */ 148 LPw_pf[k] *= gain; 153 /* Compensation for transcoding gain changes. */ 196 const int16_t kAveragePitchGain = 0; /* No pitch-gain for upper-band. */ 262 const int16_t kAveragePitchGain = 0; /* No pitch-gain for upper-band. */
|
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
H A D | decode.c | 64 float gain; local 142 /* Convert AvgPitchGain back to float for computation of gain. */ 144 gain = 1.0f - 0.45f * (float)AvgPitchGain; 147 /* Reduce gain to compensate for pitch enhancer. */ 148 LPw_pf[k] *= gain; 153 /* Compensation for transcoding gain changes. */ 196 const WebRtc_Word16 kAveragePitchGain = 0; /* No pitch-gain for upper-band. */ 262 const WebRtc_Word16 kAveragePitchGain = 0; /* No pitch-gain for upper-band. */
|
/external/webrtc/src/modules/audio_processing/ns/ |
H A D | ns_core.c | 729 float energy1, energy2, gain, factor, factor1, factor2; local 769 // range for averaging low band quantities for H band gain 846 // for time-domain gain of HB 857 } // end of H band gain computation 1000 // previous estimate: based on previous frame with gain filter 1011 // gain filter 1103 // gain filter 1174 gain = (float)sqrt(energy2 / (energy1 + (float)1.0)); 1178 if (gain > B_LIM) { 1179 factor1 = (float)1.0 + (float)1.3 * (gain [all...] |
/external/chromium_org/third_party/opus/src/silk/float/ |
H A D | noise_shape_analysis_FLP.c | 35 /* Compute gain to make warped filter coefficients have a zero mean log frequency response on a */ 45 silk_float gain; local 48 gain = coefs[ order - 1 ]; 50 gain = lambda * gain + coefs[ i ]; 52 return (silk_float)( 1.0f / ( 1.0f - lambda * gain ) ); 127 /* Compute noise shaping coefficients and initial gain values */ 211 /* More BWE for signals with high prediction gain */ 262 /* Adjust gain for warping */
|
/external/libopus/silk/float/ |
H A D | noise_shape_analysis_FLP.c | 35 /* Compute gain to make warped filter coefficients have a zero mean log frequency response on a */ 45 silk_float gain; local 48 gain = coefs[ order - 1 ]; 50 gain = lambda * gain + coefs[ i ]; 52 return (silk_float)( 1.0f / ( 1.0f - lambda * gain ) ); 127 /* Compute noise shaping coefficients and initial gain values */ 211 /* More BWE for signals with high prediction gain */ 262 /* Adjust gain for warping */
|
/external/chromium_org/third_party/webrtc/modules/audio_processing/agc/ |
H A D | analog_agc.c | 16 * additional gain. 58 * (desired level) if we have no compression gain. This level should be set high enough not 69 /* Size of analog gain table */ 118 uint16_t targetGainIdx, gain; local 200 /* apply slowly varying digital gain */ 214 /* Increment through the table towards the target gain. 215 * If micVol drops below maxAnalog, we allow the gain 226 gain = kGainTableAnalog[stt->gainTableIdx]; 231 tmp32 = WEBRTC_SPL_MUL_16_U16(in_mic[i], gain); 247 tmp32 = WEBRTC_SPL_MUL_16_U16(in_mic_H[i], gain); 401 uint16_t gain; local [all...] |
/external/webrtc/src/modules/audio_processing/agc/ |
H A D | analog_agc.c | 16 * additional gain. 58 * (desired level) if we have no compression gain. This level should be set high enough not 69 /* Size of analog gain table */ 118 WebRtc_UWord16 targetGainIdx, gain; local 200 /* apply slowly varying digital gain */ 214 /* Increment through the table towards the target gain. 215 * If micVol drops below maxAnalog, we allow the gain 226 gain = kGainTableAnalog[stt->gainTableIdx]; 231 tmp32 = WEBRTC_SPL_MUL_16_U16(in_mic[i], gain); 247 tmp32 = WEBRTC_SPL_MUL_16_U16(in_mic_H[i], gain); 401 WebRtc_UWord16 gain; local [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
H A D | SkMatrixConvolutionImageFilter.cpp | 27 SkScalar gain, 37 fGain(gain), 53 SkScalar gain, 70 return SkNEW_ARGS(SkMatrixConvolutionImageFilter, (kernelSize, kernel, gain, bias, 134 SkScalar gain = buffer.readScalar(); local 141 return Create(kernelSize, kernel.get(), gain, bias, kernelOffset, tileMode, convolveAlpha, 24 SkMatrixConvolutionImageFilter( const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha, SkImageFilter* input, const CropRect* cropRect, uint32_t uniqueID) argument 50 Create( const SkISize& kernelSize, const SkScalar* kernel, SkScalar gain, SkScalar bias, const SkIPoint& kernelOffset, TileMode tileMode, bool convolveAlpha, SkImageFilter* input, const CropRect* cropRect, uint32_t uniqueID) argument
|