Results of JPEG2000 Activity in the Google Summer of Code 2007

Earlier this year I posted a summary of planned JPEG2000 activity in the Google Summer of Code. As you may recall, there were two project: one mentored by the Mozilla Foundation and another by FFmpeg. This post is a summary of the results of the efforts of the GSoC students.

JPEG2000 in Firefox


Ben Karel, a Computer Science undergraduate student at the University of Delaware, and I have been having a running e-mail conversation about his efforts to bring JPEG2000 to the Firefox browser. He has given me permission to summarize our conversation here.

I was able to successfully create XPIs for the three major platforms that enable in-line decoding of JP2 images. [This week] I have updated trunk (Firefox 3) builds for Windows and OS X posted to http://eschew.org/test/jp2/xpi/, and will make Linux and Firefox 2 builds in the next few days (hold me to it!). Once I have the major platforms covered, I’m going to submit the extensions to addons.mozilla.org.

We also talked about the chicken-and-egg problem of getting JPEG2000 support into the core browser code. The crux of the problem can be summarized as “why include J2K support in the core browser when it is hardly used?” followed closely by “why use J2K when users would have to install extra software to see the images?”

I think, down the road, a list of major users of JP2 would be helpful, but the folks who work on Mozilla full-time are caught up with the transition from the 1.9 version of the the core code (Gecko), to version 2.0, a fairly major task. Once the dust from that has settled down, I think Stuart Parmenter would be much more receptive to the idea of adding an image decoder to Gecko. Until then, I doubt it would hurt, but I also suspect it would fall on deaf ears.

[ Update 20071101T0859 : Ben posted a message on his blog with the details of building the JP2 renderer for Firefox using the source code. Thanks, Ben! ]

Congratulations to Ben for taking the JPEG2000 integration into Firefox this far. I believe your work will have long-lasting impact.

JPEG2000 in FFmpeg


Kamil Nowosad from Warsaw University took on the task of embedding a JPEG2000 decoder and encoder for FFmpeg. Work did not seem to progress as far — the ambitions may have been higher than what is possible in 12 weeks. Michael Niedermayer posted this summary on his blog:

Kamils jpeg 2000 encoder and decoder, arent in good shape yet (only 2 out of 50 encoded images can be decoded by jasper, only 2 of 23 reference jpeg2k files can be decoded by kamils decoder), but then please dont forget that writing an encoder and decoder at the same time is harder then just one of the 2

Hopefully Kamil will be able to continue his work and bring JPEG2000 to FFmpeg.

(This post was updated on 10-Nov-2007.)