Revision b954b34a

View differences:

libswscale/swscale.c
3165 3165
    av_free(c);
3166 3166
}
3167 3167

  
3168
/**
3169
 * Checks if context is valid or reallocs a new one instead.
3170
 * If context is NULL, just calls sws_getContext() to get a new one.
3171
 * Otherwise, checks if the parameters are the ones already saved in context.
3172
 * If that is the case, returns the current context.
3173
 * Otherwise, frees context and gets a new one.
3174
 *
3175
 * Be warned that srcFilter, dstFilter are not checked, they are
3176
 * asumed to remain valid.
3177
 */
3178 3168
struct SwsContext *sws_getCachedContext(struct SwsContext *context,
3179 3169
                                        int srcW, int srcH, enum PixelFormat srcFormat,
3180 3170
                                        int dstW, int dstH, enum PixelFormat dstFormat, int flags,
libswscale/swscale.h
149 149
                                int verbose);
150 150
void sws_freeFilter(SwsFilter *filter);
151 151

  
152
/**
153
 * Checks if context is valid or reallocs a new one instead.
154
 * If context is NULL, just calls sws_getContext() to get a new one.
155
 * Otherwise, checks if the parameters are the ones already saved in context.
156
 * If that is the case, returns the current context.
157
 * Otherwise, frees context and gets a new one.
158
 *
159
 * Be warned that srcFilter, dstFilter are not checked, they are
160
 * asumed to remain valid.
161
 */
152 162
struct SwsContext *sws_getCachedContext(struct SwsContext *context,
153 163
                                        int srcW, int srcH, enum PixelFormat srcFormat,
154 164
                                        int dstW, int dstH, enum PixelFormat dstFormat, int flags,

Also available in: Unified diff