[swfmill] JPEG 2000 Support
Daniel Cassidy
mail at danielcassidy.me.uk
Mon Feb 1 16:33:48 PST 2010
On 2 February 2010 00:10, Nick Sabalausky
<bus_mailinglists at semitwist.com> wrote:
> Is it possible to generate a bitmapped image at runtime in flash? If so, he
> could embed the JPEG 2000 data directly into his code and manually
> decompress it at runtime.
It is certainly technically possible to do that. You could do the
data-embedding part with swfmill today, although then you would have
to write a JPEG 2000 decoding routine in ActionScript or haxe, or port
a C implementation using Alchemy.
If you did do that, then of course the decoding routine itself would
account for some of the size of the SWF. For the whole endeavour to be
remotely worthwhile, the space gained by the improved image
compression would have to at least compensate for the space lost to
the decoding routine.
The space saving would also have to be so valuable that it offset the
considerable expense of developing such a complex solution. Given that
JPEG 2000 offers only a modest improvement in compression performance
over JPEG, while technically interesting I don’t believe that this
sort of thing could ever be economic.
I would also argue that this sort of thing is well outside the scope
of swfmill, and would better be implemented by a separate tool if at
all :).
Dan.
More information about the swfmill
mailing list