summaryrefslogtreecommitdiff
path: root/libavformat/framehook.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-11-25 19:07:40 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-11-25 19:07:40 +0000
commitabac6175916c57f59ddb51ffe41bfd1d9851fe38 (patch)
tree8fc5b70a143f0f74468c353afbf043d7e104cdc0 /libavformat/framehook.h
parent57fc25764261abe71b6cf7571eca182f8acf5795 (diff)
renamed libav to libavformat
Originally committed as revision 1276 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/framehook.h')
-rw-r--r--libavformat/framehook.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libavformat/framehook.h b/libavformat/framehook.h
new file mode 100644
index 0000000000..eb1a51f7e4
--- /dev/null
+++ b/libavformat/framehook.h
@@ -0,0 +1,19 @@
+#ifndef _FRAMEHOOK_H
+#define _FRAMEHOOK_H
+
+/*
+ * Prototypes for interface to .so that implement a video processing hook
+ */
+
+#include "avcodec.h"
+
+/* Function must be called 'Configure' */
+typedef int (*FrameHookConfigureFn)(void **ctxp, int argc, char *argv[]);
+
+/* Function must be called 'Process' */
+typedef void (*FrameHookProcessFn)(void *ctx, struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height, INT64 pts);
+
+extern int frame_hook_add(int argc, char *argv[]);
+extern void frame_hook_process(struct AVPicture *pict, enum PixelFormat pix_fmt, int width, int height);
+
+#endif