diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-07-28 12:30:19 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-08-04 00:23:00 +0200 |
commit | 4ce0a94656591eb2a6f567e0c6778e2cc96c17b0 (patch) | |
tree | 460714e93f5249da2daf62dec5f0386e4bd559a7 /libswscale/rgb2rgb.c | |
parent | 99c7b516414e76c90446a865ca5a02df3117f694 (diff) | |
download | ffmpeg-4ce0a94656591eb2a6f567e0c6778e2cc96c17b0.tar.gz |
lsws: remove deprecated and unused stuff after the 0->1 major bump
Diffstat (limited to 'libswscale/rgb2rgb.c')
-rw-r--r-- | libswscale/rgb2rgb.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/libswscale/rgb2rgb.c b/libswscale/rgb2rgb.c index 84ef43b774..9a7f698935 100644 --- a/libswscale/rgb2rgb.c +++ b/libswscale/rgb2rgb.c @@ -123,34 +123,6 @@ void sws_rgb2rgb_init(void) rgb2rgb_init_x86(); } -#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, int src_size) { int i; |