[MPlayer-cvslog] CVS: main/postproc swscale_altivec_template.c, 1.6, 1.7

Alan Curry CVS syncmail at mplayerhq.hu
Thu Apr 6 12:08:56 CEST 2006


CVS change done by Alan Curry CVS

Update of /cvsroot/mplayer/main/postproc
In directory mail:/var2/tmp/cvs-serv9247

Modified Files:
	swscale_altivec_template.c 
Log Message:
Reorganize vector constants to work around gcc 4.1 bug:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27006

This bug caused certain movies (444P or RGB/BGR-based) to become brighter
and more purple when played on a YV12 vo.


Index: swscale_altivec_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale_altivec_template.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- swscale_altivec_template.c	13 Jan 2006 00:23:32 -0000	1.6
+++ swscale_altivec_template.c	6 Apr 2006 10:08:54 -0000	1.7
@@ -26,14 +26,13 @@
 #define AVV(x...) {x}
 #endif
 
-static const vector signed int vzero =
-  (const vector signed int)AVV(0, 0, 0, 0);
-static const vector unsigned int altivec_vectorShiftInt19 =
-  (const vector unsigned int)AVV(19, 19, 19, 19);
+#define vzero vec_splat_s32(0)
 
 static inline void
 altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW) {
   register int i;
+  vector unsigned int altivec_vectorShiftInt19 =
+    vec_add(vec_splat_u32(10),vec_splat_u32(9));
   if ((unsigned long)dest % 16) {
     /* badly aligned store, we force store alignement */
     /* and will handle load misalignement on val w/ vec_perm */




More information about the MPlayer-cvslog mailing list