Commit 104685fe authored by michael's avatar michael

cleaning corners of green dirt ;)


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@8652 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 4045cd82
...@@ -2824,7 +2824,15 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int ...@@ -2824,7 +2824,15 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int
dstBlock+=8; dstBlock+=8;
srcBlock+=8; srcBlock+=8;
} }
memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride ); if(width==dstStride)
memcpy(dst, tempDst + 9*dstStride, copyAhead*dstStride);
else
{
for(i=0; i<copyAhead; i++)
{
memcpy(dst + i*dstStride, tempDst + (9+i)*dstStride, width);
}
}
} }
//printf("\n"); //printf("\n");
...@@ -3050,7 +3058,15 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int ...@@ -3050,7 +3058,15 @@ static void RENAME(postProcess)(uint8_t src[], int srcStride, uint8_t dst[], int
if(y+15 >= height) if(y+15 >= height)
{ {
uint8_t *dstBlock= &(dst[y*dstStride]); uint8_t *dstBlock= &(dst[y*dstStride]);
memcpy(dstBlock, tempDst + dstStride, dstStride*(height-y) ); if(width==dstStride)
memcpy(dstBlock, tempDst + dstStride, dstStride*(height-y));
else
{
for(i=0; i<height-y; i++)
{
memcpy(dstBlock + i*dstStride, tempDst + (i+1)*dstStride, width);
}
}
} }
/* /*
for(x=0; x<width; x+=32) for(x=0; x<width; x+=32)
......
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