diff options
author | 2001-03-29 16:06:36 +0000 | |
---|---|---|
committer | 2001-03-29 16:06:36 +0000 | |
commit | 4eff90e3800079ebe14b125d518f6abd773d368f (patch) | |
tree | 47f1c28f356f23fd860c21e57f7e3e88be994a37 /libvo/mga_common.c | |
parent | c7e505508a26ec5117082ab75669853325cffac7 (diff) |
OSD/SUB image quality & speed improvement
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@250 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/mga_common.c')
-rw-r--r-- | libvo/mga_common.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c index 8779c68d19..25a54be8c8 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -18,7 +18,8 @@ static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned for(x=0;x<w;x++){ // dst[x]=(dst[x]*srca[x]+src[x]*(srca[x]^255))>>8; if(srca[x]) - dst[x]=(dst[x]*(srca[x]^255)+src[x]*(srca[x]))>>8; + dst[x]=((dst[x]*srca[x])>>8)+src[x]; + //dst[x]=(dst[x]*(srca[x]^255)+src[x]*(srca[x]))>>8; } src+=stride; srca+=stride; @@ -31,7 +32,8 @@ static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned for(x=0;x<w;x++){ // dst[x]=(dst[x]*srca[x]+src[x]*(srca[x]^255))>>8; if(srca[x]) - dst[2*x]=(dst[2*x]*(srca[x]^255)+src[x]*(srca[x]))>>8; + dst[2*x]=((dst[2*x]*srca[x])>>8)+src[x]; + //dst[2*x]=(dst[2*x]*(srca[x]^255)+src[x]*(srca[x]))>>8; } src+=stride; srca+=stride; |