mirror of
https://github.com/mpv-player/mpv
synced 2025-01-20 21:07:29 +01:00
support downscaling frames for dynamic b frame decission
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17244 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bd368b82f2
commit
1d132c16ae
@ -156,6 +156,7 @@ static int lavc_param_closed_gop = 0;
|
|||||||
static int lavc_param_dc_precision = 8;
|
static int lavc_param_dc_precision = 8;
|
||||||
static int lavc_param_threads= 1;
|
static int lavc_param_threads= 1;
|
||||||
static int lavc_param_turbo = 0;
|
static int lavc_param_turbo = 0;
|
||||||
|
static int lavc_param_brd_scale = 0;
|
||||||
|
|
||||||
|
|
||||||
char *lavc_param_acodec = "mp2";
|
char *lavc_param_acodec = "mp2";
|
||||||
@ -310,6 +311,7 @@ m_option_t lavcopts_conf[]={
|
|||||||
{"nssew", &lavc_param_nssew, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
|
{"nssew", &lavc_param_nssew, CONF_TYPE_INT, CONF_RANGE, 0, 1000000, NULL},
|
||||||
{"threads", &lavc_param_threads, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL},
|
{"threads", &lavc_param_threads, CONF_TYPE_INT, CONF_RANGE, 1, 8, NULL},
|
||||||
{"turbo", &lavc_param_turbo, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
{"turbo", &lavc_param_turbo, CONF_TYPE_FLAG, 0, 0, 1, NULL},
|
||||||
|
{"brd_scale", &lavc_param_brd_scale, CONF_TYPE_INT, CONF_RANGE, 0, 10, NULL},
|
||||||
{NULL, NULL, 0, 0, 0, 0, NULL}
|
{NULL, NULL, 0, 0, 0, 0, NULL}
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
@ -622,6 +624,7 @@ static int config(struct vf_instance_s* vf,
|
|||||||
lavc_venc_context->intra_dc_precision = lavc_param_dc_precision - 8;
|
lavc_venc_context->intra_dc_precision = lavc_param_dc_precision - 8;
|
||||||
#endif
|
#endif
|
||||||
lavc_venc_context->prediction_method= lavc_param_prediction_method;
|
lavc_venc_context->prediction_method= lavc_param_prediction_method;
|
||||||
|
lavc_venc_context->brd_scale = lavc_param_brd_scale;
|
||||||
switch(lavc_param_format)
|
switch(lavc_param_format)
|
||||||
{
|
{
|
||||||
case IMGFMT_YV12:
|
case IMGFMT_YV12:
|
||||||
|
Loading…
Reference in New Issue
Block a user