comparison libmpcodecs/ve_x264.c @ 16712:2059bee8c11c

sync to x264 r318 (mixed_refs)
author lorenm
date Sat, 08 Oct 2005 22:28:27 +0000
parents e054a3c93a26
children cbd11ea4d424
comparison
equal deleted inserted replaced
16711:acea5fa35f16 16712:2059bee8c11c
79 static int i4x4 = 1; 79 static int i4x4 = 1;
80 static int dct8 = 0; 80 static int dct8 = 0;
81 static int direct_pred = X264_DIRECT_PRED_TEMPORAL; 81 static int direct_pred = X264_DIRECT_PRED_TEMPORAL;
82 static int weight_b = 0; 82 static int weight_b = 0;
83 static int chroma_me = 1; 83 static int chroma_me = 1;
84 static int mixed_references = 0;
84 static int chroma_qp_offset = 0; 85 static int chroma_qp_offset = 0;
85 static float ip_factor = 1.4; 86 static float ip_factor = 1.4;
86 static float pb_factor = 1.3; 87 static float pb_factor = 1.3;
87 static float ratetol = 1.0; 88 static float ratetol = 1.0;
88 static int vbv_maxrate = 0; 89 static int vbv_maxrate = 0;
148 {"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, 149 {"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
149 {"weight_b", &weight_b, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 150 {"weight_b", &weight_b, CONF_TYPE_FLAG, 0, 0, 1, NULL},
150 {"noweight_b", &weight_b, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 151 {"noweight_b", &weight_b, CONF_TYPE_FLAG, 0, 1, 0, NULL},
151 {"chroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 152 {"chroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 0, 1, NULL},
152 {"nochroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 153 {"nochroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 1, 0, NULL},
154 {"mixed_refs", &mixed_references, CONF_TYPE_FLAG, 0, 0, 1, NULL},
155 {"nomixed_refs", &mixed_references, CONF_TYPE_FLAG, 0, 1, 0, NULL},
153 {"chroma_qp_offset", &chroma_qp_offset, CONF_TYPE_INT, CONF_RANGE, -12, 12, NULL}, 156 {"chroma_qp_offset", &chroma_qp_offset, CONF_TYPE_INT, CONF_RANGE, -12, 12, NULL},
154 {"ip_factor", &ip_factor, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL}, 157 {"ip_factor", &ip_factor, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL},
155 {"pb_factor", &pb_factor, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL}, 158 {"pb_factor", &pb_factor, CONF_TYPE_FLOAT, CONF_RANGE, -10.0, 10.0, NULL},
156 {"ratetol", &ratetol, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 100.0, NULL}, 159 {"ratetol", &ratetol, CONF_TYPE_FLOAT, CONF_RANGE, 0.1, 100.0, NULL},
157 {"vbv_maxrate", &vbv_maxrate, CONF_TYPE_INT, CONF_RANGE, 0, 24000000, NULL}, 160 {"vbv_maxrate", &vbv_maxrate, CONF_TYPE_INT, CONF_RANGE, 0, 24000000, NULL},
279 mod->param.analyse.b_transform_8x8 = dct8; 282 mod->param.analyse.b_transform_8x8 = dct8;
280 mod->param.analyse.i_direct_mv_pred = direct_pred; 283 mod->param.analyse.i_direct_mv_pred = direct_pred;
281 mod->param.analyse.b_weighted_bipred = weight_b; 284 mod->param.analyse.b_weighted_bipred = weight_b;
282 mod->param.analyse.i_chroma_qp_offset = chroma_qp_offset; 285 mod->param.analyse.i_chroma_qp_offset = chroma_qp_offset;
283 mod->param.analyse.b_chroma_me = chroma_me; 286 mod->param.analyse.b_chroma_me = chroma_me;
287 mod->param.analyse.b_mixed_references = mixed_references;
284 288
285 mod->param.i_width = width; 289 mod->param.i_width = width;
286 mod->param.i_height = height; 290 mod->param.i_height = height;
287 mod->param.i_fps_num = mod->mux->h.dwRate; 291 mod->param.i_fps_num = mod->mux->h.dwRate;
288 mod->param.i_fps_den = mod->mux->h.dwScale; 292 mod->param.i_fps_den = mod->mux->h.dwScale;