# HG changeset patch # User stefano # Date 1234308416 0 # Node ID 01afb64ccf4a283e96cdfed2e1ae05fc945297d7 # Parent 4f35dc205d880f3cce3e552141eb2ca3784400d6 Move documentation of sws_getCachedContext() from swscale.c to swscale.h. diff -r 4f35dc205d88 -r 01afb64ccf4a libswscale/swscale.c --- a/libswscale/swscale.c Tue Feb 10 23:25:09 2009 +0000 +++ b/libswscale/swscale.c Tue Feb 10 23:26:56 2009 +0000 @@ -3165,16 +3165,6 @@ av_free(c); } -/** - * 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, diff -r 4f35dc205d88 -r 01afb64ccf4a libswscale/swscale.h --- a/libswscale/swscale.h Tue Feb 10 23:25:09 2009 +0000 +++ b/libswscale/swscale.h Tue Feb 10 23:26:56 2009 +0000 @@ -149,6 +149,16 @@ 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,