initial revision.
authorkramm <kramm>
Mon, 14 Apr 2003 21:35:56 +0000 (21:35 +0000)
committerkramm <kramm>
Mon, 14 Apr 2003 21:35:56 +0000 (21:35 +0000)
lib/h.263/swfvideo.h [new file with mode: 0644]

diff --git a/lib/h.263/swfvideo.h b/lib/h.263/swfvideo.h
new file mode 100644 (file)
index 0000000..f16834e
--- /dev/null
@@ -0,0 +1,41 @@
+/* mkvideo.c
+   Create a video file.
+
+   Part of the swftools package.
+   
+   Copyright (c) 2003 Matthias Kramm <kramm@quiss.org> */
+
+#ifndef __swfvideo_h__
+#define __swfvideo_h__
+
+#include "../rfxswf.h"
+
+typedef struct _YUV
+{
+    unsigned char y,u,v;
+} YUV;
+
+typedef struct _VIDEOSTREAM
+{
+    int width;
+    int height;
+    int frame;
+    int linex;
+    int olinex;
+    YUV*oldpic;
+    YUV*current;
+    int bbx,bby;
+    int*mvdx;
+    int*mvdy;
+
+    /* modifyable: */
+    int do_motion; //enable motion compensation (slow!)
+
+} VIDEOSTREAM;
+
+void swf_SetVideoStreamDefine(TAG*tag, VIDEOSTREAM*stream, U16 frames, U16 width, U16 height);
+void swf_SetVideoStreamIFrame(TAG*tag, VIDEOSTREAM*s, RGBA*pic, int quant/* 1-31, 1=best quality, 31=best compression*/);
+void swf_SetVideoStreamPFrame(TAG*tag, VIDEOSTREAM*s, RGBA*pic, int quant/* 1-31, 1=best quality, 31=best compression*/);
+void swf_VideoStreamClear(VIDEOSTREAM*stream);
+
+#endif