faster imageToShape

This commit is contained in:
honfika@gmail.com
2015-03-17 07:03:56 +01:00
parent 22ad9655c2
commit 2664d692ba
42 changed files with 117 additions and 103 deletions

View File

@@ -861,12 +861,12 @@ public final class SWF implements SWFContainerItem, Timelined {
}
}
/* preload shape tags
for (Tag tag : tags) {
if (tag instanceof ShapeTag) {
((ShapeTag) tag).getShapes();
}
}*/
/*preload shape tags*/
for (Tag tag : tags) {
if (tag instanceof ShapeTag) {
((ShapeTag) tag).getShapes();
}
}
}
@Override
@@ -1063,7 +1063,7 @@ public final class SWF implements SWFContainerItem, Timelined {
break;
}
case 'Z': { // ZWS
byte lzmaprop[] = new byte[9];
byte[] lzmaprop = new byte[9];
is.read(lzmaprop);
sis = new SWFInputStream(null, lzmaprop);
sis.readUI32("LZMAsize"); // compressed LZMA data size = compressed SWF - 17 byte,