summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-04-25 20:42:54 +0000
committerKristian Høgsberg <krh@redhat.com>2005-04-25 20:42:54 +0000
commit87009d692b5a37fc91db19819c46216ed6b3c4e3 (patch)
treec18f745e369ddc891512d5c79d123970496fb455 /ChangeLog
parente55161d2b2ea27d5174c2674544b3aaf6748134d (diff)
Factor out bulk of the code into a new callback based function, write_png(). Call it with a stdio write callback. (cairo_surface_write_png_to_stream): New function to write a surface to a PNG stream. (cairo_image_surface_create_from_png): Likewise, move most of the code to read_png(), clean up error handling and reduce this function to calling read_png() with a stdio based read function. (cairo_image_surface_create_from_png_stream): New function to create an image surface from a PNG stream.
New functions to get widht and height of an image surface. Add new prototype and error codes. Adjust to new PNG API.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog21
1 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 194fc8df..8706214d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2005-04-25 Kristian Høgsberg <krh@redhat.com>
+
+ * src/cairo-png.c (cairo_surface_write_png): Factor out bulk of
+ the code into a new callback based function, write_png(). Call it
+ with a stdio write callback.
+ (cairo_surface_write_png_to_stream): New function to write a
+ surface to a PNG stream.
+ (cairo_image_surface_create_from_png): Likewise, move most of the
+ code to read_png(), clean up error handling and reduce this
+ function to calling read_png() with a stdio based read function.
+ (cairo_image_surface_create_from_png_stream): New function to
+ create an image surface from a PNG stream.
+
+ * src/cairo-image-surface.c (cairo_image_surface_get_width)
+ (cairo_image_surface_get_height): New functions to get widht and
+ height of an image surface.
+
+ * src/cairo.h: Add new prototype and error codes.
+
+ * test/create-for-png.c (draw): Adjust to new PNG API.
+
2005-04-25 Owen Taylor <otaylor@redhat.com>
* src/cairo-win32-surface.c (cairo_win32_surface_create): Initialize