diff ppc/mpegvideo_ppc.c @ 1009:3b7cc8e4b83f libavcodec

AltiVec perf (take 2), plus a couple AltiVec functions by (Romain Dolbeau <dolbeau at irisa dot fr>)
author michaelni
date Thu, 16 Jan 2003 21:54:55 +0000
parents 95cbffdc98a9
children b32afefe7d33
line wrap: on
line diff
--- a/ppc/mpegvideo_ppc.c	Wed Jan 15 19:21:21 2003 +0000
+++ b/ppc/mpegvideo_ppc.c	Thu Jan 16 21:54:55 2003 +0000
@@ -44,7 +44,11 @@
         {
             s->idct_put = idct_put_altivec;
             s->idct_add = idct_add_altivec;
+#ifndef ALTIVEC_USE_REFERENCE_C_CODE
             s->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
+#else /* ALTIVEC_USE_REFERENCE_C_CODE */
+            s->idct_permutation_type = FF_NO_IDCT_PERM;
+#endif /* ALTIVEC_USE_REFERENCE_C_CODE */
         }
 
         // Test to make sure that the dct required alignments are met.