[FFmpeg-cvslog] r28523 - in trunk/libswscale: swscale.c swscale.h
stefano
subversion
Wed Feb 11 00:26:57 CET 2009
Author: stefano
Date: Wed Feb 11 00:26:56 2009
New Revision: 28523
Log:
Move documentation of sws_getCachedContext() from swscale.c to
swscale.h.
Modified:
trunk/libswscale/swscale.c
trunk/libswscale/swscale.h
Modified: trunk/libswscale/swscale.c
==============================================================================
--- trunk/libswscale/swscale.c Wed Feb 11 00:25:09 2009 (r28522)
+++ trunk/libswscale/swscale.c Wed Feb 11 00:26:56 2009 (r28523)
@@ -3165,16 +3165,6 @@ void sws_freeContext(SwsContext *c){
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,
Modified: trunk/libswscale/swscale.h
==============================================================================
--- trunk/libswscale/swscale.h Wed Feb 11 00:25:09 2009 (r28522)
+++ trunk/libswscale/swscale.h Wed Feb 11 00:26:56 2009 (r28523)
@@ -149,6 +149,16 @@ SwsFilter *sws_getDefaultFilter(float lu
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,
More information about the ffmpeg-cvslog
mailing list