[Mplayer-cvslog] CVS: main/postproc swscale.c,1.11,1.12
Michael Niedermayer
michael at mplayer.dev.hu
Fri Oct 19 03:26:38 CEST 2001
Update of /cvsroot/mplayer/main/postproc
In directory mplayer:/var/tmp.root/cvs-serv2848
Modified Files:
swscale.c
Log Message:
vertical lines bugfix
Index: swscale.c
===================================================================
RCS file: /cvsroot/mplayer/main/postproc/swscale.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- swscale.c 19 Oct 2001 00:42:18 -0000 1.11
+++ swscale.c 19 Oct 2001 01:26:36 -0000 1.12
@@ -108,6 +108,14 @@
s_xinc2=s_xinc>>1;
canMMX2BeUsed= (s_xinc <= 0x10000 && (dstw&31)==0) ? 1 : 0;
+#ifdef HAVE_MMX2
+ if(canMMX2BeUsed)
+ {
+ s_xinc+= s_xinc_diff;
+ s_xinc2+= s_xinc2_diff;
+ }
+#endif
+
if(y==0){
s_srcypos= s_yinc/2 - 0x8000;
s_ypos=0;
@@ -190,6 +198,9 @@
s_xinc2+= s_xinc2_diff;
s_xinc+= s_xinc_diff;
+
+ old_s_xinc= s_xinc;
+
for(i=0; i<dstw/8; i++)
{
int xx=xpos>>16;
@@ -236,17 +247,11 @@
xpos+=s_xinc2;
}
// funnyCode[0]= RET;
-
-
}
- if(canMMX2BeUsed)
- {
- s_xinc+= s_xinc_diff;
- s_xinc2+= s_xinc2_diff;
- }
#endif // HAVE_MMX2
} // reset counters
+
while(1){
unsigned char *dest=dstptr+dststride*s_ypos;
More information about the MPlayer-cvslog
mailing list