summaryrefslogtreecommitdiff
path: root/libswscale/swscale.h
diff options
context:
space:
mode:
authorStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-10 23:26:56 +0000
committerStefano Sabatini <stefano.sabatini-lala@poste.it>2009-02-10 23:26:56 +0000
commitb954b34a6d601d7b2ae3ad1419cb68704095e561 (patch)
treeca7279092a8adf8c29c961be8030c13f5bdc0ae1 /libswscale/swscale.h
parent9c91a0b0494a931a33b4a50c13280146751cbfaa (diff)
Move documentation of sws_getCachedContext() from swscale.c to
swscale.h. Originally committed as revision 28523 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale/swscale.h')
-rw-r--r--libswscale/swscale.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index 53e4489fdf..dbc1cd5c0e 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -149,6 +149,16 @@ SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur,
int verbose);
void sws_freeFilter(SwsFilter *filter);
+/**
+ * Checks if context is valid or reallocs a new one instead.
+ * If context is NULL, just calls sws_getContext() to get a new one.
+ * Otherwise, checks if the parameters are the ones already saved in context.
+ * If that is the case, returns the current context.
+ * Otherwise, frees context and gets a new one.
+ *
+ * Be warned that srcFilter, dstFilter are not checked, they are
+ * asumed to remain valid.
+ */
struct SwsContext *sws_getCachedContext(struct SwsContext *context,
int srcW, int srcH, enum PixelFormat srcFormat,
int dstW, int dstH, enum PixelFormat dstFormat, int flags,