Commit 25706bbf authored by michael's avatar michael

Make the horizontal C scaler code clip only against INT16_MAX not 0,

this decreases the difference between C and MMX, its also faster.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@27593 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 91c30596
...@@ -2330,7 +2330,7 @@ static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW ...@@ -2330,7 +2330,7 @@ static inline void RENAME(hScale)(int16_t *dst, int dstW, uint8_t *src, int srcW
val += ((int)src[srcPos + j])*filter[filterSize*i + j]; val += ((int)src[srcPos + j])*filter[filterSize*i + j];
} }
//filter += hFilterSize; //filter += hFilterSize;
dst[i] = av_clip(val>>7, 0, (1<<15)-1); // the cubic equation does overflow ... dst[i] = FFMIN(val>>7, (1<<15)-1); // the cubic equation does overflow ...
//dst[i] = val>>7; //dst[i] = val>>7;
} }
#endif /* HAVE_ALTIVEC */ #endif /* HAVE_ALTIVEC */
......
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