[Ffmpeg-cvslog] r6143 - in trunk/libavcodec/ppc: float_altivec.c h264_altivec.c

lu_zero subversion
Thu Aug 31 17:44:37 CEST 2006


Author: lu_zero
Date: Thu Aug 31 17:44:37 2006
New Revision: 6143

Modified:
   trunk/libavcodec/ppc/float_altivec.c
   trunk/libavcodec/ppc/h264_altivec.c

Log:
Proper fix for the corner case that would have been corrected before, praise&blame to me and exg in equal shares

Modified: trunk/libavcodec/ppc/float_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/float_altivec.c	(original)
+++ trunk/libavcodec/ppc/float_altivec.c	Thu Aug 31 17:44:37 2006
@@ -138,10 +138,10 @@
             s2 = vec_ld(0, src2+i);
             edges = vec_perm(t1 ,t0, mask);
             d = vec_madd(s0,s1,s2);
-            t0 = vec_perm(d, edges, align);
-            t1 = vec_perm(edges, d, align);
-            vec_st(t0, 0, dst+i);
+            t1 = vec_perm(d, edges, align);
+            t0 = vec_perm(edges, d, align);
             vec_st(t1, 15, dst+i);
+            vec_st(t0, 0, dst+i);
             t0 = t1;
         }
     else

Modified: trunk/libavcodec/ppc/h264_altivec.c
==============================================================================
--- trunk/libavcodec/ppc/h264_altivec.c	(original)
+++ trunk/libavcodec/ppc/h264_altivec.c	Thu Aug 31 17:44:37 2006
@@ -207,11 +207,11 @@
 
         align = vec_lvsr(0, dst);
 
-        tmp1 = vec_perm(edges, d, align);
         tmp2 = vec_perm(d, edges, align);
+        tmp1 = vec_perm(edges, d, align);
 
-        vec_st(tmp1, 0 , dst);
         vec_st(tmp2, 15, dst);
+        vec_st(tmp1, 0 , dst);
 
         dst += dst_stride;
     }
@@ -249,11 +249,11 @@
 
         align = vec_lvsr(0, dst);
 
-        tmp1 = vec_perm(edges, d, align);
         tmp2 = vec_perm(d, edges, align);
+        tmp1 = vec_perm(edges, d, align);
 
-        vec_st(tmp1, 0 , dst);
         vec_st(tmp2, 15, dst);
+        vec_st(tmp1, 0 , dst);
 
         dst += dst_stride;
     }




More information about the ffmpeg-cvslog mailing list