Lines Matching refs:weight

45 			  unsigned int weight, unsigned int offset);
157 unsigned int weight, unsigned int offset) in jz4760_set_coefs() argument
162 weight = clamp_val(weight, 0, 512); in jz4760_set_coefs()
171 weight = weight >= 256 ? 512 : 0; in jz4760_set_coefs()
173 w1 = weight; in jz4760_set_coefs()
174 w2 = 512 - weight; in jz4760_set_coefs()
186 weight = 512 - weight; in jz4760_set_coefs()
187 w0 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 + weight) / 512)); in jz4760_set_coefs()
188 w1 = F2I(f_h + 512 * cubic_conv(f_a, I2F(0 + weight) / 512)); in jz4760_set_coefs()
189 w2 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 - weight) / 512)); in jz4760_set_coefs()
190 w3 = F2I(f_h + 512 * cubic_conv(f_a, I2F(1024 - weight) / 512)); in jz4760_set_coefs()
209 unsigned int weight, unsigned int offset) in jz4725b_set_coefs() argument
214 weight = clamp_val(weight, 0, 512); in jz4725b_set_coefs()
217 weight = weight >= 256 ? 512 : 0; in jz4725b_set_coefs()
219 val |= (weight & JZ4725B_IPU_RSZ_LUT_COEF_MASK) << JZ4725B_IPU_RSZ_LUT_COEF_LSB; in jz4725b_set_coefs()
236 unsigned int i, offset, weight, weight_num = denom; in ingenic_ipu_set_downscale_coefs() local
240 weight = 512 - 512 * (weight_num - num) / (num * 2); in ingenic_ipu_set_downscale_coefs()
245 true, weight, offset); in ingenic_ipu_set_downscale_coefs()
268 unsigned int i, offset, weight, weight_num = 0; in ingenic_ipu_set_upscale_coefs() local
271 weight = 512 - 512 * weight_num / num; in ingenic_ipu_set_upscale_coefs()
279 false, weight, offset); in ingenic_ipu_set_upscale_coefs()