Lines Matching refs:weight
45 unsigned int weight, unsigned int offset);
146 * On entry, "weight" is a coefficient suitable for bilinear mode,
149 * "weight 512" means all of pixel 0;
150 * "weight 256" means half of pixel 0 and half of pixel 1;
151 * "weight 0" means all of pixel 1;
157 unsigned int weight, unsigned int offset)
162 weight = clamp_val(weight, 0, 512);
171 weight = weight >= 256 ? 512 : 0;
173 w1 = weight;
174 w2 = 512 - weight;
186 weight = 512 - weight;
187 w0 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 + weight) / 512));
188 w1 = F2I(f_h + 512 * cubic_conv(f_a, I2F(0 + weight) / 512));
189 w2 = F2I(f_h + 512 * cubic_conv(f_a, I2F(512 - weight) / 512));
190 w3 = F2I(f_h + 512 * cubic_conv(f_a, I2F(1024 - weight) / 512));
209 unsigned int weight, unsigned int offset)
214 weight = clamp_val(weight, 0, 512);
217 weight = weight >= 256 ? 512 : 0;
219 val |= (weight & JZ4725B_IPU_RSZ_LUT_COEF_MASK) << JZ4725B_IPU_RSZ_LUT_COEF_LSB;
236 unsigned int i, offset, weight, weight_num = denom;
240 weight = 512 - 512 * (weight_num - num) / (num * 2);
245 true, weight, offset);
268 unsigned int i, offset, weight, weight_num = 0;
271 weight = 512 - 512 * weight_num / num;
279 false, weight, offset);