27 0, 1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 6, 6, 7, 7,
28 7, 8, 8, 8, 9, 9, 9, 10, 10, 10, 11, 11, 11, 12, 12, 12
36 for (y = 0; y < 8; y++) {
42 int d = (p0 - p3 + 4 * (p2 - p1)) / 8;
44 if (d < -2 * strength)
46 else if (d < -strength)
47 d1 = -2 * strength - d;
48 else if (d < strength)
50 else if (d < 2 * strength)
51 d1 = 2 * strength - d;
67 d2 = av_clip((p0 - p3) / 4, -ad1, ad1);
79 for (x = 0; x < 8; x++) {
85 int d = (p0 - p3 + 4 * (p2 - p1)) / 8;
87 if (d < -2 * strength)
89 else if (d < -strength)
90 d1 = -2 * strength - d;
91 else if (d < strength)
93 else if (d < 2 * strength)
94 d1 = 2 * strength - d;
108 ad1 =
FFABS(d1) >> 1;
110 d2 = av_clip((p0 - p3) / 4, -ad1, ad1);