diff options
author | Loren Merritt <lorenm@u.washington.edu> | 2006-03-23 20:16:36 +0000 |
---|---|---|
committer | Loren Merritt <lorenm@u.washington.edu> | 2006-03-23 20:16:36 +0000 |
commit | 513fbd8e5ab9ca266394112b177a40b6eb1d8208 (patch) | |
tree | 2cc484711e334dcf1633a231212758ed3b2d2bff /libavcodec/dsputil.c | |
parent | 7e815047e5621683ab7a91a23c93906cf916ff36 (diff) | |
download | ffmpeg-513fbd8e5ab9ca266394112b177a40b6eb1d8208.tar.gz |
prefetch pixels for future motion compensation. 2-5% faster h264.
Originally committed as revision 5203 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dsputil.c')
-rw-r--r-- | libavcodec/dsputil.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 |