Mercurial > libavcodec.hg
comparison motion_est.c @ 4307:649e51394b6f libavcodec
10l
author | michael |
---|---|
date | Sun, 17 Dec 2006 15:41:30 +0000 |
parents | 4e75fbc983c9 |
children | 5a2ee0bc2739 |
comparison
equal
deleted
inserted
replaced
4306:331961478469 | 4307:649e51394b6f |
---|---|
228 static void zero_hpel(uint8_t *a, const uint8_t *b, int stride, int h){ | 228 static void zero_hpel(uint8_t *a, const uint8_t *b, int stride, int h){ |
229 } | 229 } |
230 | 230 |
231 void ff_init_me(MpegEncContext *s){ | 231 void ff_init_me(MpegEncContext *s){ |
232 MotionEstContext * const c= &s->me; | 232 MotionEstContext * const c= &s->me; |
233 c->avctx= s->avctx; | |
234 int cache_size= FFMIN(ME_MAP_SIZE>>ME_MAP_SHIFT, 1<<ME_MAP_SHIFT); | 233 int cache_size= FFMIN(ME_MAP_SIZE>>ME_MAP_SHIFT, 1<<ME_MAP_SHIFT); |
235 int dia_size= FFMAX(FFABS(s->avctx->dia_size)&255, FFABS(s->avctx->pre_dia_size)&255); | 234 int dia_size= FFMAX(FFABS(s->avctx->dia_size)&255, FFABS(s->avctx->pre_dia_size)&255); |
235 c->avctx= s->avctx; | |
236 | 236 |
237 if(cache_size < 2*dia_size && !c->stride){ | 237 if(cache_size < 2*dia_size && !c->stride){ |
238 av_log(s->avctx, AV_LOG_INFO, "ME_MAP size may be a little small for the selected diamond size\n"); | 238 av_log(s->avctx, AV_LOG_INFO, "ME_MAP size may be a little small for the selected diamond size\n"); |
239 } | 239 } |
240 | 240 |