Lines Matching full:weight
42 unsigned int weight, unsigned int offset);
85 * returns: Weight of this pixel within 4-pixel sample group. Range is
107 * On entry, "weight" is a coefficient suitable for bilinear mode,
110 * "weight 512" means all of pixel 0;
111 * "weight 256" means half of pixel 0 and half of pixel 1;
112 * "weight 0" means all of pixel 1;
118 unsigned int weight, unsigned int offset) in jz4760_set_coefs() argument
123 weight = clamp_val(weight, 0, 512); in jz4760_set_coefs()
132 weight = weight >= 256 ? 512 : 0; in jz4760_set_coefs()
134 w1 = weight; in jz4760_set_coefs()
135 w2 = 512 - weight; in jz4760_set_coefs()
147 weight = 512 - weight; in jz4760_set_coefs()
148 w0 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 + weight) / 512)); in jz4760_set_coefs()
149 w1 = F2I(f_h + 512 * cubic_conv(f_a, I2F(0 + weight) / 512)); in jz4760_set_coefs()
150 w2 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 - weight) / 512)); in jz4760_set_coefs()
151 w3 = F2I(f_h + 512 * cubic_conv(f_a, I2F(1024 - weight) / 512)); in jz4760_set_coefs()
170 unsigned int weight, unsigned int offset) in jz4725b_set_coefs() argument
175 weight = clamp_val(weight, 0, 512); in jz4725b_set_coefs()
178 weight = weight >= 256 ? 512 : 0; in jz4725b_set_coefs()
180 val |= (weight & JZ4725B_IPU_RSZ_LUT_COEF_MASK) << JZ4725B_IPU_RSZ_LUT_COEF_LSB; in jz4725b_set_coefs()
197 unsigned int i, offset, weight, weight_num = denom; in ingenic_ipu_set_downscale_coefs() local
201 weight = 512 - 512 * (weight_num - num) / (num * 2); in ingenic_ipu_set_downscale_coefs()
206 true, weight, offset); in ingenic_ipu_set_downscale_coefs()
229 unsigned int i, offset, weight, weight_num = 0; in ingenic_ipu_set_upscale_coefs() local
232 weight = 512 - 512 * weight_num / num; in ingenic_ipu_set_upscale_coefs()
240 false, weight, offset); in ingenic_ipu_set_upscale_coefs()