Lines Matching full:weight

45 			  unsigned int weight, unsigned int offset);
88 * returns: Weight of this pixel within 4-pixel sample group. Range is
110 * On entry, "weight" is a coefficient suitable for bilinear mode,
113 * "weight 512" means all of pixel 0;
114 * "weight 256" means half of pixel 0 and half of pixel 1;
115 * "weight 0" means all of pixel 1;
121 unsigned int weight, unsigned int offset) in jz4760_set_coefs() argument
126 weight = clamp_val(weight, 0, 512); in jz4760_set_coefs()
135 weight = weight >= 256 ? 512 : 0; in jz4760_set_coefs()
137 w1 = weight; in jz4760_set_coefs()
138 w2 = 512 - weight; in jz4760_set_coefs()
150 weight = 512 - weight; in jz4760_set_coefs()
151 w0 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 + weight) / 512)); in jz4760_set_coefs()
152 w1 = F2I(f_h + 512 * cubic_conv(f_a, I2F(0 + weight) / 512)); in jz4760_set_coefs()
153 w2 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 - weight) / 512)); in jz4760_set_coefs()
154 w3 = F2I(f_h + 512 * cubic_conv(f_a, I2F(1024 - weight) / 512)); in jz4760_set_coefs()
173 unsigned int weight, unsigned int offset) in jz4725b_set_coefs() argument
178 weight = clamp_val(weight, 0, 512); in jz4725b_set_coefs()
181 weight = weight >= 256 ? 512 : 0; in jz4725b_set_coefs()
183 val |= (weight & JZ4725B_IPU_RSZ_LUT_COEF_MASK) << JZ4725B_IPU_RSZ_LUT_COEF_LSB; in jz4725b_set_coefs()
200 unsigned int i, offset, weight, weight_num = denom; in ingenic_ipu_set_downscale_coefs() local
204 weight = 512 - 512 * (weight_num - num) / (num * 2); in ingenic_ipu_set_downscale_coefs()
209 true, weight, offset); in ingenic_ipu_set_downscale_coefs()
232 unsigned int i, offset, weight, weight_num = 0; in ingenic_ipu_set_upscale_coefs() local
235 weight = 512 - 512 * weight_num / num; in ingenic_ipu_set_upscale_coefs()
243 false, weight, offset); in ingenic_ipu_set_upscale_coefs()