comparison libmpcodecs/ve_x264.c @ 15654:c515b4dcec6b

sync to x264 r252 (8x8dct)
author lorenm
date Sun, 05 Jun 2005 19:05:00 +0000
parents e848b20cd449
children 35d05a4d14fd
comparison
equal deleted inserted replaced
15653:4aae027bf72f 15654:c515b4dcec6b
73 static int deblockbeta = 0; 73 static int deblockbeta = 0;
74 static int cabac = 1; 74 static int cabac = 1;
75 static int p4x4mv = 0; 75 static int p4x4mv = 0;
76 static int p8x8mv = 1; 76 static int p8x8mv = 1;
77 static int b8x8mv = 1; 77 static int b8x8mv = 1;
78 static int i8x8 = 1;
79 static int i4x4 = 1;
80 static int dct8 = 0;
78 static int direct_pred = X264_DIRECT_PRED_TEMPORAL; 81 static int direct_pred = X264_DIRECT_PRED_TEMPORAL;
79 static int weight_b = 0; 82 static int weight_b = 0;
80 static int chroma_me = 1; 83 static int chroma_me = 1;
81 static int chroma_qp_offset = 0; 84 static int chroma_qp_offset = 0;
82 static float ip_factor = 1.4; 85 static float ip_factor = 1.4;
125 {"no4x4mv", &p4x4mv, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 128 {"no4x4mv", &p4x4mv, CONF_TYPE_FLAG, 0, 1, 0, NULL},
126 {"8x8mv", &p8x8mv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 129 {"8x8mv", &p8x8mv, CONF_TYPE_FLAG, 0, 0, 1, NULL},
127 {"no8x8mv", &p8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 130 {"no8x8mv", &p8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL},
128 {"b8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 131 {"b8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 0, 1, NULL},
129 {"nob8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 132 {"nob8x8mv", &b8x8mv, CONF_TYPE_FLAG, 0, 1, 0, NULL},
133 {"i4x4", &i4x4, CONF_TYPE_FLAG, 0, 0, 1, NULL},
134 {"noi4x4", &i4x4, CONF_TYPE_FLAG, 0, 0, 0, NULL},
135 {"i8x8", &i8x8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
136 {"noi8x8", &i8x8, CONF_TYPE_FLAG, 0, 0, 0, NULL},
137 {"8x8dct", &dct8, CONF_TYPE_FLAG, 0, 0, 1, NULL},
138 {"no8x8dct", &dct8, CONF_TYPE_FLAG, 0, 0, 0, NULL},
130 {"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL}, 139 {"direct_pred", &direct_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2, NULL},
131 {"weight_b", &weight_b, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 140 {"weight_b", &weight_b, CONF_TYPE_FLAG, 0, 0, 1, NULL},
132 {"noweight_b", &weight_b, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 141 {"noweight_b", &weight_b, CONF_TYPE_FLAG, 0, 1, 0, NULL},
133 {"chroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 0, 1, NULL}, 142 {"chroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 0, 1, NULL},
134 {"nochroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 1, 0, NULL}, 143 {"nochroma_me", &chroma_me, CONF_TYPE_FLAG, 0, 1, 0, NULL},
243 case 3: mod->param.analyse.i_me_method = X264_ME_UMH; break; 252 case 3: mod->param.analyse.i_me_method = X264_ME_UMH; break;
244 case 4: mod->param.analyse.i_me_method = X264_ME_ESA; break; 253 case 4: mod->param.analyse.i_me_method = X264_ME_ESA; break;
245 } 254 }
246 if(me_method >= 3) 255 if(me_method >= 3)
247 mod->param.analyse.i_me_range = me_range; 256 mod->param.analyse.i_me_range = me_range;
248 mod->param.analyse.inter = X264_ANALYSE_I4x4; 257 mod->param.analyse.inter = 0;
249 if(p4x4mv) 258 if(p4x4mv) mod->param.analyse.inter |= X264_ANALYSE_PSUB8x8;
250 mod->param.analyse.inter |= X264_ANALYSE_PSUB8x8; 259 if(p8x8mv) mod->param.analyse.inter |= X264_ANALYSE_PSUB16x16;
251 if(p8x8mv) 260 if(b8x8mv) mod->param.analyse.inter |= X264_ANALYSE_BSUB16x16;
252 mod->param.analyse.inter |= X264_ANALYSE_PSUB16x16; 261 if(i4x4) mod->param.analyse.inter |= X264_ANALYSE_I4x4;
253 if(b8x8mv) 262 if(i8x8) mod->param.analyse.inter |= X264_ANALYSE_I8x8;
254 mod->param.analyse.inter |= X264_ANALYSE_BSUB16x16; 263 mod->param.analyse.b_transform_8x8 = dct8;
255 mod->param.analyse.i_direct_mv_pred = direct_pred; 264 mod->param.analyse.i_direct_mv_pred = direct_pred;
256 mod->param.analyse.b_weighted_bipred = weight_b; 265 mod->param.analyse.b_weighted_bipred = weight_b;
257 mod->param.analyse.i_chroma_qp_offset = chroma_qp_offset; 266 mod->param.analyse.i_chroma_qp_offset = chroma_qp_offset;
258 mod->param.analyse.b_chroma_me = chroma_me; 267 mod->param.analyse.b_chroma_me = chroma_me;
259 268