diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-09-10 22:41:55 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-09-10 22:41:55 +0000 |
commit | ac0ad729810bab712e376c7f2be99be25b2bfa6f (patch) | |
tree | a94f0ee4715fb9ee3f248f7ad2f4a827f8699754 | |
parent | 33a67bd6c7e4fb75e01a0f781e0a679c861f2950 (diff) | |
download | ffmpeg-ac0ad729810bab712e376c7f2be99be25b2bfa6f.tar.gz |
Make the 2point linear interpolation coefficients correct even for the
nearly never occuring 0.0, 1.0.
Originally committed as revision 27574 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_template.c b/libswscale/swscale_template.c index 6048bfc90b..d11e130f1c 100644 --- a/libswscale/swscale_template.c +++ b/libswscale/swscale_template.c @@ -1204,8 +1204,8 @@ static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_ static inline void RENAME(yuv2packed2)(SwsContext *c, uint16_t *buf0, uint16_t *buf1, uint16_t *uvbuf0, uint16_t *uvbuf1, uint8_t *dest, int dstW, int yalpha, int uvalpha, int y) { - int yalpha1=yalpha^4095; - int uvalpha1=uvalpha^4095; + int yalpha1=4095- yalpha; + int uvalpha1=4095-uvalpha; int i; #if 0 //isn't used |