mirror of https://github.com/mpv-player/mpv
support lavc mblmin and mblmax
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20772 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
78a3bf6c9b
commit
da8cb27dbd
|
@ -52,6 +52,8 @@ static int lavc_param_mb_qmin = 2;
|
|||
static int lavc_param_mb_qmax = 31;
|
||||
static float lavc_param_lmin = 2;
|
||||
static float lavc_param_lmax = 31;
|
||||
static float lavc_param_mb_lmin = 2;
|
||||
static float lavc_param_mb_lmax = 31;
|
||||
static int lavc_param_vqdiff = 3;
|
||||
static float lavc_param_vqcompress = 0.5;
|
||||
static float lavc_param_vqblur = 0.5;
|
||||
|
@ -175,6 +177,8 @@ m_option_t lavcopts_conf[]={
|
|||
{"mbqmax", &lavc_param_mb_qmax, CONF_TYPE_INT, CONF_RANGE, 1, 31, NULL},
|
||||
{"lmin", &lavc_param_lmin, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 255.0, NULL},
|
||||
{"lmax", &lavc_param_lmax, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 255.0, NULL},
|
||||
{"mblmin", &lavc_param_mb_lmin, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 255.0, NULL},
|
||||
{"mblmax", &lavc_param_mb_lmax, CONF_TYPE_FLOAT, CONF_RANGE, 0.01, 255.0, 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},
|
||||
|
@ -341,6 +345,8 @@ static int config(struct vf_instance_s* vf,
|
|||
lavc_venc_context->mb_qmax= lavc_param_mb_qmax;
|
||||
lavc_venc_context->lmin= (int)(FF_QP2LAMBDA * lavc_param_lmin + 0.5);
|
||||
lavc_venc_context->lmax= (int)(FF_QP2LAMBDA * lavc_param_lmax + 0.5);
|
||||
lavc_venc_context->mb_lmin= (int)(FF_QP2LAMBDA * lavc_param_mb_lmin + 0.5);
|
||||
lavc_venc_context->mb_lmax= (int)(FF_QP2LAMBDA * lavc_param_mb_lmax + 0.5);
|
||||
lavc_venc_context->max_qdiff= lavc_param_vqdiff;
|
||||
lavc_venc_context->qcompress= lavc_param_vqcompress;
|
||||
lavc_venc_context->qblur= lavc_param_vqblur;
|
||||
|
|
Loading…
Reference in New Issue