[MPlayer-cvslog] r26247 - trunk/libswscale/yuv2rgb_altivec.c

diego subversion at mplayerhq.hu
Sat Mar 15 11:04:20 CET 2008


Author: diego
Date: Sat Mar 15 11:04:19 2008
New Revision: 26247

Log:
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


Modified:
   trunk/libswscale/yuv2rgb_altivec.c

Modified: trunk/libswscale/yuv2rgb_altivec.c
==============================================================================
--- trunk/libswscale/yuv2rgb_altivec.c	(original)
+++ trunk/libswscale/yuv2rgb_altivec.c	Sat Mar 15 11:04:19 2008
@@ -748,13 +748,6 @@ SwsFunc yuv2rgb_init_altivec (SwsContext
     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 {



More information about the MPlayer-cvslog mailing list