From 024b5117b4fdbd3193afab40c071abd11b85a013 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch
Date: Sat, 4 Jun 2022 22:47:44 +0200 Subject: Get rid of our spng dependency Thumbnails can be properly loaded using Wuffs now. --- fiv-io.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fiv-io.h') diff --git a/fiv-io.h b/fiv-io.h index 5a3ba27..3d5aca6 100644 --- a/fiv-io.h +++ b/fiv-io.h @@ -53,6 +53,9 @@ extern cairo_user_data_key_t fiv_io_key_icc; extern cairo_user_data_key_t fiv_io_key_xmp; /// GBytes with a WebP's THUM chunk, used for our thumbnails. extern cairo_user_data_key_t fiv_io_key_thum; +/// GHashTable with key-value pairs from PNG's tEXt, zTXt, iTXt chunks. +/// Currently only read by fiv_io_open_png_thumbnail(). +extern cairo_user_data_key_t fiv_io_key_text; /// The next frame in a sequence, as a surface, in a chain, pre-composited. /// There is no wrap-around. @@ -95,6 +98,7 @@ typedef struct { cairo_surface_t *fiv_io_open(const FivIoOpenContext *ctx, GError **error); cairo_surface_t *fiv_io_open_from_data( const char *data, size_t len, const FivIoOpenContext *ctx, GError **error); +cairo_surface_t *fiv_io_open_png_thumbnail(const char *path, GError **error); // --- Thumbnail passing utilities --------------------------------------------- -- cgit v1.2.3-70-g09d2