comparison libmpcodecs/ve_lavc.c @ 34533:cbc1222a1e95

Set UMV flag via AVDictionary.
author reimar
date Sat, 28 Jan 2012 12:24:12 +0000
parents 810d6328caed
children a97a86317704
comparison
equal deleted inserted replaced
34532:810d6328caed 34533:cbc1222a1e95
264 {"preme", &lavc_param_pre_me, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, 264 {"preme", &lavc_param_pre_me, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL},
265 {"subq", &lavc_param_me_subpel_quality, CONF_TYPE_INT, CONF_RANGE, 0, 8, NULL}, 265 {"subq", &lavc_param_me_subpel_quality, CONF_TYPE_INT, CONF_RANGE, 0, 8, NULL},
266 {"me_range", &lavc_param_me_range, CONF_TYPE_INT, CONF_RANGE, 0, 16000, NULL}, 266 {"me_range", &lavc_param_me_range, CONF_TYPE_INT, CONF_RANGE, 0, 16000, NULL},
267 #ifdef CODEC_FLAG_AC_PRED 267 #ifdef CODEC_FLAG_AC_PRED
268 {"aic", &lavc_param_aic, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED, NULL}, 268 {"aic", &lavc_param_aic, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_AC_PRED, NULL},
269 {"umv", &lavc_param_umv, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_UMV, NULL}, 269 {"umv", &lavc_param_umv, CONF_TYPE_FLAG, 0, 0, 1, NULL},
270 #endif 270 #endif
271 #ifdef CODEC_FLAG_H263P_AIV 271 #ifdef CODEC_FLAG_H263P_AIV
272 {"aiv", &lavc_param_aiv, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIV, NULL}, 272 {"aiv", &lavc_param_aiv, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_H263P_AIV, NULL},
273 #endif 273 #endif
274 #ifdef CODEC_FLAG_OBMC 274 #ifdef CODEC_FLAG_OBMC
562 lavc_venc_context->trellis = lavc_param_trell; 562 lavc_venc_context->trellis = lavc_param_trell;
563 lavc_venc_context->flags|= lavc_param_lowdelay; 563 lavc_venc_context->flags|= lavc_param_lowdelay;
564 lavc_venc_context->flags|= lavc_param_bit_exact; 564 lavc_venc_context->flags|= lavc_param_bit_exact;
565 lavc_venc_context->flags|= lavc_param_aic; 565 lavc_venc_context->flags|= lavc_param_aic;
566 lavc_venc_context->flags|= lavc_param_aiv; 566 lavc_venc_context->flags|= lavc_param_aiv;
567 lavc_venc_context->flags|= lavc_param_umv; 567 if (lavc_param_umv)
568 av_dict_set(&opts, "umv", "1", 0);
568 lavc_venc_context->flags|= lavc_param_obmc; 569 lavc_venc_context->flags|= lavc_param_obmc;
569 lavc_venc_context->flags|= lavc_param_loop; 570 lavc_venc_context->flags|= lavc_param_loop;
570 lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0; 571 lavc_venc_context->flags|= lavc_param_v4mv ? CODEC_FLAG_4MV : 0;
571 if (lavc_param_data_partitioning) 572 if (lavc_param_data_partitioning)
572 av_dict_set(&opts, "data_partitioning", "1", 0); 573 av_dict_set(&opts, "data_partitioning", "1", 0);