Make thumbnailers pass back raw images

This commit is contained in:
2022-02-20 19:43:21 +01:00
parent a28fbf25bc
commit 04ec292caf
6 changed files with 137 additions and 36 deletions

View File

@@ -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.