Mercurial > libavformat.hg
annotate framehook.h @ 56:01d48dc59dab libavformat
Fix the 'hard cpu loop' problem when capturing audio from /dev/dsp. This
code now waits for up to 30ms before reporting that no packet is available.
author | philipjsg |
---|---|
date | Wed, 05 Feb 2003 01:59:52 +0000 |
parents | dcc03a32d1bb |
children | a58a8a53eb46 |
rev | line source |
---|---|
0 | 1 #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' */ | |
4
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
11 typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]); |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
12 typedef FrameHookConfigure *FrameHookConfigureFn; |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
13 extern FrameHookConfigure Configure; |
0 | 14 |
15 /* Function must be called 'Process' */ | |
4
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
16 typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, INT64 pts); |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
17 typedef FrameHookProcess *FrameHookProcessFn; |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
18 extern FrameHookProcess Process; |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
19 |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
20 /* Function must be called 'Release' */ |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
21 typedef void (FrameHookRelease)(void *ctx); |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
22 typedef FrameHookRelease *FrameHookReleaseFn; |
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
23 extern FrameHookRelease Release; |
0 | 24 |
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); | |
4
dcc03a32d1bb
Added support for a realease function to eliminate the context blocks used
philipjsg
parents:
0
diff
changeset
|
27 extern void frame_hook_release(); |
0 | 28 |
29 #endif |