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]);
142 for (; len > 0; len--) {
210 if ((parity + 1) & 1)
212 if ((parity + 1) & 2)
223 if ((parity + 1) & 1)
225 if ((parity + 1) & 2)
247 if (parity < 2 && s->last && parity != s->
last->
parity
287 for (f = begin; f !=
end; f = f->
next)
297 for (i = 0; i <
max; i++) {
311 int i, l, max_l = 0, max_r = 0;
339 if (max_l + max_r < 128)
341 if (max_l > 4 * max_r)
343 if (max_r > 4 * max_l)
349 int i, max_l = 0, max_r = 0, l;
369 int lc = f->
combs[i] - (v + lv) +
ABS(v - lv);
382 if (max_l + max_r < 64)
385 if (max_r > 6 * max_l)
387 else if (max_l > 6 * max_r)
404 for (i = 0; i < n - 1; i++) {
462 for (i = 0; i <
n; i++) {
498 for (i = 0; i < f->
length; i++)
534 for (x = 0; x < w; x += xstep)
535 *dest++ =
func(a + x, b + x, stride);
536 a += ystep; b += ystep;
622 for (i = 0; i < 2; i++) {
658 inlink->
format, inlink->
w, inlink->
h);
705 inlink->
format, inlink->
w, inlink->
h);
763 .priv_class = &pullup_class,