aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/rgb2rgb.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-04-19 21:25:10 +0200
committerAnton Khirnov <anton@khirnov.net>2011-04-19 21:50:12 +0200
commit7dfe244fbd9a3c0a24cac441a4ec777da8f3a666 (patch)
tree7a076c8072ed8b6cb55016b7d56108cbf51f624f /libswscale/rgb2rgb.c
parent975c27340528b9e053a7ae9b63b764984e91941c (diff)
downloadffmpeg-7dfe244fbd9a3c0a24cac441a4ec777da8f3a666.tar.gz
sws: remove disabled cruft.
Diffstat (limited to 'libswscale/rgb2rgb.c')
-rw-r--r--libswscale/rgb2rgb.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index 12d6287a4b..74cc42e3b0 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -124,34 +124,6 @@ void sws_rgb2rgb_init(int flags)
#endif /* HAVE_MMX2 || HAVE_AMD3DNOW || HAVE_MMX */
}
-#if LIBSWSCALE_VERSION_MAJOR < 1
-void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
-{
- sws_convertPalette8ToPacked32(src, dst, num_pixels, palette);
-}
-
-void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
-{
- sws_convertPalette8ToPacked24(src, dst, num_pixels, palette);
-}
-
-/**
- * Palette is assumed to contain BGR16, see rgb32to16 to convert the palette.
- */
-void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
-{
- long i;
- for (i=0; i<num_pixels; i++)
- ((uint16_t *)dst)[i] = ((const uint16_t *)palette)[src[i]];
-}
-void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette)
-{
- long i;
- for (i=0; i<num_pixels; i++)
- ((uint16_t *)dst)[i] = av_bswap16(((const uint16_t *)palette)[src[i]]);
-}
-#endif
-
void rgb32to24(const uint8_t *src, uint8_t *dst, long src_size)
{
long i;