[MPlayer-cvslog] CVS: main/postproc yuv2rgb_altivec.c,1.8,1.9
Diego Biurrun CVS
syncmail at mplayerhq.hu
Thu Feb 9 01:29:38 CET 2006
CVS change done by Diego Biurrun CVS
Update of /cvsroot/mplayer/main/postproc
In directory mail:/var2/tmp/cvs-serv28154/postproc
Modified Files:
yuv2rgb_altivec.c
Log Message:
Correct RGB vs. BGR confusion, the macros vec_mstrgb24 and vec_mstbgr24 each
do the opposite of what they say.
The vec_mstrgb24 and vec_mstbgr24 macros should be opposites and not perform
the same things.
patch by Alan Curry, pacman_at_world_dot_std_dot_com
Index: yuv2rgb_altivec.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/yuv2rgb_altivec.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- yuv2rgb_altivec.c 8 Feb 2006 13:14:19 -0000 1.8
+++ yuv2rgb_altivec.c 9 Feb 2006 00:29:35 -0000 1.9
@@ -142,7 +142,7 @@
y2 = vec_perm (o3,o2,perm_rgb_3); \
} while(0)
-#define vec_mstrgb24(x0,x1,x2,ptr) \
+#define vec_mstbgr24(x0,x1,x2,ptr) \
do { \
typeof(x0) _0,_1,_2; \
vec_merge3 (x0,x1,x2,_0,_1,_2); \
@@ -151,7 +151,7 @@
vec_st (_2, 0, ptr++); \
} while (0);
-#define vec_mstbgr24(x0,x1,x2,ptr) \
+#define vec_mstrgb24(x0,x1,x2,ptr) \
do { \
typeof(x0) _0,_1,_2; \
vec_merge3 (x2,x1,x0,_0,_1,_2); \
@@ -417,7 +417,7 @@
#define out_rgba(a,b,c,ptr) vec_mstrgb32(typeof(a),a,b,c,((typeof (a))AVV(0)),ptr)
#define out_argb(a,b,c,ptr) vec_mstrgb32(typeof(a),((typeof (a))AVV(0)),a,b,c,ptr)
#define out_rgb24(a,b,c,ptr) vec_mstrgb24(a,b,c,ptr)
-#define out_bgr24(a,b,c,ptr) vec_mstbgr24(c,b,a,ptr)
+#define out_bgr24(a,b,c,ptr) vec_mstbgr24(a,b,c,ptr)
DEFCSP420_CVT (yuv2_abgr32, out_abgr)
#if 1
More information about the MPlayer-cvslog
mailing list