From bb789016d423d2cfacd2904ac66257bdf7f0964e Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 4 Aug 2014 10:34:30 -0700 Subject: swscale: Undeprecate sws_getContext() sws_getCachedContext is not a full replacement for the function. --- libswscale/swscale.h | 3 --- libswscale/utils.c | 2 -- libswscale/version.h | 5 +---- 3 files changed, 1 insertion(+), 9 deletions(-) (limited to 'libswscale') diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 715f559590..8abbac4761 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -174,7 +174,6 @@ int sws_init_context(struct SwsContext *sws_context, SwsFilter *srcFilter, SwsFi */ void sws_freeContext(struct SwsContext *swsContext); -#if FF_API_SWS_GETCONTEXT /** * Allocate and return an SwsContext. You need it to perform * scaling/conversion operations using sws_scale(). @@ -189,13 +188,11 @@ void sws_freeContext(struct SwsContext *swsContext); * @return a pointer to an allocated context, or NULL in case of error * @note this function is to be removed after a saner alternative is * written - * @deprecated Use sws_getCachedContext() instead. */ struct SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, SwsFilter *srcFilter, SwsFilter *dstFilter, const double *param); -#endif /** * Scale the image slice in srcSlice and put the resulting scaled diff --git a/libswscale/utils.c b/libswscale/utils.c index 3a8531d0f0..32e304c66a 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1318,7 +1318,6 @@ fail: // FIXME replace things by appropriate error codes return -1; } -#if FF_API_SWS_GETCONTEXT SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, int dstW, int dstH, enum AVPixelFormat dstFormat, int flags, SwsFilter *srcFilter, @@ -1354,7 +1353,6 @@ SwsContext *sws_getContext(int srcW, int srcH, enum AVPixelFormat srcFormat, return c; } -#endif SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur, float lumaSharpen, float chromaSharpen, diff --git a/libswscale/version.h b/libswscale/version.h index d402c68ae1..7213ab350c 100644 --- a/libswscale/version.h +++ b/libswscale/version.h @@ -28,7 +28,7 @@ #define LIBSWSCALE_VERSION_MAJOR 2 #define LIBSWSCALE_VERSION_MINOR 1 -#define LIBSWSCALE_VERSION_MICRO 2 +#define LIBSWSCALE_VERSION_MICRO 3 #define LIBSWSCALE_VERSION_INT AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \ LIBSWSCALE_VERSION_MINOR, \ @@ -46,9 +46,6 @@ * the public API and may change, break or disappear at any time. */ -#ifndef FF_API_SWS_GETCONTEXT -#define FF_API_SWS_GETCONTEXT (LIBSWSCALE_VERSION_MAJOR < 3) -#endif #ifndef FF_API_SWS_CPU_CAPS #define FF_API_SWS_CPU_CAPS (LIBSWSCALE_VERSION_MAJOR < 3) #endif -- cgit v1.2.3