[Mplayer-cvslog] CVS: main/libmpcodecs ad_liba52.c,1.8,1.9

Arpi of Ize arpi at mplayerhq.hu
Sat Jan 18 20:29:49 CET 2003


Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var/tmp.root/cvs-serv15719/libmpcodecs

Modified Files:
	ad_liba52.c 
Log Message:
AltiVec detection code ("borrowed" from FFmpeg and
    libmpeg2) & enough code to enable the AltiVec IMDCT
    in liba52 and the DCT64 in mp3lib.
patch by Romain Dolbeau <dolbeau at irisa.fr>


Index: ad_liba52.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ad_liba52.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ad_liba52.c	1 Nov 2002 16:40:07 -0000	1.8
+++ ad_liba52.c	18 Jan 2003 19:29:46 -0000	1.9
@@ -112,6 +112,7 @@
   if(gCpuCaps.hasMMX2) a52_accel|=MM_ACCEL_X86_MMXEXT;
   if(gCpuCaps.has3DNow) a52_accel|=MM_ACCEL_X86_3DNOW;
   if(gCpuCaps.has3DNowExt) a52_accel|=MM_ACCEL_X86_3DNOWEXT;
+  if(gCpuCaps.hasAltiVec) a52_accel|=MM_ACCEL_PPC_ALTIVEC;
   a52_samples=a52_init (a52_accel);
   if (a52_samples == NULL) {
 	mp_msg(MSGT_DECAUDIO,MSGL_ERR,"A52 init failed\n");



More information about the MPlayer-cvslog mailing list