On Sat, Oct 02, 2010 at 08:29:44PM +0000, Chris Young wrote: > Hi all > > As I'm sure you're aware, Google announced a new image format a couple > of days ago, intended to replace JPEG for images on the web. I've > been playing around with it, and although we don't know yet whether it > will take off, I thought it would be fun to make NetSurf one of the > first (if not _the_ first) web browser to support the new format. > > The attached patch adds this support, using Google's "libwebp" (which > is actually the source code file webpimg.c I've dropped in - with > minor tweaks - it doesn't build itself as a real library). > > Caveats: > 1. The conversion is an endian-aware conversion to RGBA. This is > fine for big-endian platforms, but on little-endian the byte order > will be wrong for NetSurf. > > 2. It requires libvpx. Much porting fun. > > For those reasons I've enabled support for WebP only on the Amiga > platform build - that's all I'm in a position to test at the moment. > I suggest testing and enabling/adding the makefile/makefile.defaults > lines on a platform-by-platform basis. > > If everybody is happy I'll commit it.
firstly, cool! it works (for the three images i could find ;-) I would prefer to see a libnswebp and have netsurf use the library, that way its decoupled from googles code and them changing their mind ;-) Also allows us to separate the licencing just in case of issues. -- Regards Vincent http://www.kyllikki.org/
