changeset 11910:2f54892f0598

quantizer noise shaping
author michael
date Mon, 02 Feb 2004 14:19:55 +0000
parents 2c55dae79df1
children bca87badd7ee
files DOCS/man/en/mplayer.1 libmpcodecs/ve_lavc.c
diffstat 2 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/DOCS/man/en/mplayer.1	Mon Feb 02 08:33:06 2004 +0000
+++ b/DOCS/man/en/mplayer.1	Mon Feb 02 14:19:55 2004 +0000
@@ -4892,6 +4892,22 @@
 .B nr=<0\-100000>
 noise reduction, 0 is disabled
 .TP
+.B qns=<0\-3>
+quantizer noise shaping, reduces ringing artefacts, larger values are slower
+but may not result in better quality
+.PD 0
+.RSs
+.IPs 0
+disabled (default)
+.IPs 1
+only lower the absolute value of coefficients
+.IPs 2
+only change coefficients before the last non zero coefficient + 1
+.IPs 3
+try all
+.RE
+.PD 1
+.TP
 .B inter_matrix=<comma separated matrix>
 Use custom inter matrix. It needs a comma separated string of 64 integers.
 .TP
--- a/libmpcodecs/ve_lavc.c	Mon Feb 02 08:33:06 2004 +0000
+++ b/libmpcodecs/ve_lavc.c	Mon Feb 02 14:19:55 2004 +0000
@@ -140,6 +140,7 @@
 static int lavc_param_cbp= 0;
 static int lavc_param_mv0= 0;
 static int lavc_param_noise_reduction= 0;
+static int lavc_param_qns= 0;
 static int lavc_param_qp_rd= 0;
 static int lavc_param_inter_threshold= 0;
 static int lavc_param_sc_threshold= 0;
@@ -286,6 +287,7 @@
 	{"inter_threshold", &lavc_param_inter_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL},
 	{"sc_threshold", &lavc_param_sc_threshold, CONF_TYPE_INT, CONF_RANGE, -1000000, 1000000, NULL},
 	{"top", &lavc_param_top, CONF_TYPE_INT, CONF_RANGE, -1, 1, NULL},
+        {"qns", &lavc_param_qns, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -402,6 +404,9 @@
 #if LIBAVCODEC_BUILD >= 4690
     lavc_venc_context->noise_reduction= lavc_param_noise_reduction;
 #endif
+#if LIBAVCODEC_BUILD >= 4700
+    lavc_venc_context->quantizer_noise_shaping= lavc_param_qns;
+#endif
 #if LIBAVCODEC_BUILD >= 4693
     lavc_venc_context->inter_threshold= lavc_param_inter_threshold;
 #endif