# HG changeset patch # User michael # Date 1055540102 0 # Node ID bdb465bbf1f6a3aaf200ccb51fe7fe188528162b # Parent 804dbc4337509a3b120a7b8a9675e6bb8048f508 context model size & coder type options for FFV1 diff -r 804dbc433750 -r bdb465bbf1f6 libmpcodecs/ve_lavc.c --- 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++){