aboutsummaryrefslogtreecommitdiffstats
path: root/libav/framehook.h
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-20 03:00:27 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2002-11-20 03:00:27 +0000
commit3b2cbbed21b53bb6e83828d3157c2ba88b6db5e5 (patch)
tree089624915513d01e4c308c09326046f24511662b /libav/framehook.h
parente752dc90c27437aaf70f988c2cd0622c9da37f3b (diff)
downloadffmpeg-3b2cbbed21b53bb6e83828d3157c2ba88b6db5e5.tar.gz
Initial versions of code to all per-frame video processing in ffmpeg.
Originally committed as revision 1244 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libav/framehook.h')
-rw-r--r--libav/framehook.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/libav/framehook.h b/libav/framehook.h
new file mode 100644
index 0000000000..eb1a51f7e4
--- /dev/null
+++ b/libav/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