Lines Matching full:scaling
81 // Calculate scaling to ensure that `peak_index` samples can be square-summed in Process()
83 int scaling = 31 - WebRtcSpl_NormW32(max_input_value_ * max_input_value_) - in Process() local
85 scaling = std::max(0, scaling); in Process()
94 WebRtcSpl_DotProductWithScale(vec1, vec1, peak_index, scaling); in Process()
96 WebRtcSpl_DotProductWithScale(vec2, vec2, peak_index, scaling); in Process()
100 WebRtcSpl_DotProductWithScale(vec1, vec2, peak_index, scaling); in Process()
104 SpeechDetection(vec1_energy, vec2_energy, peak_index, scaling); in Process()
117 // Make sure total scaling is even (to simplify scale factor after sqrt). in Process()
170 int scaling = std::max(0, 17 - WebRtcSpl_NormW32(max_corr)); in AutoCorrelation() local
172 auto_corr, scaling); in AutoCorrelation()
178 int scaling) const { in SpeechDetection()
203 // (`scaling` is the scale factor before energy calculation, thus the scale in SpeechDetection()
204 // factor for the energy is 2 * scaling.) in SpeechDetection()
205 if (WebRtcSpl_NormW32(left_side) < 2 * scaling) { in SpeechDetection()
209 right_side = right_side >> (2 * scaling - temp_scale); in SpeechDetection()
211 left_side = left_side << 2 * scaling; in SpeechDetection()