Commit da839127 authored by michael's avatar michael

first line bug fixed (happend if the image was scaled down or 1:1)


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@2298 b3059339-0415-0410-9bf9-f77b7e298cf2
parent fec5b031
...@@ -98,7 +98,6 @@ static int old_s_xinc= -1; ...@@ -98,7 +98,6 @@ static int old_s_xinc= -1;
#endif #endif
int canMMX2BeUsed=0; int canMMX2BeUsed=0;
static int test=0;
int srcWidth= (dstw*s_xinc + 0x8000)>>16; int srcWidth= (dstw*s_xinc + 0x8000)>>16;
#ifdef HAVE_MMX2 #ifdef HAVE_MMX2
...@@ -119,7 +118,7 @@ s_xinc2=s_xinc>>1; ...@@ -119,7 +118,7 @@ s_xinc2=s_xinc>>1;
s_last_y1pos=-99; s_last_y1pos=-99;
if(y==0){ if(y==0){
s_srcypos= s_yinc/2 - 0x8000; s_srcypos=-0x8000;
s_ypos=0; s_ypos=0;
#ifdef HAVE_MMX2 #ifdef HAVE_MMX2
// cant downscale !!! // cant downscale !!!
...@@ -534,6 +533,12 @@ FUNNYUVCODE ...@@ -534,6 +533,12 @@ FUNNYUVCODE
xpos+=s_xinc2; xpos+=s_xinc2;
} }
#endif #endif
// if this is the line before the first line
if(s_srcypos == s_xinc - 0x8000)
{
s_srcypos= s_yinc/2 - 0x8000;
continue;
}
} }
......
...@@ -98,7 +98,6 @@ static int old_s_xinc= -1; ...@@ -98,7 +98,6 @@ static int old_s_xinc= -1;
#endif #endif
int canMMX2BeUsed=0; int canMMX2BeUsed=0;
static int test=0;
int srcWidth= (dstw*s_xinc + 0x8000)>>16; int srcWidth= (dstw*s_xinc + 0x8000)>>16;
#ifdef HAVE_MMX2 #ifdef HAVE_MMX2
...@@ -119,7 +118,7 @@ s_xinc2=s_xinc>>1; ...@@ -119,7 +118,7 @@ s_xinc2=s_xinc>>1;
s_last_y1pos=-99; s_last_y1pos=-99;
if(y==0){ if(y==0){
s_srcypos= s_yinc/2 - 0x8000; s_srcypos=-0x8000;
s_ypos=0; s_ypos=0;
#ifdef HAVE_MMX2 #ifdef HAVE_MMX2
// cant downscale !!! // cant downscale !!!
...@@ -534,6 +533,12 @@ FUNNYUVCODE ...@@ -534,6 +533,12 @@ FUNNYUVCODE
xpos+=s_xinc2; xpos+=s_xinc2;
} }
#endif #endif
// if this is the line before the first line
if(s_srcypos == s_xinc - 0x8000)
{
s_srcypos= s_yinc/2 - 0x8000;
continue;
}
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment