comparison dsputil.c @ 5146:5db8d038eb1f libavcodec

use if() instead of #ifdef and ensure all possible optimisations are enabled
author aurel
date Fri, 15 Jun 2007 18:18:31 +0000
parents 151f6f3a507b
children 447fb0fdf6e1
comparison
equal deleted inserted replaced
5145:68d85146620a 5146:5db8d038eb1f
4136 c->prefetch= just_return; 4136 c->prefetch= just_return;
4137 4137
4138 memset(c->put_2tap_qpel_pixels_tab, 0, sizeof(c->put_2tap_qpel_pixels_tab)); 4138 memset(c->put_2tap_qpel_pixels_tab, 0, sizeof(c->put_2tap_qpel_pixels_tab));
4139 memset(c->avg_2tap_qpel_pixels_tab, 0, sizeof(c->avg_2tap_qpel_pixels_tab)); 4139 memset(c->avg_2tap_qpel_pixels_tab, 0, sizeof(c->avg_2tap_qpel_pixels_tab));
4140 4140
4141 #if defined(HAVE_MMX) 4141 if (ENABLE_MMX) dsputil_init_mmx (c, avctx);
4142 dsputil_init_mmx(c, avctx); 4142 if (ENABLE_ARMV4L) dsputil_init_armv4l(c, avctx);
4143 #elif defined(ARCH_ARMV4L) 4143 if (ENABLE_MLIB) dsputil_init_mlib (c, avctx);
4144 dsputil_init_armv4l(c, avctx); 4144 if (ENABLE_SPARC) dsputil_init_vis (c, avctx);
4145 #elif defined(HAVE_MLIB) 4145 if (ENABLE_ALPHA) dsputil_init_alpha (c, avctx);
4146 dsputil_init_mlib(c, avctx); 4146 if (ENABLE_POWERPC) dsputil_init_ppc (c, avctx);
4147 #elif defined(ARCH_SPARC) 4147 if (ENABLE_MMI) dsputil_init_mmi (c, avctx);
4148 dsputil_init_vis(c,avctx); 4148 if (ENABLE_SH4) dsputil_init_sh4 (c, avctx);
4149 #elif defined(ARCH_ALPHA) 4149 if (ENABLE_BFIN) dsputil_init_bfin (c, avctx);
4150 dsputil_init_alpha(c, avctx);
4151 #elif defined(ARCH_POWERPC)
4152 dsputil_init_ppc(c, avctx);
4153 #elif defined(HAVE_MMI)
4154 dsputil_init_mmi(c, avctx);
4155 #elif defined(ARCH_SH4)
4156 dsputil_init_sh4(c,avctx);
4157 #elif defined(ARCH_BFIN)
4158 dsputil_init_bfin(c,avctx);
4159 #endif
4160 4150
4161 for(i=0; i<64; i++){ 4151 for(i=0; i<64; i++){
4162 if(!c->put_2tap_qpel_pixels_tab[0][i]) 4152 if(!c->put_2tap_qpel_pixels_tab[0][i])
4163 c->put_2tap_qpel_pixels_tab[0][i]= c->put_h264_qpel_pixels_tab[0][i]; 4153 c->put_2tap_qpel_pixels_tab[0][i]= c->put_h264_qpel_pixels_tab[0][i];
4164 if(!c->avg_2tap_qpel_pixels_tab[0][i]) 4154 if(!c->avg_2tap_qpel_pixels_tab[0][i])