Revision 2722c981

View differences:

libavcodec/ppc/dsputil_altivec.h
25 25

  
26 26
#include "dsputil_ppc.h"
27 27

  
28
#ifdef HAVE_ALTIVEC
29

  
30 28
extern int has_altivec(void);
31 29

  
32 30
void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h);
......
112 110
    return vec_perm(first, second, mask);
113 111
}
114 112

  
115
#endif /* HAVE_ALTIVEC */
116

  
117 113
#endif /* DSPUTIL_ALTIVEC_H */
libavcodec/ppc/h264_altivec.c
868 868

  
869 869
void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) {
870 870

  
871
#ifdef HAVE_ALTIVEC
872 871
  if (has_altivec()) {
873 872
    c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec;
874 873
    c->put_no_rnd_h264_chroma_pixels_tab[0] = put_no_rnd_h264_chroma_mc8_altivec;
......
899 898
    dspfunc(put_h264_qpel, 0, 16);
900 899
    dspfunc(avg_h264_qpel, 0, 16);
901 900
#undef dspfunc
902

  
903
  } else
904
#endif /* HAVE_ALTIVEC */
905
  {
906
    // Non-AltiVec PPC optimisations
907

  
908
    // ... pending ...
909 901
  }
910 902
}

Also available in: Unified diff