# HG changeset patch # User michael # Date 1032795976 0 # Node ID ca3aa049c9d45d482f4dd471c63b046489b9eca0 # Parent f00412e45b8994aa7a7127fe32b7ac8fe71c264f adaptive quant support ... diff -r f00412e45b89 -r ca3aa049c9d4 libmpcodecs/ve_lavc.c --- a/libmpcodecs/ve_lavc.c Mon Sep 23 07:49:25 2002 +0000 +++ b/libmpcodecs/ve_lavc.c Mon Sep 23 15:46:16 2002 +0000 @@ -89,6 +89,11 @@ #if LIBAVCODEC_BUILD >= 4623 static float lavc_param_aspect=0.0; #endif +static float lavc_param_lumi_masking= 0.0; +static float lavc_param_temporal_cplx_masking= 0.0; +static float lavc_param_spatial_cplx_masking= 0.0; +static float lavc_param_p_masking= 0.0; +static int lavc_param_normalize_aqp= 0; #include "cfgparser.h" @@ -148,6 +153,13 @@ #if LIBAVCODEC_BUILD >= 4623 {"aspect", &lavc_param_aspect, CONF_TYPE_FLOAT, CONF_RANGE, 0.2, 3.0, NULL}, #endif +#if LIBAVCODEC_BUILD >= 4625 + {"lumi_mask", &lavc_param_lumi_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL}, + {"tcplx_mask", &lavc_param_temporal_cplx_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL}, + {"scplx_mask", &lavc_param_spatial_cplx_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL}, + {"p_mask", &lavc_param_p_masking, CONF_TYPE_FLOAT, CONF_RANGE, -1.0, 1.0, NULL}, + {"naq", &lavc_param_normalize_aqp, CONF_TYPE_FLAG, 0, 0, 1, NULL}, +#endif {NULL, NULL, 0, 0, 0, 0, NULL} }; #endif @@ -251,6 +263,13 @@ lavc_venc_context->dct_algo= lavc_param_fdct; #endif +#if LIBAVCODEC_BUILD >= 4625 + lavc_venc_context->lumi_masking= lavc_param_lumi_masking; + lavc_venc_context->temporal_cplx_masking= lavc_param_temporal_cplx_masking; + lavc_venc_context->spatial_cplx_masking= lavc_param_spatial_cplx_masking; + lavc_venc_context->p_masking= lavc_param_p_masking; +#endif + #if LIBAVCODEC_BUILD >= 4623 if (lavc_param_aspect != 0.0) { @@ -303,6 +322,9 @@ if(lavc_param_gray) lavc_venc_context->flags|= CODEC_FLAG_GRAY; #endif +#if LIBAVCODEC_BUILD >= 4625 + if(lavc_param_normalize_aqp) lavc_venc_context->flags|= CODEC_FLAG_NORMALIZE_AQP; +#endif /* lavc internal 2pass bitrate control */ #ifdef HAVE_DIVX4ENCORE