summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-14 19:12:42 +0000
committerramiro <ramiro@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-01-14 19:12:42 +0000
commit8af165c26f73306ccc4480106fb28484851bd409 (patch)
treecb64c0b3ac783f7d9ebad9c06c2760679da9af85
parent3e2af067eca38c629aacf3d4f1b26d16c8a63fe9 (diff)
downloadmpv-8af165c26f73306ccc4480106fb28484851bd409.tar.bz2
mpv-8af165c26f73306ccc4480106fb28484851bd409.tar.xz
Remove unused clip_table code.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30303 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libswscale/swscale.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c
index 0987f4d1e5..89be1dba97 100644
--- a/libswscale/swscale.c
+++ b/libswscale/swscale.c
@@ -298,9 +298,6 @@ DECLARE_ASM_CONST(8, uint64_t, ff_bgr24toUVOffset)= 0x0040400000404000ULL;
#endif /* ARCH_X86 && CONFIG_GPL */
-// clipping helper table for C implementations:
-static unsigned char clip_table[768];
-
static SwsVector *sws_getConvVec(SwsVector *a, SwsVector *b);
DECLARE_ALIGNED(8, static const uint8_t, dither_2x2_4[2][8])={
@@ -1850,16 +1847,6 @@ static int initMMX2HScaler(int dstW, int xInc, uint8_t *filterCode, int16_t *fil
}
#endif /* COMPILE_MMX2 */
-static void globalInit(void)
-{
- // generating tables:
- int i;
- for (i=0; i<768; i++) {
- int c= av_clip_uint8(i-256);
- clip_table[i]=c;
- }
-}
-
static SwsFunc getSwsFunc(SwsContext *c)
{
#if CONFIG_RUNTIME_CPUDETECT
@@ -2429,7 +2416,6 @@ SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat, int d
flags |= SWS_CPU_CAPS_BFIN;
#endif
#endif /* CONFIG_RUNTIME_CPUDETECT */
- if (clip_table[512] != 255) globalInit();
if (!rgb15to16) sws_rgb2rgb_init(flags);
unscaled = (srcW == dstW && srcH == dstH);