#include <stdio.h>
#include <stdlib.h>
+#include <math.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
void* rfx_calloc(int size);
void* rfx_realloc(void*data, int size);
void rfx_free(void*data);
+#ifdef MEMORY_INFO
+long rfx_memory_used();
+char* rfx_memory_used_str();
+#endif
// SWF Types
int swf_WriteSWC(int handle, SWF * swf); // for convenience, equal to swf->compressed=1;swf_WriteSWF(..)
int swf_WriteCGI(SWF * swf); // Outputs SWF with valid CGI header to stdout
void swf_FreeTags(SWF * swf); // Frees all malloc'ed memory for swf
+SWF* swf_CopySWF(SWF*swf);
// for streaming:
int swf_WriteHeader(int handle,SWF * swf); // Writes Header of swf to file
void swf_Shape2ToShape(SHAPE2*shape2, SHAPE*shape);
void swf_SetShape2(TAG*tag, SHAPE2*shape2);
+void swf_RecodeShapeData(U8*data, int bitlen, int in_bits_fill, int in_bits_line,
+ U8**destdata, U32*destbitlen, int out_bits_fill, int out_bits_line);
+
// swfdraw.c
void swf_Shape10DrawerInit(drawer_t*draw, TAG*tag);
void*internal;
} RENDERBUF;
-void swf_Render_Init(RENDERBUF*buf, int posx, int posy, int width, int height);
+void swf_Render_Init(RENDERBUF*buf, int posx, int posy, int width, int height, char antialize, int scale);
RGBA* swf_Render(RENDERBUF*dest);
void swf_RenderShape(RENDERBUF*dest, SHAPE2*shape, MATRIX*m, CXFORM*c, U16 depth,U16 clipdepth);
void swf_Render_AddImage(RENDERBUF*buf, U16 id, RGBA*img, int width, int height);