summaryrefslogtreecommitdiffstats
path: root/libswscale
diff options
context:
space:
mode:
authorstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 00:12:10 +0000
committerstefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-02-12 00:12:10 +0000
commit379b176f25905f273a368336c3f5f287eeea51a2 (patch)
treeef606b029eb17b0328619e0bb23d67247ea7e746 /libswscale
parent7342791ae676084611db4e15ab320d8bb98ee75f (diff)
downloadmpv-379b176f25905f273a368336c3f5f287eeea51a2.tar.bz2
mpv-379b176f25905f273a368336c3f5f287eeea51a2.tar.xz
Apply misc fixes for sws_getCachedContext() documentation.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28537 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r--libswscale/swscale.h17
1 files changed, 10 insertions, 7 deletions
diff --git a/libswscale/swscale.h b/libswscale/swscale.h
index 41d1539f10..35db84cdef 100644
--- a/libswscale/swscale.h
+++ b/libswscale/swscale.h
@@ -187,14 +187,17 @@ SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur,
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.
+ * Checks if \p context can be reused, otherwise reallocates a new
+ * one.
*
- * Be warned that srcFilter, dstFilter are not checked, they are
- * asumed to remain valid.
+ * If \p context is NULL, just calls sws_getContext() to get a new
+ * context. Otherwise, checks if the parameters are the ones already
+ * saved in \p context. If that is the case, returns the current
+ * context. Otherwise, frees \p context and gets a new context with
+ * the new parameters.
+ *
+ * Be warned that \p srcFilter and \p dstFilter are not checked, they
+ * are assumed to remain the same.
*/
struct SwsContext *sws_getCachedContext(struct SwsContext *context,
int srcW, int srcH, enum PixelFormat srcFormat,