+ if(flags&4) {
+ swf_GetMatrix(tag,&m);
+ if(placements) {
+ ppos[0] += sprintf(pstr[0], "| Matrix ");
+ ppos[1] += sprintf(pstr[1], "| %5.3f %5.3f %6.2f ", m.sx/65536.0, m.r1/65536.0, m.tx/20.0);
+ ppos[2] += sprintf(pstr[2], "| %5.3f %5.3f %6.2f ", m.r0/65536.0, m.sy/65536.0, m.ty/20.0);
+ }
+ }
+ if(flags&8) {
+ swf_GetCXForm(tag, &cx, 1);
+ if(placements) {
+ ppos[0] += sprintf(pstr[0]+ppos[0], "| CXForm r g b a ");
+ ppos[1] += sprintf(pstr[1]+ppos[1], "| mul %4.1f %4.1f %4.1f %4.1f ", cx.r0/256.0, cx.g0/256.0, cx.b0/256.0, cx.a0/256.0);
+ ppos[2] += sprintf(pstr[2]+ppos[2], "| add %4d %4d %4d %4d ", cx.r1, cx.g1, cx.b1, cx.a1);
+ }
+ }
+ if(flags&16) {
+ U16 ratio = swf_GetU16(tag); //ratio
+ if(placements) {
+ ppos[0] += sprintf(pstr[0]+ppos[0], "| Ratio ");
+ ppos[1] += sprintf(pstr[1]+ppos[1], "| %-5d ", ratio);
+ ppos[2] += sprintf(pstr[2]+ppos[2], "| ");
+ }
+ }
+ if(flags&64) {
+ U16 clip = swf_GetU16(tag); //clip
+ if(placements) {
+ ppos[0] += sprintf(pstr[0]+ppos[0], "| Clip ");
+ ppos[1] += sprintf(pstr[1]+ppos[1], "| %-4d ", clip);
+ ppos[2] += sprintf(pstr[2]+ppos[2], "| ");
+ }
+ }
+ if(flags&32) { while(swf_GetU8(tag)); }
+
+ if(flags2&1) { // filter list
+ U8 num = swf_GetU8(tag);
+ printf("%d filters\n");
+ char*filtername[] = {"dropshadow","blur","glow","bevel","gradientglow","convolution","colormatrix","gradientbevel"};
+ for(;num;num--) {
+ U8 type = swf_GetU8(tag);
+ printf("filter %d: %02x (%s)\n", type, type<sizeof(filtername)/sizeof(filtername[0])?filtername[type]:"?");
+ return;// FIXME
+ }
+ }
+ if(flags2&2) { // blend mode
+ U8 blendmode = swf_GetU8(tag);
+ if(placements) {
+ int t;
+ char name[80];
+ sprintf(name, "%-5d", blendmode);
+ for(t=0;blendModeNames[t];t++) {
+ if(blendmode==t) {
+ sprintf(name, "%-5s", blendModeNames[t]);
+ break;
+ }
+ }
+ ppos[0] += sprintf(pstr[0]+ppos[0], "| Blend ");
+ ppos[1] += sprintf(pstr[1]+ppos[1], "| %s ", name);
+ ppos[2] += sprintf(pstr[2]+ppos[2], "| ");
+ }
+ }
+
+ if(placements && ppos[0]) {
+ printf("\n");
+ printf("%s %s\n", prefix, pstr[0]);
+ printf("%s %s\n", prefix, pstr[1]);
+ printf("%s %s", prefix, pstr[2]);