[Mplayer-cvslog] CVS: main/libmpeg2 motion_comp_altivec.c,1.1,1.2

Arpi of Ize arpi at mplayerhq.hu
Mon Jun 9 14:12:08 CEST 2003


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

Modified Files:
	motion_comp_altivec.c 
Log Message:
libmpeg2-altivec patch by Magnus Damm <damm at opensource.se>:
  Updated to version 1.12 from sourceforge
  The old version crashed my gcc-3.2.2 (after allocating 1 Gig memory)
  because of unfriendly altivec code, the new file is better.
  The new file ditches the old assembly version
  and it must be built with correct altivec-flags


Index: motion_comp_altivec.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpeg2/motion_comp_altivec.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- motion_comp_altivec.c	6 Apr 2003 16:41:49 -0000	1.1
+++ motion_comp_altivec.c	9 Jun 2003 12:12:04 -0000	1.2
@@ -1,6 +1,6 @@
 /*
  * motion_comp_altivec.c
- * Copyright (C) 2000-2002 Michel Lespinasse <walken at zoy.org>
+ * Copyright (C) 2000-2003 Michel Lespinasse <walken at zoy.org>
  * Copyright (C) 1999-2000 Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
  *
  * This file is part of mpeg2dec, a free MPEG-2 video stream decoder.
@@ -21,1064 +21,52 @@
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
[...1250 lines suppressed...]
     vector_u8_t ones, prev;
@@ -1927,8 +915,8 @@
     vec_st (tmp, stride, dest);
 }
 
-void MC_avg_xy_8_altivec (unsigned char * dest, const unsigned char * ref,
-			  const int stride, int height)
+static void MC_avg_xy_8_altivec (uint8_t * dest, const uint8_t * ref,
+				 const int stride, int height)
 {
     vector_u8_t perm0A, perm0B, perm1A, perm1B, ref0, ref1, A, B;
     vector_u8_t avg0, avg1, xor0, xor1, tmp, ones, prev;
@@ -2016,4 +1004,6 @@
     vec_ste ((vector_u32_t)tmp, 4, (unsigned int *)dest);
 }
 
-#endif	/* __ALTIVEC__ */
+MPEG2_MC_EXTERN (altivec)
+
+#endif



More information about the MPlayer-cvslog mailing list