libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>:

Only use Altivec if enabled with configure.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10270 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-06-09 12:11:30 +00:00
parent a0084e7df5
commit 58f04b4322
2 changed files with 4 additions and 0 deletions

View File

@ -241,12 +241,14 @@ void mpeg2_idct_init (uint32_t accel)
} else
#endif
#ifdef ARCH_PPC
#ifdef HAVE_ALTIVEC
if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
mpeg2_idct_copy = mpeg2_idct_copy_altivec;
mpeg2_idct_add = mpeg2_idct_add_altivec;
mpeg2_idct_altivec_init ();
} else
#endif
#endif
#ifdef ARCH_ALPHA
if (accel & MPEG2_ACCEL_ALPHA_MVI) {
mpeg2_idct_copy = mpeg2_idct_copy_mvi;

View File

@ -42,10 +42,12 @@ void mpeg2_mc_init (uint32_t accel)
else
#endif
#ifdef ARCH_PPC
#ifdef HAVE_ALTIVEC
if (accel & MPEG2_ACCEL_PPC_ALTIVEC)
mpeg2_mc = mpeg2_mc_altivec;
else
#endif
#endif
#ifdef ARCH_ALPHA
if (accel & MPEG2_ACCEL_ALPHA)
mpeg2_mc = mpeg2_mc_alpha;