diff options
author | Uoti Urpala <uau@mplayer2.org> | 2011-07-18 00:15:08 +0300 |
---|---|---|
committer | Uoti Urpala <uau@mplayer2.org> | 2011-07-18 00:57:05 +0300 |
commit | 4e2b15fc5e5f457f62605262a46962b5fd63ff99 (patch) | |
tree | 5156034070257cf3652040facf3a8de9453477ec /libmpcodecs | |
parent | 25de40142507eadb8b2e958346999eb52ed7f9fd (diff) |
vf_qp: enable compilation depending on libavutil eval API
Libavutil eval API seems to be enough for vf_qp, so enable the filter
if the API is available. Also clean up some left over lines for other
filters in Makefile.
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vf.c | 2 | ||||
-rw-r--r-- | libmpcodecs/vf_qp.c | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/libmpcodecs/vf.c b/libmpcodecs/vf.c index eefdaa3c46..bb9ebff7b4 100644 --- a/libmpcodecs/vf.c +++ b/libmpcodecs/vf.c @@ -186,11 +186,11 @@ static const vf_info_t* const filter_list[]={ #ifdef CONFIG_FFMPEG_INTERNALS &vf_info_spp, &vf_info_fspp, - &vf_info_qp, &vf_info_mcdeint, #endif #ifdef CONFIG_FFMPEG_EVAL_API &vf_info_geq, + &vf_info_qp, #endif &vf_info_yuvcsp, &vf_info_kerndeint, diff --git a/libmpcodecs/vf_qp.c b/libmpcodecs/vf_qp.c index d78cd8251e..5e418d2814 100644 --- a/libmpcodecs/vf_qp.c +++ b/libmpcodecs/vf_qp.c @@ -24,6 +24,8 @@ #include <math.h> #include <inttypes.h> +#include <libavutil/eval.h> + #include "mp_msg.h" #include "cpudetect.h" #include "img_format.h" @@ -31,9 +33,6 @@ #include "vf.h" #include "libvo/fastmemcpy.h" -#include "libavcodec/avcodec.h" -#include "libavutil/eval.h" - struct vf_priv_s { char eq[200]; @@ -69,7 +68,7 @@ static int config(struct vf_instance *vf, double temp_val; int res; - res= av_parse_and_eval_expr(&temp_val, vf->priv->eq, const_names, const_values, NULL, NULL, NULL, NULL, NULL, 0, NULL); + res= av_expr_parse_and_eval(&temp_val, vf->priv->eq, const_names, const_values, NULL, NULL, NULL, NULL, NULL, 0, NULL); if (res < 0){ mp_msg(MSGT_VFILTER, MSGL_ERR, "qp: Error evaluating \"%s\" \n", vf->priv->eq); |