changeset 10291:bdb465bbf1f6

context model size & coder type options for FFV1
author michael
date Fri, 13 Jun 2003 21:35:02 +0000
parents 804dbc433750
children 41a8c6fff888
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Fri Jun 13 21:06:06 2003 +0000
+++ b/libmpcodecs/ve_lavc.c	Fri Jun 13 21:35:02 2003 +0000
@@ -125,6 +125,8 @@
 static int lavc_param_ibias= FF_DEFAULT_QUANT_BIAS;
 static int lavc_param_pbias= FF_DEFAULT_QUANT_BIAS;
 #endif
+static int lavc_param_coder= 0;
+static int lavc_param_context= 0;
 
 #include "cfgparser.h"
 
@@ -211,6 +213,10 @@
 	{"ibias", &lavc_param_ibias, CONF_TYPE_INT, CONF_RANGE, -512, 512, NULL},
 	{"pbias", &lavc_param_pbias, CONF_TYPE_INT, CONF_RANGE, -512, 512, NULL},
 #endif
+#if LIBAVCODEC_BUILD >= 4669
+	{"coder", &lavc_param_coder, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL},
+	{"context", &lavc_param_context, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL},
+#endif
 	{NULL, NULL, 0, 0, 0, 0, NULL}
 };
 #endif
@@ -309,6 +315,10 @@
     lavc_venc_context->intra_quant_bias= lavc_param_ibias;
     lavc_venc_context->inter_quant_bias= lavc_param_pbias;
 #endif
+#if LIBAVCODEC_BUILD >= 4669
+    lavc_venc_context->coder_type= lavc_param_coder;
+    lavc_venc_context->context_model= lavc_param_context;
+#endif
 
     p= lavc_param_rc_override_string;
     for(i=0; p; i++){