Added sprite folding
[swftools.git] / lib / rfxswf.h
index c2358cd..9b775f9 100644 (file)
@@ -19,6 +19,7 @@
 #include <unistd.h>
 #include <fcntl.h>
 #include "../config.h"
+#include "bladeenc/codec.h"
 
 #define DEBUG_RFXSWF
 
@@ -153,6 +154,11 @@ void swf_FreeTags(SWF * swf);               // Frees all malloc'ed memory for sw
 // for streaming:
 int  swf_WriteHeader(int handle,SWF * swf);    // Writes Header of swf to file
 int  swf_WriteTag(int handle,TAG * tag);    // Writes TAG to file
+
+// folding/unfolding:
+
+void swf_FoldAll(SWF*swf);
+void swf_FoldSprite(TAG*tag);
     
 TAG * swf_InsertTag(TAG * after,U16 id);    // updates frames, if necessary
 int   swf_DeleteTag(TAG * t);
@@ -558,6 +564,10 @@ int swf_SetLosslessBits(TAG * t,U16 width,U16 height,void * bitmap,U8 bitmap_fla
 int swf_SetLosslessBitsIndexed(TAG * t,U16 width,U16 height,U8 * bitmap,RGBA * palette,U16 ncolors);
 int swf_SetLosslessBitsGrayscale(TAG * t,U16 width,U16 height,U8 * bitmap);
 
+// swfsound.c
+void swf_SetSoundStreamHead(TAG*tag, U16 avgnumsamples);
+void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int numsamples, char first);
+
 // swftools.c
 
 U8 swf_isDefiningTag(TAG * t);