[MPlayer-cvslog] CVS: main/postproc swscale_altivec_template.c, 1.4, 1.5

Michael Niedermayer CVS syncmail at mplayerhq.hu
Mon Jun 27 09:40:27 CEST 2005


CVS change done by Michael Niedermayer CVS

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

Modified Files:
	swscale_altivec_template.c 
Log Message:
width % 16 != 0 workaround by (Nicolas Plourde: nicolas plourde, gmail com>)
cleanup by me
  indention fixed
  second one must be yv12touyvy instead of yv12toyuy2
  replace slow modulo by bitwise and
  move %16!=0 code before the comment saying the code cant handle %16!=0


Index: swscale_altivec_template.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale_altivec_template.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- swscale_altivec_template.c	6 Jul 2004 13:52:56 -0000	1.4
+++ swscale_altivec_template.c	27 Jun 2005 07:40:24 -0000	1.5
@@ -400,6 +400,11 @@
   const int vertLumPerChroma = 2;  
   register unsigned int y;
 
+  if(width&15){
+    yv12toyuy2( ysrc, usrc, vsrc, dst,c->srcW,srcSliceH, lumStride, chromStride, dstStride);
+    return srcSliceH;
+  }
+
   /* this code assume:
 
   1) dst is 16 bytes-aligned
@@ -474,6 +479,11 @@
   const vector unsigned char yperm = vec_lvsl(0, ysrc);
   register unsigned int y;
 
+  if(width&15){
+    yv12touyvy( ysrc, usrc, vsrc, dst,c->srcW,srcSliceH, lumStride, chromStride, dstStride);
+    return srcSliceH;
+  }
+
   /* this code assume:
 
   1) dst is 16 bytes-aligned




More information about the MPlayer-cvslog mailing list