From 513fbd8e5ab9ca266394112b177a40b6eb1d8208 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Thu, 23 Mar 2006 20:16:36 +0000 Subject: prefetch pixels for future motion compensation. 2-5% faster h264. Originally committed as revision 5203 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dsputil.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libavcodec/dsputil.c') diff --git a/libavcodec/dsputil.c b/libavcodec/dsputil.c index 87eb49bacc..688f0a9618 100644 --- a/libavcodec/dsputil.c +++ b/libavcodec/dsputil.c @@ -3773,6 +3773,8 @@ static void ff_jref_idct1_add(uint8_t *dest, int line_size, DCTELEM *block) dest[0] = cm[dest[0] + ((block[0] + 4)>>3)]; } +static void just_return() { return; } + /* init static data */ void dsputil_static_init(void) { @@ -4054,6 +4056,8 @@ void dsputil_init(DSPContext* c, AVCodecContext *avctx) c->inner_add_yblock = ff_snow_inner_add_yblock; #endif + c->prefetch= just_return; + #ifdef HAVE_MMX dsputil_init_mmx(c, avctx); #endif -- cgit v1.2.3