31 #define F_HAVE_BREAKS 1
32 #define F_HAVE_AFFINITY 2
37 #define OFFSET(x) offsetof(PullupContext, x)
38 #define FLAGS AV_OPT_FLAG_VIDEO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
70 #define ABS(a) (((a) ^ ((a) >> 31)) - ((a) >> 31))
76 for (i = 0; i < 4; i++) {
77 for (j = 0; j < 8; j++)
78 diff +=
ABS(a[j] - b[j]);
90 for (i = 0; i < 4; i++) {
91 for (j = 0; j < 8; j++)
92 comb +=
ABS((a[j] << 1) - b[j - s] - b[j ]) +
93 ABS((b[j] << 1) - a[j ] - a[j + s]);
105 for (i = 0; i < 3; i++) {
106 for (j = 0; j < 8; j++)
107 var +=
ABS(a[j] - a[j + s]);
158 for (; len > 0; len--) {
230 if ((parity + 1) & 1)
232 if ((parity + 1) & 2)
243 if ((parity + 1) & 1)
245 if ((parity + 1) & 2)
267 if (parity < 2 && s->last && parity != s->
last->
parity
307 for (f = begin; f !=
end; f = f->
next)
317 for (i = 0; i <
max; i++) {
331 int i, l, max_l = 0, max_r = 0;
359 if (max_l + max_r < 128)
361 if (max_l > 4 * max_r)
363 if (max_r > 4 * max_l)
369 int i, max_l = 0, max_r = 0, l;
389 int lc = f->
combs[i] - (v + lv) +
ABS(v - lv);
402 if (max_l + max_r < 64)
405 if (max_r > 6 * max_l)
407 else if (max_l > 6 * max_r)
424 for (i = 0; i < n - 1; i++) {
482 for (i = 0; i <
n; i++) {
518 for (i = 0; i < f->
length; i++)
554 for (x = 0; x < w; x += xstep)
555 *dest++ =
func(a + x, b + x, stride);
556 a += ystep; b += ystep;
642 for (i = 0; i < 2; i++) {
678 inlink->
format, inlink->
w, inlink->
h);
725 inlink->
format, inlink->
w, inlink->
h);
771 .priv_class = &pullup_class,