summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-06 15:46:05 +0000
committerrguyom <rguyom@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-04-06 15:46:05 +0000
commit57711f674d1a6f735973d550719ee4442cb4364f (patch)
tree6d75ca66d61fbe1e4519b04287d4e25d5be35dc1 /libmpcodecs
parentf03f0f10100102e80882b43b9a5b0c4852773cb5 (diff)
downloadmpv-57711f674d1a6f735973d550719ee4442cb4364f.tar.bz2
mpv-57711f674d1a6f735973d550719ee4442cb4364f.tar.xz
+ bf_threshold
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9844 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_xvid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libmpcodecs/ve_xvid.c b/libmpcodecs/ve_xvid.c
index b10eeb68f1..c0c7bb1198 100644
--- a/libmpcodecs/ve_xvid.c
+++ b/libmpcodecs/ve_xvid.c
@@ -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) {