#endif
#endif
#if CONFIG_AVFILTER
+ #if CONFIG_AFIR_FILTER
+ { "af_afir", checkasm_check_afir },
+ #endif
#if CONFIG_BLEND_FILTER
{ "vf_blend", checkasm_check_blend },
#endif
#if CONFIG_HFLIP_FILTER
{ "vf_hflip", checkasm_check_vf_hflip },
#endif
+ #if CONFIG_NLMEANS_FILTER
+ { "vf_nlmeans", checkasm_check_nlmeans },
+ #endif
#if CONFIG_THRESHOLD_FILTER
{ "vf_threshold", checkasm_check_vf_threshold },
#endif
int float_near_abs_eps(float a, float b, float eps)
{
float abs_diff = fabsf(a - b);
+ if (abs_diff < eps)
+ return 1;
- return abs_diff < eps;
+ fprintf(stderr, "test failed comparing %g with %g (abs diff=%g with EPS=%g)\n", a, b, abs_diff, eps);
+
+ return 0;
}
int float_near_abs_eps_array(const float *a, const float *b, float eps,
}
#endif
+#if !CONFIG_LINUX_PERF
static int bench_init_ffmpeg(void)
{
#ifdef AV_READ_TIME
return -1;
#endif
}
+#endif
static int bench_init(void)
{