From: kramm Date: Thu, 16 May 2002 22:56:05 +0000 (+0000) Subject: show DefineBits Infos. X-Git-Tag: xpdf-0-92~8 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=9c52a1d32d8dd3cdf346696db56962f5451d3968;p=swftools.git show DefineBits Infos. --- diff --git a/src/swfdump.c b/src/swfdump.c index f2752d1..c750095 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -249,6 +249,23 @@ void handleText(TAG*tag) printf("\n"); swf_FontExtract_DefineTextCallback(-1,0,tag,4, textcallback); } + +void handleDefineBits(TAG*tag) +{ + U16 id; + U8 mode; + U16 width,height; + int bpp; + id = swf_GetU16(tag); + mode = swf_GetU8(tag); + width = swf_GetU16(tag); + height = swf_GetU16(tag); + printf(" image %dx%d",width,height); + if(mode == 3) printf(" (8 bpp)"); + else if(mode == 4) printf(" (16 bpp)"); + else if(mode == 5) printf(" (32 bpp)"); + else printf(" (? bpp)"); +} void handleEditText(TAG*tag) { @@ -470,14 +487,15 @@ int main (int argc,char ** argv) } printf("\n" " \n" " \n" " \n" " \n" - " \n" @@ -605,7 +623,12 @@ int main (int argc,char ** argv) if(!issprite) {mainframe++; framelabel = 0;} } - if(tag->id == ST_DEFINEEDITTEXT) { + if(tag->id == ST_DEFINEBITSLOSSLESS || + tag->id == ST_DEFINEBITSLOSSLESS2) { + handleDefineBits(tag); + printf("\n"); + } + else if(tag->id == ST_DEFINEEDITTEXT) { handleEditText(tag); printf("\n"); }