changeset 12764:8109997eb7d3

dc precision and closed gop patch by (Nico Sabbi <nsabbi at tiscali dot it>)
author michael
date Tue, 06 Jul 2004 11:15:06 +0000
parents f34a7cf4265a
children d04f65418a8e
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Tue Jul 06 11:14:29 2004 +0000
+++ b/libmpcodecs/ve_lavc.c	Tue Jul 06 11:15:06 2004 +0000
@@ -150,6 +150,8 @@
 static int lavc_param_alt= 0;
 static int lavc_param_ilme= 0;
 static int lavc_param_nssew= 8;
+static int lavc_param_closed_gop = 0;
+static int lavc_param_dc_precision = 8;
 static int lavc_param_threads= 1;
 
 
@@ -288,6 +290,12 @@
 #ifdef CODEC_FLAG_INTERLACED_ME
 	{"ilme", &lavc_param_ilme, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_INTERLACED_ME, NULL},
 #endif
+#ifdef CODEC_FLAG_CLOSED_GOP
+	{"cgop", &lavc_param_closed_gop, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_CLOSED_GOP, NULL},
+#endif
+#if LIBAVCODEC_BUILD >= 4711
+	{"dc", &lavc_param_dc_precision, CONF_TYPE_INT, CONF_RANGE, 8, 10, NULL},
+#endif
 	{"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},
@@ -585,6 +593,9 @@
     lavc_venc_context->flags|= lavc_param_ss;
     lavc_venc_context->flags|= lavc_param_alt;
     lavc_venc_context->flags|= lavc_param_ilme;
+#ifdef CODEC_FLAG_CLOSED_GOP
+    lavc_venc_context->flags|= lavc_param_closed_gop;
+#endif    
     if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY;
 
     if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP;
@@ -592,6 +603,9 @@
 #if LIBAVCODEC_BUILD >= 4643
     lavc_venc_context->flags|= lavc_param_psnr;
 #endif
+#if LIBAVCODEC_BUILD >= 4711
+    lavc_venc_context->intra_dc_precision = lavc_param_dc_precision - 8;
+#endif
     lavc_venc_context->prediction_method= lavc_param_prediction_method;
     switch(lavc_param_format)
     {