[FFmpeg-cvslog] r10216 - in trunk/libavcodec/ppc: dsputil_altivec.h h264_altivec.c

diego subversion
Sat Aug 25 01:01:50 CEST 2007


Author: diego
Date: Sat Aug 25 01:01:50 2007
New Revision: 10216

Log:
Remove HAVE_ALTIVEC preprocessor directives that are only compiled
when AltiVec is enabled anyway.


Modified:
   trunk/libavcodec/ppc/dsputil_altivec.h
   trunk/libavcodec/ppc/h264_altivec.c

Modified: trunk/libavcodec/ppc/dsputil_altivec.h
==============================================================================
--- trunk/libavcodec/ppc/dsputil_altivec.h	(original)
+++ trunk/libavcodec/ppc/dsputil_altivec.h	Sat Aug 25 01:01:50 2007
@@ -25,8 +25,6 @@
 
 #include "dsputil_ppc.h"
 
-#ifdef HAVE_ALTIVEC
-
 extern int has_altivec(void);
 
 void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h);
@@ -112,6 +110,4 @@ static inline vector unsigned char unali
     return vec_perm(first, second, mask);
 }
 
-#endif /* HAVE_ALTIVEC */
-
 #endif /* DSPUTIL_ALTIVEC_H */

Modified: trunk/libavcodec/ppc/h264_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/h264_altivec.c	(original)
+++ trunk/libavcodec/ppc/h264_altivec.c	Sat Aug 25 01:01:50 2007
@@ -868,7 +868,6 @@ static void h264_h_loop_filter_luma_alti
 
 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) {
 
-#ifdef HAVE_ALTIVEC
   if (has_altivec()) {
     c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec;
     c->put_no_rnd_h264_chroma_pixels_tab[0] = put_no_rnd_h264_chroma_mc8_altivec;
@@ -899,12 +898,5 @@ void dsputil_h264_init_ppc(DSPContext* c
     dspfunc(put_h264_qpel, 0, 16);
     dspfunc(avg_h264_qpel, 0, 16);
 #undef dspfunc
-
-  } else
-#endif /* HAVE_ALTIVEC */
-  {
-    // Non-AltiVec PPC optimisations
-
-    // ... pending ...
   }
 }




More information about the ffmpeg-cvslog mailing list