diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-03-15 13:04:19 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-03-15 13:04:19 +0300 |
commit | e982d4d39fc8f219b45350c076428c7c3b89831d (patch) | |
tree | 48b5d5771046769766164c25ff6734edc49ca024 /libswscale | |
parent | 5dff04fc51dd280e7704f9f121056584ba297c24 (diff) |
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
Originally committed as revision 26247 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/yuv2rgb_altivec.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/libswscale/yuv2rgb_altivec.c b/libswscale/yuv2rgb_altivec.c index d760c81bdd..dec8ed96fe 100644 --- a/libswscale/yuv2rgb_altivec.c +++ b/libswscale/yuv2rgb_altivec.c @@ -748,13 +748,6 @@ SwsFunc yuv2rgb_init_altivec (SwsContext *c) 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 { |