1
mirror of https://github.com/mpv-player/mpv synced 2024-09-12 23:45:53 +02:00

+ bf_threshold

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9844 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
rguyom 2003-04-06 15:46:05 +00:00
parent f03f0f1010
commit 57711f674d

View File

@ -99,6 +99,7 @@ static int xvidenc_qpel = 0;
static int xvidenc_max_bframes = 0;
static int xvidenc_bquant_ratio = 150;
static int xvidenc_bquant_offset = 100;
static int xvidenc_bf_threshold = 0;
static int xvidenc_gmc = 0;
static int xvidenc_chroma_me = 0;
static int xvidenc_chroma_opt = 0;
@ -139,6 +140,7 @@ struct config xvidencopts_conf[] = {
{ "max_bframes", &xvidenc_max_bframes, CONF_TYPE_INT, CONF_RANGE, 0, 4, NULL},
{ "bquant_ratio", &xvidenc_bquant_ratio, CONF_TYPE_INT, CONF_RANGE, 0, 1000, NULL},
{ "bquant_offset", &xvidenc_bquant_offset, CONF_TYPE_INT, CONF_RANGE, -1000, 1000, NULL},
{ "bf_threshold", &xvidenc_bf_threshold, CONF_TYPE_INT, CONF_RANGE, -255, 255, NULL},
{ "reduced", &xvidenc_reduced, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{ "gmc", &xvidenc_gmc, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{ "chroma_me", &xvidenc_chroma_me, CONF_TYPE_FLAG, 0, 0, 1, NULL},
@ -272,6 +274,7 @@ config(struct vf_instance_s* vf,
if (xvidenc_interlacing)
fp->enc_frame.general |= XVID_INTERLACING;
#ifdef XVID_API_UNSTABLE
fp->enc_frame.bframe_threshold = xvidenc_bf_threshold;
if (xvidenc_lumi_mask)
fp->enc_frame.general |= XVID_LUMIMASKING;
if (xvidenc_qpel) {