From 268a7af2f4386fbf2c8abf035eb43a8d9aa4ad7a Mon Sep 17 00:00:00 2001 From: gpoirier Date: Mon, 4 Sep 2006 09:38:24 +0000 Subject: Add sws_getCachedContext(), which checks if context is valid or reallocs a new one instead. Patch by Victor Paesa Original thread: Date: Aug 31, 2006 7:15 PM Subject: [Ffmpeg-devel] [PATCH] Add sws_getCachedContext() to swscale library git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19667 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libswscale/swscale.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libswscale/swscale.h') diff --git a/libswscale/swscale.h b/libswscale/swscale.h index 2b558a25b7..ace89fa292 100644 --- a/libswscale/swscale.h +++ b/libswscale/swscale.h @@ -135,6 +135,11 @@ SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur, int verbose); void sws_freeFilter(SwsFilter *filter); +struct SwsContext *sws_getCachedContext(struct SwsContext *context, + int srcW, int srcH, int srcFormat, + int dstW, int dstH, int dstFormat, int flags, + SwsFilter *srcFilter, SwsFilter *dstFilter, double *param); + #ifdef __cplusplus } #endif -- cgit v1.2.3