declarations at the bottom of the file. This type checking is now handled by the
header file.
Originally committed as revision 1295 to svn://svn.ffmpeg.org/ffmpeg/trunk
*second = maxval;
}
+void Release(void *ctx)
+{
+ if (ctx)
+ av_free(ctx);
+}
int Configure(void **ctxp, int argc, char *argv[])
{
}
}
-/* To ensure correct typing */
-FrameHookConfigureFn ConfigureFn = Configure;
-FrameHookProcessFn ProcessFn = Process;
int height;
} CachedImage;
+void Release(void *ctx)
+{
+ ContextInfo *ci;
+ ci = (ContextInfo *) ctx;
+
+ if (ci->cache) {
+ imlib_context_set_image(ci->cache->image);
+ imlib_free_image();
+ av_free(ci->cache);
+ }
+ if (ctx)
+ av_free(ctx);
+}
int Configure(void **ctxp, int argc, char *argv[])
{
;
}
-/* To ensure correct typing */
-FrameHookConfigureFn ConfigureFn = Configure;
-FrameHookProcessFn ProcessFn = Process;
int dummy;
} ContextInfo;
+void Release(void *ctx)
+{
+ ContextInfo *ci;
+ ci = (ContextInfo *) ctx;
+
+ if (ctx)
+ av_free(ctx);
+}
int Configure(void **ctxp, int argc, char *argv[])
{
av_free(buf);
}
-/* To ensure correct typing */
-FrameHookConfigureFn ConfigureFn = Configure;
-FrameHookProcessFn ProcessFn = Process;