[cairo] JPEG support patch

Andrew McRae amcrae at employees.org
Tue Jan 16 16:23:26 PST 2007


Comrades,
I have a patch at
http://mcrae.homeunix.net/cairo/0001-Add-JPEG-support.txt.gz
for adding JPEG support i.e reading and writing
JPEG files, similar to the PNG support.
Attached are the changes to cairo.h, which describe
the API changes.

The patch is large because it adds a prebuilt
color lookup table for converting premultiplied cairo
RGB values to/from `normal' RGB values. This table
is also used for some other changes I have for
adding paletting support for PNG (which I'll
post separately).

Comments welcome on the addition of the JPEG
support functions to the API.

Cheers,
AMc
PS to pre-empt the inevitable discussion on whether it is
wise to add yet more image formats to cairo, clearly
we need to support a small number of popular formats, and
in IMHO this list should perhaps be PNG, JPEG and perhaps GIF.
Someone suggested a separation of the image format I/O
into a separate library - this is probably a good idea..
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jpeg-api.txt
Type: text/x-patch
Size: 2211 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20070117/0f9c7772/jpeg-api.bin


More information about the cairo mailing list