diff options
author | Luca Abeni <lucabe72@email.it> | 2006-12-26 18:08:40 +0000 |
---|---|---|
committer | Luca Abeni <lucabe72@email.it> | 2006-12-26 18:08:40 +0000 |
commit | b2afecbe02824109300d82c3da1cdb722cda5b28 (patch) | |
tree | 356e2935a7ea08d51d7f130e8a2a157259e4f511 /libswscale/swscale_altivec_template.c | |
parent | 789237cad0fe4344d8c0e32b9508b0601df23dd2 (diff) | |
download | ffmpeg-streaming-b2afecbe02824109300d82c3da1cdb722cda5b28.zip ffmpeg-streaming-b2afecbe02824109300d82c3da1cdb722cda5b28.tar.gz |
change all the occurrences of "FFMIN(FFMAX())" to clip_uint8() or clip()
Originally committed as revision 21776 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale_altivec_template.c')
-rw-r--r-- | libswscale/swscale_altivec_template.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libswscale/swscale_altivec_template.c b/libswscale/swscale_altivec_template.c index d65c285..3b1dd7e 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<filterSize; j++) { val += ((int)src[srcPos + j])*filter[filterSize*i + j]; } - dst[i] = FFMIN(FFMAX(0, val>>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); } } |