annotate framehook.h @ 331:4530681af424 libavformat

suppress PTS in packets when not needed (slightly smaller files), fixed PTS generation in some cases, added provision for DTS generation, slightly better SCR generation (initial patch by Michel Bardiaux)
author bellard
date Tue, 09 Dec 2003 18:06:18 +0000
parents a58a8a53eb46
children 96f8086bc2ba
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
1 #ifndef _FRAMEHOOK_H
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
2 #define _FRAMEHOOK_H
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
3
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
4 /*
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
5 * Prototypes for interface to .so that implement a video processing hook
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
6 */
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
7
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
8 #include "avcodec.h"
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
9
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
14
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
15 /* Function must be called 'Process' */
65
a58a8a53eb46 * UINTX -> uintx_t INTX -> intx_t
kabi
parents: 4
diff changeset
16 typedef void (FrameHookProcess)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, int64_t pts);
4
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
24
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
25 extern int frame_hook_add(int argc, char *argv[]);
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
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
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
28
05318cf2e886 renamed libav to libavformat
bellard
parents:
diff changeset
29 #endif