Lines Matching refs:weight
42 unsigned int weight, unsigned int offset);
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)
123 weight = clamp_val(weight, 0, 512);
132 weight = weight >= 256 ? 512 : 0;
134 w1 = weight;
135 w2 = 512 - weight;
147 weight = 512 - weight;
148 w0 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 + weight) / 512));
149 w1 = F2I(f_h + 512 * cubic_conv(f_a, I2F(0 + weight) / 512));
150 w2 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 - weight) / 512));
151 w3 = F2I(f_h + 512 * cubic_conv(f_a, I2F(1024 - weight) / 512));
170 unsigned int weight, unsigned int offset)
175 weight = clamp_val(weight, 0, 512);
178 weight = weight >= 256 ? 512 : 0;
180 val |= (weight & JZ4725B_IPU_RSZ_LUT_COEF_MASK) << JZ4725B_IPU_RSZ_LUT_COEF_LSB;
197 unsigned int i, offset, weight, weight_num = denom;
201 weight = 512 - 512 * (weight_num - num) / (num * 2);
206 true, weight, offset);
229 unsigned int i, offset, weight, weight_num = 0;
232 weight = 512 - 512 * weight_num / num;
240 false, weight, offset);