changeset 11363:222d2661f373

noise reduction
author michael
date Sun, 02 Nov 2003 23:21:45 +0000
parents cd167d51a619
children 428974d67179
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Sun Nov 02 21:00:28 2003 +0000
+++ b/libmpcodecs/ve_lavc.c	Sun Nov 02 23:21:45 2003 +0000
@@ -133,6 +133,7 @@
 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 @@
 #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 @@
     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)
     {