Mercurial > libavformat.hg
comparison framehook.h @ 4:dcc03a32d1bb libavformat
Added support for a realease function to eliminate the context blocks used
by each hook.
author | philipjsg |
---|---|
date | Sat, 30 Nov 2002 17:16:32 +0000 |
parents | 05318cf2e886 |
children | a58a8a53eb46 |
comparison
equal
deleted
inserted
replaced
3:3442cae3ecf9 | 4:dcc03a32d1bb |
---|---|
6 */ | 6 */ |
7 | 7 |
8 #include "avcodec.h" | 8 #include "avcodec.h" |
9 | 9 |
10 /* Function must be called 'Configure' */ | 10 /* Function must be called 'Configure' */ |
11 typedef int (*FrameHookConfigureFn)(void **ctxp, int argc, char *argv[]); | 11 typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]); |
12 typedef FrameHookConfigure *FrameHookConfigureFn; | |
13 extern FrameHookConfigure Configure; | |
12 | 14 |
13 /* Function must be called 'Process' */ | 15 /* Function must be called 'Process' */ |
14 typedef void (*FrameHookProcessFn)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, INT64 pts); | 16 typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, INT64 pts); |
17 typedef FrameHookProcess *FrameHookProcessFn; | |
18 extern FrameHookProcess Process; | |
19 | |
20 /* Function must be called 'Release' */ | |
21 typedef void (FrameHookRelease)(void *ctx); | |
22 typedef FrameHookRelease *FrameHookReleaseFn; | |
23 extern FrameHookRelease Release; | |
15 | 24 |
16 extern int frame_hook_add(int argc, char *argv[]); | 25 extern int frame_hook_add(int argc, char *argv[]); |
17 extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height); | 26 extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height); |
27 extern void frame_hook_release(); | |
18 | 28 |
19 #endif | 29 #endif |