Statistics
| Branch: | Revision:

ffmpeg / libavformat / framehook.h @ 649b918c

History | View | Annotate | Download (965 Bytes)

1 3b2cbbed Philip Gladstone
#ifndef _FRAMEHOOK_H
2
#define _FRAMEHOOK_H
3
4
/*
5
 * Prototypes for interface to .so that implement a video processing hook 
6
 */
7
8
#include "avcodec.h"
9
10
/* Function must be called 'Configure' */
11 042f2465 Philip Gladstone
typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]);
12
typedef FrameHookConfigure *FrameHookConfigureFn;
13
extern FrameHookConfigure Configure;
14 3b2cbbed Philip Gladstone
15
/* Function must be called 'Process' */
16 0c1a9eda Zdenek Kabelac
typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts);
17 042f2465 Philip Gladstone
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;
24 3b2cbbed Philip Gladstone
25
extern int frame_hook_add(int argc, char *argv[]);
26
extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height);
27 7906085f Falk H├╝ffner
extern void frame_hook_release(void);
28 3b2cbbed Philip Gladstone
29
#endif