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) > 0 ? (a) : -(a))
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]);
140 memset(f, 0,
sizeof(*f));
159 for (; len > 0; len--) {
231 if ((parity + 1) & 1)
233 if ((parity + 1) & 2)
244 if ((parity + 1) & 1)
246 if ((parity + 1) & 2)
270 if (parity < 2 && s->last && parity != s->
last->
parity
310 for (f = begin; f !=
end; f = f->
next)
320 for (i = 0; i <
max; i++) {
334 int i, l, max_l = 0, max_r = 0;
362 if (max_l + max_r < 128)
364 if (max_l > 4 * max_r)
366 if (max_r > 4 * max_l)
372 int i, max_l = 0, max_r = 0, l;
392 int lc = f->
combs[i] - (v + lv) +
ABS(v - lv);
405 if (max_l + max_r < 64)
408 if (max_r > 6 * max_l)
410 else if (max_l > 6 * max_r)
427 for (i = 0; i < n - 1; i++) {
485 for (i = 0; i <
n; i++) {
521 for (i = 0; i < f->
length; i++)
557 for (x = 0; x < w; x += xstep)
558 *dest++ =
func(a + x, b + x, stride);
559 a += ystep; b += ystep;
645 for (i = 0; i < 2; i++) {
681 inlink->
format, inlink->
w, inlink->
h);
728 inlink->
format, inlink->
w, inlink->
h);
775 .priv_class = &pullup_class,