summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-15 10:04:19 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-03-15 10:04:19 +0000
commit6628c4ba3b7818d3a3e9006339b44de29e116c9e (patch)
treed59168ee8e91088be38bf56a20b41e1b43ebc295
parent5e1457d4fea97e53553b9ec53d608e499db86a3f (diff)
downloadmpv-6628c4ba3b7818d3a3e9006339b44de29e116c9e.tar.bz2
mpv-6628c4ba3b7818d3a3e9006339b44de29e116c9e.tar.xz
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 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26247 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libswscale/yuv2rgb_altivec.c7
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 {