[swfmill] prerelease 0.2.11.21

Steve Webster spjwebster at gmail.com
Wed Jan 3 10:17:21 EST 2007


Hey Dan,

I think i found the problem with toimport.swf, seems we'll have to parse
> another byte if cacheAsBitmap is used (does it have different modes?). But
> before i prerelease this, i'd like to find out more about the other problem,


Interesting. This extra byte is certainly not in the Adobe-provided docs.
Still, it seems to work, and I don't know why I didn't spot this during
development.

which is caused by the ColorTransform filter in your toimport_filter.swf. I
> can parse the swf fine if i reduce the expected size of the color matrix
> from 20 to 18. But ColorMatrices should have 20 values, no?


According to the official specs, the ColorMatrix filter consists of (in
addition to the standard tag header) an unsigned byte specifying the filter
type (0x06 in the case of ColorMatrix) followed by 20 FLOAT records (which
is a 32-bit single-precision value).

How did you generate that swf? with flash? how many values can you set
> there?
>
> also, it might be good to do tests for the other filters. Convolution uses
> a matrix of dynamic size... Steve, have you tested these at the time?


Yes I did, with a test SWF similar to Hudson's. However, if I remember
correctly you can't apply a convolution filter using the Flash 8 IDE so I
was unable to properly test this. Presumably this filter exists in the SWF
specs for 3rd party SWF-generating tools like swfmill, since the only way to
apply it to a Flash SWF is to use ActionScript.

and even further on, swfmill and the osflash community at large could profit
> from a set of well-crafted test cases that cover most of what the flash
> player (or players, including gnash et al and earlier versions) do-- if
> possible in a clearly visible way so pass/fail could be detected
> automatically by comparing screenshots...


I agree that this would be very useful. Not something I have time for, but
definitely useful. When implementing the filter support I spent a lot of
time manually examining screenshots.

Steve

-- 
Steve Webster
http://dynamicflash.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20070103/4c7491b5/attachment.htm


More information about the swfmill mailing list