diff options
author | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-10 23:26:56 +0000 |
---|---|---|
committer | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-10 23:26:56 +0000 |
commit | 2bf95acee3ba1a369522494ef6719bd777a08767 (patch) | |
tree | c355ebc857b87cd6d9d53463a2c549923aa242da /libswscale | |
parent | 796ecba6bc337b512afe7fe9af5115a44762b6bc (diff) | |
download | mpv-2bf95acee3ba1a369522494ef6719bd777a08767.tar.bz2 mpv-2bf95acee3ba1a369522494ef6719bd777a08767.tar.xz |
Move documentation of sws_getCachedContext() from swscale.c to
swscale.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28523 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 10 | ||||
-rw-r--r-- | libswscale/swscale.h | 10 |
2 files changed, 10 insertions, 10 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 2d36475cae..11c2a4f681 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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, 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, |