summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorlorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-05 19:05:00 +0000
committerlorenm <lorenm@b3059339-0415-0410-9bf9-f77b7e298cf2>2005-06-05 19:05:00 +0000
commit09dce31b8b3f56edfa5d994ab999ec9a9723762d (patch)
tree986ecaf581164ab6f7a01bfeb3802ed5dddfb654 /libmpcodecs
parent6c83d9b34a1a0baa85004db86196dca853313760 (diff)
downloadmpv-09dce31b8b3f56edfa5d994ab999ec9a9723762d.tar.bz2
mpv-09dce31b8b3f56edfa5d994ab999ec9a9723762d.tar.xz
sync to x264 r252 (8x8dct)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15655 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ve_x264.c23
1 files changed, 16 insertions, 7 deletions
diff --git a/libmpcodecs/ve_x264.c b/libmpcodecs/ve_x264.c
index bc027a0fec..5e411bcb23 100644
--- a/libmpcodecs/ve_x264.c
+++ b/libmpcodecs/ve_x264.c
@@ -75,6 +75,9 @@ static int cabac = 1;
static int p4x4mv = 0;
static int p8x8mv = 1;
static int b8x8mv = 1;
+static int i8x8 = 1;
+static int i4x4 = 1;
+static int dct8 = 0;
static int direct_pred = X264_DIRECT_PRED_TEMPORAL;
static int weight_b = 0;
static int chroma_me = 1;
@@ -127,6 +130,12 @@ m_option_t x264encopts_conf[] = {
{"no8x8mv", &p8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL},
{"b8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"nob8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL},
+ {"i4x4", &i4x4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+ {"noi4x4", &i4x4, CONF_TYPE_FLAG, 0, 0, 0, NULL},
+ {"i8x8", &i8x8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+ {"noi8x8", &i8x8, CONF_TYPE_FLAG, 0, 0, 0, NULL},
+ {"8x8dct", &dct8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
+ {"no8x8dct", &dct8, CONF_TYPE_FLAG, 0, 0, 0, NULL},
{"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
{"weight_b", &weight_b, CONF_TYPE_FLAG, 0, 0, 1, NULL},
{"noweight_b", &weight_b, CONF_TYPE_FLAG, 0, 1, 0, NULL},
@@ -245,13 +254,13 @@ static int config(struct vf_instance_s* vf, int width, int height, int d_width,
}
if(me_method >= 3)
mod->param.analyse.i_me_range = me_range;
- mod->param.analyse.inter = X264_ANALYSE_I4x4;
- if(p4x4mv)
- mod->param.analyse.inter |= X264_ANALYSE_PSUB8x8;
- if(p8x8mv)
- mod->param.analyse.inter |= X264_ANALYSE_PSUB16x16;
- if(b8x8mv)
- mod->param.analyse.inter |= X264_ANALYSE_BSUB16x16;
+ mod->param.analyse.inter = 0;
+ if(p4x4mv) mod->param.analyse.inter |= X264_ANALYSE_PSUB8x8;
+ if(p8x8mv) mod->param.analyse.inter |= X264_ANALYSE_PSUB16x16;
+ if(b8x8mv) mod->param.analyse.inter |= X264_ANALYSE_BSUB16x16;
+ if(i4x4) mod->param.analyse.inter |= X264_ANALYSE_I4x4;
+ if(i8x8) mod->param.analyse.inter |= X264_ANALYSE_I8x8;
+ mod->param.analyse.b_transform_8x8 = dct8;
mod->param.analyse.i_direct_mv_pred = direct_pred;
mod->param.analyse.b_weighted_bipred = weight_b;
mod->param.analyse.i_chroma_qp_offset = chroma_qp_offset;