aboutsummaryrefslogtreecommitdiff
path: root/fiv-thumbnail.h
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-02-20 19:43:21 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-02-20 21:14:33 +0100
commit04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b (patch)
tree98ae92f877537656d49e72d6ecdf0c1efcfd969a /fiv-thumbnail.h
parenta28fbf25bcec03ae8cb8e6b22537883f78541d66 (diff)
downloadfiv-04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b.tar.gz
fiv-04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b.tar.xz
fiv-04ec292caf2ec2aa1e6a694996fefa6ec3b5ff6b.zip
Make thumbnailers pass back raw images
Diffstat (limited to 'fiv-thumbnail.h')
-rw-r--r--fiv-thumbnail.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/fiv-thumbnail.h b/fiv-thumbnail.h
index 8d7dfa0..101e8a8 100644
--- a/fiv-thumbnail.h
+++ b/fiv-thumbnail.h
@@ -56,8 +56,9 @@ extern cairo_user_data_key_t fiv_thumbnail_key_lq;
gchar *fiv_thumbnail_get_root(void);
/// Generates wide thumbnails of up to the specified size, saves them in cache.
-gboolean fiv_thumbnail_produce(
- GFile *target, FivThumbnailSize max_size, GError **error);
+/// Returns the surface used for the maximum size (if the pointer was NULL).
+gboolean fiv_thumbnail_produce(GFile *target, FivThumbnailSize max_size,
+ cairo_surface_t **max_size_surface, GError **error);
/// Retrieves a thumbnail of the most appropriate quality and resolution
/// for the target file.