precomp-cpp
precomp-cpp copied to clipboard
Support more ZLIB compressed data types in SWF
There are several types of data inside SWF that are compressed using ZLIB according to the specification:
- JPGs with alpha channel (page 139, "DefineBitsJPEG3")
- Lossless compressed bitmap data (pages 139 + 140, "DefineBitsLossless")
- Lossless compressed bitmap data with alpha channel (page 142, "DefineBitsLossless2")
- Alpha data for JPG/PNG/GIF images (page 143, "DefineBitsJPEG4")
- Video data (page 208 ff., "Screen Video bitstream format", page 212 ff. "Screen Video V2 bitstream format")
These are detected in intense mode, but it would be useful to extend the parser to detect them in normal mode, too.
Useful tool to analyse SWF files for this: Adobe SWF Investigator
Is SWF still a thing? Maybe this issue no longer needs to be addressed...