X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fswfdump.c;h=051b8a20a12ff8c866b38e8a598f1ea0fa4a89b9;hb=458c53f3b2fe6e6ae3f106084f536701a94dccbf;hp=1f038a67245e55f05c43aa4bca37d71455e5ef2f;hpb=e284a69d156751b38ac92e6eb561942c7a8602ed;p=swftools.git diff --git a/src/swfdump.c b/src/swfdump.c index 1f038a6..051b8a2 100644 --- a/src/swfdump.c +++ b/src/swfdump.c @@ -67,11 +67,11 @@ static struct options_t options[] = { {"t", "text"}, {"s", "shapes"}, {"p", "placements"}, +{"b", "bbox"}, {"X", "width"}, {"Y", "height"}, {"r", "rate"}, {"f", "frames"}, -{"b", "bbox"}, {"d", "hex"}, {"u", "used"}, {0,0} @@ -159,6 +159,7 @@ void args_callback_usage(char *name) printf("-t , --text Show text fields (like swfstrings).\n"); printf("-s , --shapes Show shape coordinates/styles\n"); printf("-p , --placements Show placement information\n"); + printf("-b , --bbox Print tag's bounding boxes\n"); printf("-X , --width Prints out a string of the form \"-X width\".\n"); printf("-Y , --height Prints out a string of the form \"-Y height\".\n"); printf("-r , --rate Prints out a string of the form \"-r rate\".\n"); @@ -915,8 +916,16 @@ int main (int argc,char ** argv) printf(" object"); printf(" at depth %04d", swf_GetDepth(tag)); + + if(tag->data[0]&64) { + SWFPLACEOBJECT po; + swf_GetPlaceObject(tag, &po); + printf(" (clip to %04d)", po.clipdepth); + swf_PlaceObjectFree(&po); + } if(swf_GetName(tag)) printf(" name \"%s\"",swf_GetName(tag)); + } else if(tag->id == ST_REMOVEOBJECT) { printf(" removes id %04d from depth %04d", swf_GetPlaceID(tag), swf_GetDepth(tag));