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);
Macro definitions for various function/variable attributes.
common internal and external API header
#define FFABS(a)
Absolute value, Note, INT_MIN / INT64_MIN result in undefined behavior as they are not representable ...
static void h263_v_loop_filter_c(uint8_t *src, int stride, int qscale)
av_cold void ff_h263dsp_init(H263DSPContext *ctx)
const uint8_t ff_h263_loop_filter_strength[32]
static void h263_h_loop_filter_c(uint8_t *src, int stride, int qscale)
void ff_h263dsp_init_mips(H263DSPContext *ctx)
void ff_h263dsp_init_x86(H263DSPContext *ctx)