Mercurial > mplayer.hg
changeset 8492:81f01b7b3f6d
mb qp limits
author | michael |
---|---|
date | Wed, 18 Dec 2002 10:51:10 +0000 |
parents | ce25d80dd6c3 |
children | dc038bbb36a3 |
files | DOCS/tech/libavc-options.txt libmpcodecs/ve_lavc.c |
diffstat | 2 files changed, 15 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/DOCS/tech/libavc-options.txt Wed Dec 18 08:10:24 2002 +0000 +++ b/DOCS/tech/libavc-options.txt Wed Dec 18 10:51:10 2002 +0000 @@ -29,6 +29,12 @@ 31 default 10-31 should be a sane range +mbqmin 1-31 (minimum macroblock quantizer) for pass1/2 + 2 default + +mbqmax 1-31 (maximum macroblock quantizer) for pass1/2 + 31 default + vqdiff 1-31 (maximum quantizer difference between I or P frames) for pass1/2 3 default @@ -265,7 +271,7 @@ 0 left prediction 1 plane/gradient prediction 2 median prediction - + lavdopts: (decoder options) ---------------------------
--- a/libmpcodecs/ve_lavc.c Wed Dec 18 08:10:24 2002 +0000 +++ b/libmpcodecs/ve_lavc.c Wed Dec 18 10:51:10 2002 +0000 @@ -62,6 +62,8 @@ static int lavc_param_vqscale = 0; static int lavc_param_vqmin = 2; static int lavc_param_vqmax = 31; +static int lavc_param_mb_qmin = 2; +static int lavc_param_mb_qmax = 31; static int lavc_param_vqdiff = 3; static float lavc_param_vqcompress = 0.5; static float lavc_param_vqblur = 0.5; @@ -119,6 +121,8 @@ {"vqscale", &lavc_param_vqscale, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL}, {"vqmin", &lavc_param_vqmin, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL}, {"vqmax", &lavc_param_vqmax, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL}, + {"mbqmin", &lavc_param_mb_qmin, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL}, + {"mbqmax", &lavc_param_mb_qmax, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL}, {"vqdiff", &lavc_param_vqdiff, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL}, {"vqcomp", &lavc_param_vqcompress, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL}, {"vqblur", &lavc_param_vqblur, CONF_TYPE_FLOAT, CONF_RANGE, 0.0, 1.0, NULL}, @@ -208,6 +212,10 @@ lavc_venc_context->frame_rate = (float)mux_v->h.dwRate/mux_v->h.dwScale * FRAME_RATE_BASE; lavc_venc_context->qmin= lavc_param_vqmin; lavc_venc_context->qmax= lavc_param_vqmax; +#if LIBAVCODEC_BUILD >= 4646 + lavc_venc_context->mb_qmin= lavc_param_mb_qmin; + lavc_venc_context->mb_qmax= lavc_param_mb_qmax; +#endif lavc_venc_context->max_qdiff= lavc_param_vqdiff; lavc_venc_context->qcompress= lavc_param_vqcompress; lavc_venc_context->qblur= lavc_param_vqblur;