From 43aa3a1b7e6a275c4cca03707e10881575bc88ba Mon Sep 17 00:00:00 2001 From: lucabe Date: Tue, 26 Dec 2006 18:08:40 +0000 Subject: change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip() git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21776 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale_altivec_template.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libswscale/swscale_altivec_template.c') diff --git a/libswscale/swscale_altivec_template.c b/libswscale/swscale_altivec_template.c index d65c28538b..3b1dd7ef63 100644 --- a/libswscale/swscale_altivec_template.c +++ b/libswscale/swscale_altivec_template.c @@ -226,7 +226,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int for(j=0; j>7), (1<<15)-1); + dst[i] = clip(val>>7, 0, (1<<15)-1); } } else @@ -265,7 +265,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int val_vEven = vec_mule(src_v, filter_v); val_s = vec_sums(val_vEven, vzero); vec_st(val_s, 0, tempo); - dst[i] = FFMIN(FFMAX(0, tempo[3]>>7), (1<<15)-1); + dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); } } break; @@ -292,7 +292,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int val_v = vec_msums(src_v, filter_v, (vector signed int)vzero); val_s = vec_sums(val_v, vzero); vec_st(val_s, 0, tempo); - dst[i] = FFMIN(FFMAX(0, tempo[3]>>7), (1<<15)-1); + dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); } } break; @@ -321,7 +321,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int vector signed int val_s = vec_sums(val_v, vzero); vec_st(val_s, 0, tempo); - dst[i] = FFMIN(FFMAX(0, tempo[3]>>7), (1<<15)-1); + dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); } } break; @@ -383,7 +383,7 @@ static inline void hScale_altivec_real(int16_t *dst, int dstW, uint8_t *src, int val_s = vec_sums(val_v, vzero); vec_st(val_s, 0, tempo); - dst[i] = FFMIN(FFMAX(0, tempo[3]>>7), (1<<15)-1); + dst[i] = clip(tempo[3]>>7, 0, (1<<15)-1); } } -- cgit v1.2.3