Commit 1611a41a authored by stefano's avatar stefano

Apply misc fixes for sws_getCachedContext() documentation.


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@28537 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 57b0ba27
...@@ -187,14 +187,17 @@ SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur, ...@@ -187,14 +187,17 @@ SwsFilter *sws_getDefaultFilter(float lumaGBlur, float chromaGBlur,
void sws_freeFilter(SwsFilter *filter); void sws_freeFilter(SwsFilter *filter);
/** /**
* Checks if context is valid or reallocs a new one instead. * Checks if \p context can be reused, otherwise reallocates a new
* If context is NULL, just calls sws_getContext() to get a new one. * 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 * If \p context is NULL, just calls sws_getContext() to get a new
* asumed to remain valid. * 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, struct SwsContext *sws_getCachedContext(struct SwsContext *context,
int srcW, int srcH, enum PixelFormat srcFormat, int srcW, int srcH, enum PixelFormat srcFormat,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment