optimizations and no general PPC optimizations. Instead make the file be
compiled conditional to HAVE_ALTIVEC.
Originally committed as revision 10637 to svn://svn.ffmpeg.org/ffmpeg/trunk
alpha/motion_est_mvi_asm.o \
OBJS-$(ARCH_POWERPC) += ppc/dsputil_ppc.o \
- ppc/mpegvideo_ppc.o \
OBJS-$(HAVE_MMI) += ps2/dsputil_mmi.o \
ps2/idct_mmi.o \
ppc/idct_altivec.o \
ppc/int_altivec.o \
ppc/mpegvideo_altivec.o \
+ ppc/mpegvideo_ppc.o \
ifeq ($(HAVE_ALTIVEC),yes)
OBJS-$(CONFIG_H264_DECODER) += ppc/h264_altivec.o
#include "dsputil.h"
#include "mpegvideo.h"
#include <time.h>
-
-#ifdef HAVE_ALTIVEC
#include "dsputil_altivec.h"
-#endif
extern int dct_quantize_altivec(MpegEncContext *s,
DCTELEM *block, int n,
void MPV_common_init_ppc(MpegEncContext *s)
{
-#ifdef HAVE_ALTIVEC
- if (has_altivec())
- {
if (s->avctx->lowres==0)
{
if ((s->avctx->idct_algo == FF_IDCT_AUTO) ||
s->dct_unquantize_h263_intra = dct_unquantize_h263_altivec;
s->dct_unquantize_h263_inter = dct_unquantize_h263_altivec;
}
- } else
-#endif
- {
- /* Non-AltiVec PPC optimisations here */
- }
}