diff options
author | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-04 09:38:24 +0000 |
---|---|---|
committer | gpoirier <gpoirier@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-09-04 09:38:24 +0000 |
commit | 268a7af2f4386fbf2c8abf035eb43a8d9aa4ad7a (patch) | |
tree | bf637f969c2f6d2bdc46869a4fc1c4d8fa9464af /libswscale/swscale.h | |
parent | 90d3c0b310ba9c559cd091e808b669ca3e205883 (diff) | |
download | mpv-268a7af2f4386fbf2c8abf035eb43a8d9aa4ad7a.tar.bz2 mpv-268a7af2f4386fbf2c8abf035eb43a8d9aa4ad7a.tar.xz |
Add sws_getCachedContext(), which checks if context is valid or reallocs a new one instead.
Patch by Victor Paesa <wzrlpy@arsystel.com>
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
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r-- | libswscale/swscale.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 |