Lines Matching refs:smoothing
22 float *smoothing; member
98 data->chandata[i].smoothing = lsx_calloc(FREQCOUNT, sizeof(float)); in sox_noisered_start()
144 float *smoothing = chan->smoothing; in reduce_noise() local
154 assert(smoothing[i] >= 0 && smoothing[i] <= 1); in reduce_noise()
173 smoothing[i] = smooth * 0.5 + smoothing[i] * 0.5; in reduce_noise()
179 if (smoothing[i]>=0.5 && in reduce_noise()
180 smoothing[i]<=0.55 && in reduce_noise()
181 smoothing[i-1]<0.1 && in reduce_noise()
182 smoothing[i-2]<0.1 && in reduce_noise()
183 smoothing[i+1]<0.1 && in reduce_noise()
184 smoothing[i+2]<0.1) in reduce_noise()
185 smoothing[i] = 0.0; in reduce_noise()
188 outr[0] *= smoothing[0]; in reduce_noise()
189 outi[0] *= smoothing[0]; in reduce_noise()
190 outr[FREQCOUNT-1] *= smoothing[FREQCOUNT-1]; in reduce_noise()
191 outi[FREQCOUNT-1] *= smoothing[FREQCOUNT-1]; in reduce_noise()
195 float smooth = smoothing[i]; in reduce_noise()
209 assert(smoothing[i] >= 0 && smoothing[i] <= 1); in reduce_noise()
333 free(chan->smoothing); in sox_noisered_stop()