From abfc6538215b95ebec2768dfb8d04c4beb9d2804 Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 2 Nov 2003 23:21:45 +0000 Subject: [PATCH] noise reduction git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11364 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ve_lavc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index cfc64d9e3e..04442e4b49 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -133,6 +133,7 @@ static char *lavc_param_intra_matrix = NULL; static char *lavc_param_inter_matrix = NULL; static int lavc_param_cbp= 0; static int lavc_param_mv0= 0; +static int lavc_param_noise_reduction= 0; #include "m_option.h" @@ -236,6 +237,7 @@ m_option_t lavcopts_conf[]={ #if LIBAVCODEC_BUILD >= 4683 {"mv0", &lavc_param_mv0, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_MV0, NULL}, #endif + {"nr", &lavc_param_noise_reduction, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL}, {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -346,6 +348,9 @@ static int config(struct vf_instance_s* vf, lavc_venc_context->coder_type= lavc_param_coder; lavc_venc_context->context_model= lavc_param_context; #endif +#if LIBAVCODEC_BUILD >= 4690 + lavc_venc_context->noise_reduction= lavc_param_noise_reduction; +#endif #if LIBAVCODEC_BUILD >= 4675 if (lavc_param_intra_matrix) {