comparison ppc/h264_altivec.c @ 5585:f644e7c90380 libavcodec

Remove HAVE_ALTIVEC preprocessor directives that are only compiled when AltiVec is enabled anyway.
author diego
date Fri, 24 Aug 2007 23:01:50 +0000
parents cd266411b11a
children f065fc609145
comparison
equal deleted inserted replaced
5584:e831a81fb25e 5585:f644e7c90380
866 write16x4(pix-2, stride, line1, line2, line3, line4); 866 write16x4(pix-2, stride, line1, line2, line3, line4);
867 } 867 }
868 868
869 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) { 869 void dsputil_h264_init_ppc(DSPContext* c, AVCodecContext *avctx) {
870 870
871 #ifdef HAVE_ALTIVEC
872 if (has_altivec()) { 871 if (has_altivec()) {
873 c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec; 872 c->put_h264_chroma_pixels_tab[0] = put_h264_chroma_mc8_altivec;
874 c->put_no_rnd_h264_chroma_pixels_tab[0] = put_no_rnd_h264_chroma_mc8_altivec; 873 c->put_no_rnd_h264_chroma_pixels_tab[0] = put_no_rnd_h264_chroma_mc8_altivec;
875 c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec; 874 c->avg_h264_chroma_pixels_tab[0] = avg_h264_chroma_mc8_altivec;
876 c->h264_idct_add = ff_h264_idct_add_altivec; 875 c->h264_idct_add = ff_h264_idct_add_altivec;
897 c->PFX ## _pixels_tab[IDX][15] = PFX ## NUM ## _mc33_altivec 896 c->PFX ## _pixels_tab[IDX][15] = PFX ## NUM ## _mc33_altivec
898 897
899 dspfunc(put_h264_qpel, 0, 16); 898 dspfunc(put_h264_qpel, 0, 16);
900 dspfunc(avg_h264_qpel, 0, 16); 899 dspfunc(avg_h264_qpel, 0, 16);
901 #undef dspfunc 900 #undef dspfunc
902
903 } else
904 #endif /* HAVE_ALTIVEC */
905 {
906 // Non-AltiVec PPC optimisations
907
908 // ... pending ...
909 } 901 }
910 } 902 }