diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-04-19 21:25:10 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2011-04-19 21:50:12 +0200 |
commit | 7dfe244fbd9a3c0a24cac441a4ec777da8f3a666 (patch) | |
tree | 7a076c8072ed8b6cb55016b7d56108cbf51f624f /libswscale | |
parent | 975c27340528b9e053a7ae9b63b764984e91941c (diff) | |
download | ffmpeg-7dfe244fbd9a3c0a24cac441a4ec777da8f3a666.tar.gz |
sws: remove disabled cruft.
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/rgb2rgb.c | 28 | ||||
-rw-r--r-- | libswscale/rgb2rgb.h | 10 | ||||
-rw-r--r-- | libswscale/swscale.c | 8 | ||||
-rw-r--r-- | libswscale/swscale.h | 16 | ||||
-rw-r--r-- | libswscale/utils.c | 7 |
5 files changed, 0 insertions, 69 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; diff --git a/libswscale/rgb2rgb.h b/libswscale/rgb2rgb.h index bde1134541..158d9a9a87 100644 --- a/libswscale/rgb2rgb.h +++ b/libswscale/rgb2rgb.h @@ -68,16 +68,6 @@ void shuffle_bytes_1230(const uint8_t *src, uint8_t *dst, long src_size); void shuffle_bytes_3012(const uint8_t *src, uint8_t *dst, long src_size); void shuffle_bytes_3210(const uint8_t *src, uint8_t *dst, long src_size); -#if LIBSWSCALE_VERSION_MAJOR < 1 -/* deprecated, use the public versions in swscale.h */ -attribute_deprecated void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); -attribute_deprecated void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); - -/* totally deprecated, please fix code that uses this */ -attribute_deprecated void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); -attribute_deprecated void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette); -#endif - /** * Height should be a multiple of 2 and width should be a multiple of 16. * (If this is a problem for anyone then tell me, and I will fix it.) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 9a4f89cdea..f4f4bcbf0a 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -1952,14 +1952,6 @@ int sws_scale(SwsContext *c, const uint8_t* const src[], const int srcStride[], } } -#if LIBSWSCALE_VERSION_MAJOR < 1 -int sws_scale_ordered(SwsContext *c, const uint8_t* const src[], int srcStride[], int srcSliceY, - int srcSliceH, uint8_t* dst[], int dstStride[]) -{ - return sws_scale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride); -} -#endif - /* Convert the palette to the same packed 32-bit format as the palette */ void sws_convertPalette8ToPacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette) { diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 5b0802c972..672e30b60c 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -223,15 +223,6 @@ struct SwsContext *sws_getContext(int srcW, int srcH, enum PixelFormat srcFormat int sws_scale(struct SwsContext *context, const uint8_t* const srcSlice[], const int srcStride[], int srcSliceY, int srcSliceH, uint8_t* const dst[], const int dstStride[]); -#if LIBSWSCALE_VERSION_MAJOR < 1 -/** - * @deprecated Use sws_scale() instead. - */ -int sws_scale_ordered(struct SwsContext *context, const uint8_t* const src[], - int srcStride[], int srcSliceY, int srcSliceH, - uint8_t* dst[], int dstStride[]) attribute_deprecated; -#endif - /** * @param inv_table the yuv2rgb coefficients, normally ff_yuv2rgb_coeffs[x] * @param fullRange if 1 then the luma range is 0..255 if 0 it is 16..235 @@ -291,13 +282,6 @@ void sws_shiftVec(SwsVector *a, int shift); */ SwsVector *sws_cloneVec(SwsVector *a); -#if LIBSWSCALE_VERSION_MAJOR < 1 -/** - * @deprecated Use sws_printVec2() instead. - */ -attribute_deprecated void sws_printVec(SwsVector *a); -#endif - /** * Prints with av_log() a textual representation of the vector a * if log_level <= av_log_level. diff --git a/libswscale/utils.c b/libswscale/utils.c index bf61dfdcc4..7ca3cd4583 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1440,13 +1440,6 @@ void sws_printVec2(SwsVector *a, AVClass *log_ctx, int log_level) } } -#if LIBSWSCALE_VERSION_MAJOR < 1 -void sws_printVec(SwsVector *a) -{ - sws_printVec2(a, NULL, AV_LOG_DEBUG); -} -#endif - void sws_freeVec(SwsVector *a) { if (!a) return; |