Lines Matching refs:new_weight
96 int old_weight, new_weight;
118 new_weight = (pos << (16 - rate->pitch_shift)) / (get_threshold >> rate->pitch_shift);
119 old_weight = 0x10000 - new_weight;
120 sample = (old_sample * old_weight + new_sample * new_weight) >> 16;
159 int old_weight, new_weight;
175 new_weight = (pos << (16 - rate->pitch_shift)) / (get_threshold >> rate->pitch_shift);
176 old_weight = 0x10000 - new_weight;
177 *dst = (old_sample * old_weight + new_sample * new_weight) >> 16;
218 int old_weight, new_weight;
240 new_weight = 0x10000 - old_weight;
241 sample = (old_sample * old_weight + new_sample * new_weight) >> 16;
280 int old_weight, new_weight;
297 new_weight = 0x10000 - old_weight;
298 *dst = (old_sample * old_weight + new_sample * new_weight) >> 16;