Commit ac0ad729 authored by Michael Niedermayer's avatar Michael Niedermayer

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
parent 33a67bd6
...@@ -1204,8 +1204,8 @@ static inline void RENAME(yuv2packedX)(SwsContext *c, int16_t *lumFilter, int16_ ...@@ -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, 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) uint8_t *dest, int dstW, int yalpha, int uvalpha, int y)
{ {
int yalpha1=yalpha^4095; int yalpha1=4095- yalpha;
int uvalpha1=uvalpha^4095; int uvalpha1=4095-uvalpha;
int i; int i;
#if 0 //isn't used #if 0 //isn't used
......
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