X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=377123eebe5658d0082fc380e2be7ba0c06c2e56;hb=e3948c530df9892a81a989810b8d6ec5af0f280f;hp=b572f524aa373bd6c818215720a3c76ed0a1a414;hpb=939dce305129b17c7207d5fa606e7e5ebd8bad60;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index b572f52..377123e 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -70,18 +70,27 @@ typedef struct _CXFORM typedef struct _TAG // NEVER access a Tag-Struct directly ! { U16 id; - U32 len; U8 * data; + U32 memsize; // to minimize realloc() calls + + union + { U32 len; // for Set-Access + U32 dataWritePos; + }; + + union + { U32 pos; // for Get-Access + U32 dataReadPos; + }; - int frame; + int frame; // not really up-to-date struct _TAG * next; struct _TAG * prev; - U32 memsize; // to minimize realloc() calls - U32 pos; // for Get/Set-Access - U8 bitmask; // for Bit-Manipulating Functions [read] - U8 bitcount; // [write] + U8 readBit; // for Bit-Manipulating Functions [read] + U8 writeBit; // [write] + } TAG, * LPTAG; typedef struct _ActionTAG @@ -457,7 +466,7 @@ U8 swf_isAllowedSpriteTag(TAG * t); U16 swf_GetDefineID(TAG * t); U16 swf_GetPlaceID(TAG * t); //PLACEOBJECT, PLACEOBJECT2 (sometimes), REMOVEOBJECT U16 swf_GetDepth(TAG * t); //PLACEOBJECT,PLACEOBJECT2,REMOVEOBJECT,REMOVEOBJECT2 -char* swf_GetTagName(TAG * t); //PLACEOBJECT2, FRAMELABEL +char* swf_GetName(TAG * t); //PLACEOBJECT2, FRAMELABEL MATRIX * swf_MatrixJoin(MATRIX * d,MATRIX * s1,MATRIX * s2); MATRIX * swf_MatrixMapTriangle(MATRIX * m,int dx,int dy, int x0,int y0,int x1,int y1,int x2,int y2);