Lines Matching refs:old_weight
96 int old_weight, new_weight; in linear_expand() local
119 old_weight = 0x10000 - new_weight; in linear_expand()
120 sample = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand()
159 int old_weight, new_weight; in linear_expand_s16() local
176 old_weight = 0x10000 - new_weight; in linear_expand_s16()
177 *dst = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_expand_s16()
218 int old_weight, new_weight; in linear_shrink() local
239 old_weight = (pos << (32 - LINEAR_DIV_SHIFT)) / (get_increment >> (LINEAR_DIV_SHIFT - 16)); in linear_shrink()
240 new_weight = 0x10000 - old_weight; in linear_shrink()
241 sample = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_shrink()
280 int old_weight, new_weight; in linear_shrink_s16() local
296 old_weight = (pos << (32 - LINEAR_DIV_SHIFT)) / (get_increment >> (LINEAR_DIV_SHIFT - 16)); in linear_shrink_s16()
297 new_weight = 0x10000 - old_weight; in linear_shrink_s16()
298 *dst = (old_sample * old_weight + new_sample * new_weight) >> 16; in linear_shrink_s16()