Mercurial > mplayer.hg
comparison libmpcodecs/ve_lavc.c @ 8709:5ed237f98f82
motion estimation pre pass
author | michael |
---|---|
date | Thu, 02 Jan 2003 01:33:14 +0000 |
parents | e74e46ba03cc |
children | 324afc962aee |
comparison
equal
deleted
inserted
replaced
8708:47e219bf777d | 8709:5ed237f98f82 |
---|---|
112 static int lavc_param_mb_cmp= 0; | 112 static int lavc_param_mb_cmp= 0; |
113 static int lavc_param_dia_size= 0; | 113 static int lavc_param_dia_size= 0; |
114 static int lavc_param_qpel= 0; | 114 static int lavc_param_qpel= 0; |
115 static int lavc_param_trell= 0; | 115 static int lavc_param_trell= 0; |
116 static int lavc_param_last_pred= 0; | 116 static int lavc_param_last_pred= 0; |
117 static int lavc_param_pre_me= 1; | |
117 | 118 |
118 #include "cfgparser.h" | 119 #include "cfgparser.h" |
119 | 120 |
120 #ifdef USE_LIBAVCODEC | 121 #ifdef USE_LIBAVCODEC |
121 struct config lavcopts_conf[]={ | 122 struct config lavcopts_conf[]={ |
184 {"qpel", &lavc_param_qpel, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QPEL, NULL}, | 185 {"qpel", &lavc_param_qpel, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_QPEL, NULL}, |
185 #if LIBAVCODEC_BUILD >= 4648 | 186 #if LIBAVCODEC_BUILD >= 4648 |
186 {"trell", &lavc_param_trell, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_TRELLIS_QUANT, NULL}, | 187 {"trell", &lavc_param_trell, CONF_TYPE_FLAG, 0, 0, CODEC_FLAG_TRELLIS_QUANT, NULL}, |
187 #endif | 188 #endif |
188 {"last_pred", &lavc_param_last_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, | 189 {"last_pred", &lavc_param_last_pred, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, |
190 {"preme", &lavc_param_pre_me, CONF_TYPE_INT, CONF_RANGE, 0, 2000, NULL}, | |
189 {NULL, NULL, 0, 0, 0, 0, NULL} | 191 {NULL, NULL, 0, 0, 0, 0, NULL} |
190 }; | 192 }; |
191 #endif | 193 #endif |
192 | 194 |
193 struct vf_priv_s { | 195 struct vf_priv_s { |
260 lavc_venc_context->debug= lavc_param_debug; | 262 lavc_venc_context->debug= lavc_param_debug; |
261 #endif | 263 #endif |
262 #if LIBAVCODEC_BUILD >= 4649 | 264 #if LIBAVCODEC_BUILD >= 4649 |
263 lavc_venc_context->last_predictor_count= lavc_param_last_pred; | 265 lavc_venc_context->last_predictor_count= lavc_param_last_pred; |
264 #endif | 266 #endif |
267 #if LIBAVCODEC_BUILD >= 4650 | |
268 lavc_venc_context->pre_me= lavc_param_pre_me; | |
269 #endif | |
265 | 270 |
266 p= lavc_param_rc_override_string; | 271 p= lavc_param_rc_override_string; |
267 for(i=0; p; i++){ | 272 for(i=0; p; i++){ |
268 int start, end, q; | 273 int start, end, q; |
269 int e=sscanf(p, "%d,%d,%d", &start, &end, &q); | 274 int e=sscanf(p, "%d,%d,%d", &start, &end, &q); |