diff options
author | Ting Fu <ting.fu@intel.com> | 2019-09-18 15:05:33 +0800 |
---|---|---|
committer | Ruiling Song <ruiling.song@intel.com> | 2019-09-26 08:10:31 +0800 |
commit | 9691e2a4264b9859061efaaf818b528add45656f (patch) | |
tree | 08c67cd833743a851f92492bd1248e03f4b775b0 /libavfilter/vf_eq.c | |
parent | fc20ba9e049e5dde25643bffb2565a5477e6e5f6 (diff) | |
download | ffmpeg-9691e2a4264b9859061efaaf818b528add45656f.tar.gz |
checkasm/vf_eq: add test for vf_eq
Signed-off-by: Ting Fu <ting.fu@intel.com>
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Diffstat (limited to 'libavfilter/vf_eq.c')
-rw-r--r-- | libavfilter/vf_eq.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libavfilter/vf_eq.c b/libavfilter/vf_eq.c index 2c4c7e4d54..0f9d129255 100644 --- a/libavfilter/vf_eq.c +++ b/libavfilter/vf_eq.c @@ -174,12 +174,18 @@ static int set_expr(AVExpr **pexpr, const char *expr, const char *option, void * return 0; } +void ff_eq_init(EQContext *eq) +{ + eq->process = process_c; + if (ARCH_X86) + ff_eq_init_x86(eq); +} + static int initialize(AVFilterContext *ctx) { EQContext *eq = ctx->priv; int ret; - - eq->process = process_c; + ff_eq_init(eq); if ((ret = set_expr(&eq->contrast_pexpr, eq->contrast_expr, "contrast", ctx)) < 0 || (ret = set_expr(&eq->brightness_pexpr, eq->brightness_expr, "brightness", ctx)) < 0 || @@ -191,9 +197,6 @@ static int initialize(AVFilterContext *ctx) (ret = set_expr(&eq->gamma_weight_pexpr, eq->gamma_weight_expr, "gamma_weight", ctx)) < 0 ) return ret; - if (ARCH_X86) - ff_eq_init_x86(eq); - if (eq->eval_mode == EVAL_MODE_INIT) { set_gamma(eq); set_contrast(eq); |