X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Frfxswf.h;h=54c5968905c4ca70961b1a73eb6df4ddd9990e96;hb=c3e46afcec0a11b365f03d662866903a9bf18c78;hp=0291e11877291d97a41e83507a8fd78a7c2165c8;hpb=21ddd4444db6cddf2a02975c95f7dbb1eff3f6c6;p=swftools.git diff --git a/lib/rfxswf.h b/lib/rfxswf.h index 0291e11..54c5968 100644 --- a/lib/rfxswf.h +++ b/lib/rfxswf.h @@ -39,6 +39,9 @@ extern "C" { #include "./drawer.h" #define DEBUG_RFXSWF +#ifdef RFXSWF_DISABLESOUND +#define NO_MP3 +#endif #ifndef TRUE #define TRUE (1) @@ -196,6 +199,7 @@ int swf_ReadHeader(struct reader_t*reader, SWF * swf); // Reads SWF Header vi // folding/unfolding: void swf_FoldAll(SWF*swf); +void swf_FoldAllTags(TAG*tag); void swf_UnFoldAll(SWF*swf); void swf_FoldSprite(TAG*tag); void swf_UnFoldSprite(TAG*tag); @@ -702,18 +706,12 @@ 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); -#ifndef RFXSWF_DISABLESOUND - // swfsound.c void swf_SetSoundStreamHead(TAG*tag, int avgnumsamples); void swf_SetSoundStreamBlock(TAG*tag, S16*samples, int seek, char first); /* expects 2304 samples */ - void swf_SetSoundDefine(TAG*tag, S16*samples, int num); - void swf_SetSoundInfo(TAG*tag, SOUNDINFO*info); -#endif // RFXSWF_DISABLESOUND - // swftools.c U8 swf_isDefiningTag(TAG * t); @@ -723,7 +721,7 @@ U16 swf_GetDefineID(TAG * t); SRECT swf_GetDefineBBox(TAG * t); void swf_SetDefineID(TAG * t, U16 newid); U16 swf_GetPlaceID(TAG * t); //PLACEOBJECT, PLACEOBJECT2 (sometimes), REMOVEOBJECT -U16 swf_GetDepth(TAG * t); //PLACEOBJECT,PLACEOBJECT2,REMOVEOBJECT,REMOVEOBJECT2 +int swf_GetDepth(TAG * t); //PLACEOBJECT,PLACEOBJECT2,REMOVEOBJECT,REMOVEOBJECT2,SETTABINDEX 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, @@ -731,6 +729,9 @@ MATRIX * swf_MatrixMapTriangle(MATRIX * m,int dx,int dy, int swf_GetNumUsedIDs(TAG * t); void swf_GetUsedIDs(TAG * t, int * positions); void swf_Relocate(SWF*swf, char*bitmap); // bitmap is 65536 bytes, bitmap[a]==0 means id a is free +void swf_RelocateDepth(SWF*swf, char*bitmap); // bitmap is 65536 bytes, bitmap[d]==0 means depth d is free + +TAG* swf_Concatenate (TAG*list1,TAG*list2); // warning: both list1 and list2 are invalid after this call. // swfcgi.c @@ -763,6 +764,9 @@ void swf_ActionEnumerateURLs(ActionTAG*atag, char*(*callback)(char*)); void swf_ActionEnumerateTargets(ActionTAG*atag, char*(*callback)(char*)); void swf_ActionEnumerateStrings(ActionTAG*atag, char*(*callback)(char*)); +// using action/actioncompiler.h: +ActionTAG* swf_ActionCompile(const char* source, int version); + ActionTAG* action_End(ActionTAG*atag); ActionTAG* action_NextFrame(ActionTAG*atag); ActionTAG* action_PreviousFrame(ActionTAG*atag);