Mercurial > mplayer.hg
changeset 26215:ff1cf41e0dc0
Remove the unused function roundToInt16. It is a duplicate of the same function
in swscale.c. Fixes the warning:
yuv2rgb_altivec.c:751: 'roundToInt16' defined but not used
author | diego |
---|---|
date | Sat, 15 Mar 2008 10:04:19 +0000 |
parents | 6fda8dde2044 |
children | e402c7730fcf |
files | libswscale/yuv2rgb_altivec.c |
diffstat | 1 files changed, 0 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libswscale/yuv2rgb_altivec.c Sat Mar 15 09:50:12 2008 +0000 +++ b/libswscale/yuv2rgb_altivec.c Sat Mar 15 10:04:19 2008 +0000 @@ -748,13 +748,6 @@ return NULL; } -static uint16_t roundToInt16(int64_t f){ - int r= (f + (1<<15))>>16; - if (r<-0x7FFF) return 0x8000; - else if (r> 0x7FFF) return 0x7FFF; - else return r; -} - void yuv2rgb_altivec_init_tables (SwsContext *c, const int inv_table[4],int brightness,int contrast, int saturation) { union {