summaryrefslogtreecommitdiff
path: root/libswscale/rgb2rgb.c
diff options
context:
space:
mode:
authorReinhard Tartler <siretart@tauware.de>2010-06-01 06:53:56 +0000
committerReinhard Tartler <siretart@tauware.de>2010-06-01 06:53:56 +0000
commit3d9408f4a7129ba6fb06f838afa5663c5c73075d (patch)
treedbc10e4c611980c9b30b110fa34baebed03077cb /libswscale/rgb2rgb.c
parent770e50ae80d399ca2e9c397e03abfa71df8b11f3 (diff)
downloadffmpeg-3d9408f4a7129ba6fb06f838afa5663c5c73075d.tar.gz
remove palette8torgb15 and palette8tobgr15
They contain exactly the same code as their 16bit variants, so this is effectively code de-duplication. Originally committed as revision 31298 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/rgb2rgb.c')
-rw-r--r--libswscale/rgb2rgb.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c
index 7d1cefca3a..9080ead463 100644
--- a/libswscale/rgb2rgb.c
+++ b/libswscale/rgb2rgb.c
@@ -250,22 +250,6 @@ void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const ui
((uint16_t *)dst)[i] = bswap_16(((const uint16_t *)palette)[src[i]]);
}
-/**
- * Palette is assumed to contain BGR15, see rgb32to15 to convert the palette.
- */
-void palette8torgb15(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 palette8tobgr15(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] = bswap_16(((const uint16_t *)palette)[src[i]]);
-}
-
void rgb32to24(const uint8_t *src, uint8_t *dst, long src_size)
{
long i;