X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fflash.h;h=96e48cdb6c6c8f94943f16719ce8f2a64caff8ca;hb=7be64767e7b09e1d331d30450811a8af82978ee6;hp=2d48cb78f062a4ff3cdddac9a1601418a53ef98d;hpb=091426da804496140d12aba93fd0a095400e25cf;p=swftools.git diff --git a/src/flash.h b/src/flash.h index 2d48cb7..96e48cd 100644 --- a/src/flash.h +++ b/src/flash.h @@ -11,6 +11,7 @@ #define __flash_h__ #include "types.h" +#include "../lib/rfxswf.h" #define TAGID_END 0 #define TAGID_SHOWFRAME 1 @@ -115,12 +116,11 @@ struct RECT readRECT(); struct RGB readRGB(); struct MATRIX readMATRIX(); unsigned char* readSTRING(); -struct CXFORM readCXFORM(); struct CLIPACTIONS readCLIPACTIONS(); void writeRECT(u8**pos, struct RECT*r); -void swf_init(uchar*newdata, int newlength); +void swf_init(struct reader_t*,uchar*newdata, int newlength); struct flash_header { int version; @@ -140,16 +140,16 @@ struct swffile struct swf_tag* tags; }; -struct flash_header swf_read_header(); -struct RGB readRGB(); -struct RGBA readRGBA(); -struct GRADIENT readGRADIENT(int shape); -struct RECT readRECT(); -struct CXFORM readCXFORM(); -struct MATRIX readMATRIX(); -unsigned char* readSTRING(); -int swf_read_tag(struct swf_tag* swftag); -int swf_count_tags(); +struct flash_header swf_read_header(struct reader_t*); +struct RGB readRGB(struct reader_t*); +struct RGBA readRGBA(struct reader_t*); +struct GRADIENT readGRADIENT(struct reader_t*,int shape); +struct RECT readRECT(struct reader_t*); +struct CXFORM readCXFORM(struct reader_t*,char alpha); +struct MATRIX readMATRIX(struct reader_t*); +unsigned char* readSTRING(struct reader_t*); +int swf_read_tag(struct reader_t*,struct swf_tag* swftag); +int swf_count_tags(struct reader_t*); struct PlaceObject