summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-13 21:35:02 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-06-13 21:35:02 +0000
commitb4f21dec4e36343c0be758bb9245358c04aad704 (patch)
treea8c4ed630fb9b46b30d9caf0c572cdbb60d2c5e6 /libmpcodecs
parent13cd65dc721909a67c3f8d07f9730ac0e888ba48 (diff)
downloadmpv-b4f21dec4e36343c0be758bb9245358c04aad704.tar.bz2
mpv-b4f21dec4e36343c0be758bb9245358c04aad704.tar.xz
context model size & coder type options for FFV1
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10292 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_lavc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c
index 342bcf2f67..35abc44a92 100644
--- a/libmpcodecs/ve_lavc.c
+++ b/libmpcodecs/ve_lavc.c
@@ -125,6 +125,8 @@ static int lavc_param_me_range= 0;
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 @@ struct config lavcopts_conf[]={
{"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 @@ static int config(struct vf_instance_s* vf,
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++){