changeset 11445:36bbf719cfa6

RD optimal lambda->qp support
author michael
date Wed, 12 Nov 2003 12:30:52 +0000
parents d6ef9000aed5
children b00d054eb9ae
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Wed Nov 12 11:03:43 2003 +0000
+++ b/libmpcodecs/ve_lavc.c	Wed Nov 12 12:30:52 2003 +0000
@@ -134,6 +134,7 @@
 static int lavc_param_cbp= 0;
 static int lavc_param_mv0= 0;
 static int lavc_param_noise_reduction= 0;
+static int lavc_param_qp_rd= 0;
 
 char *lavc_param_acodec = "mp2";
 int lavc_param_atag = 0;
@@ -245,6 +246,9 @@
 	{"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},
+#ifdef CODEC_FLAG_QP_RD
+	{"qprd", &lavc_param_qp_rd, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QP_RD, NULL},
+#endif
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -511,6 +515,7 @@
     lavc_venc_context->flags|= lavc_param_data_partitioning;
     lavc_venc_context->flags|= lavc_param_cbp;
     lavc_venc_context->flags|= lavc_param_mv0;
+    lavc_venc_context->flags|= lavc_param_qp_rd;
     if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY;
 
     if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP;