Home
last modified time | relevance | path

Searched refs:new_weight (Results 1 - 1 of 1) sorted by relevance

/third_party/alsa-lib/src/pcm/
H A Dpcm_rate_linear.c95 int old_weight, new_weight; in linear_expand() local
117 new_weight = (pos << (16 - rate->pitch_shift)) / (get_threshold >> rate->pitch_shift); in linear_expand()
118 old_weight = 0x10000 - new_weight; in linear_expand()
119 sample = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand()
158 int old_weight, new_weight; in linear_expand_s16() local
174 new_weight = (pos << (16 - rate->pitch_shift)) / (get_threshold >> rate->pitch_shift); in linear_expand_s16()
175 old_weight = 0x10000 - new_weight; in linear_expand_s16()
176 *dst = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand_s16()
217 int old_weight, new_weight; in linear_shrink() local
239 new_weight in linear_shrink()
279 int old_weight, new_weight; linear_shrink_s16() local
[all...]

Completed in 1 milliseconds