Mercurial > libavcodec.hg
comparison dsputil.c @ 3215:06f98047ff26 libavcodec
prefetch pixels for future motion compensation. 2-5% faster h264.
author | lorenm |
---|---|
date | Thu, 23 Mar 2006 20:16:36 +0000 |
parents | 1651e69b9f7a |
children | c2c29be6282e |
comparison
equal
deleted
inserted
replaced
3214:91f89a395b28 | 3215:06f98047ff26 |
---|---|
3771 uint8_t *cm = cropTbl + MAX_NEG_CROP; | 3771 uint8_t *cm = cropTbl + MAX_NEG_CROP; |
3772 | 3772 |
3773 dest[0] = cm[dest[0] + ((block[0] + 4)>>3)]; | 3773 dest[0] = cm[dest[0] + ((block[0] + 4)>>3)]; |
3774 } | 3774 } |
3775 | 3775 |
3776 static void just_return() { return; } | |
3777 | |
3776 /* init static data */ | 3778 /* init static data */ |
3777 void dsputil_static_init(void) | 3779 void dsputil_static_init(void) |
3778 { | 3780 { |
3779 int i; | 3781 int i; |
3780 | 3782 |
4052 c->vertical_compose97i = ff_snow_vertical_compose97i; | 4054 c->vertical_compose97i = ff_snow_vertical_compose97i; |
4053 c->horizontal_compose97i = ff_snow_horizontal_compose97i; | 4055 c->horizontal_compose97i = ff_snow_horizontal_compose97i; |
4054 c->inner_add_yblock = ff_snow_inner_add_yblock; | 4056 c->inner_add_yblock = ff_snow_inner_add_yblock; |
4055 #endif | 4057 #endif |
4056 | 4058 |
4059 c->prefetch= just_return; | |
4060 | |
4057 #ifdef HAVE_MMX | 4061 #ifdef HAVE_MMX |
4058 dsputil_init_mmx(c, avctx); | 4062 dsputil_init_mmx(c, avctx); |
4059 #endif | 4063 #endif |
4060 #ifdef ARCH_ARMV4L | 4064 #ifdef ARCH_ARMV4L |
4061 dsputil_init_armv4l(c, avctx); | 4065 dsputil_init_armv4l(c, avctx); |