diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-06-07 04:21:04 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-06-08 02:51:54 +0200 |
commit | 8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f (patch) | |
tree | e8b3e939086891abd39571767df1cfde5cd8e36a /fiv-thumbnail.h | |
parent | 930744e1652c9ec5ad6447c0a2a1e486cae9a2a9 (diff) | |
download | fiv-8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f.tar.gz fiv-8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f.tar.xz fiv-8dfbd0dee2a76d4cc3c8b1a339ed6d904b45fd9f.zip |
Add a command line option to extract thumbnails
Only use LibRaw for now, which probably has the most impact
using the least amount of effort.
Diffstat (limited to 'fiv-thumbnail.h')
-rw-r--r-- | fiv-thumbnail.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fiv-thumbnail.h b/fiv-thumbnail.h index 35b93fe..301a641 100644 --- a/fiv-thumbnail.h +++ b/fiv-thumbnail.h @@ -55,10 +55,13 @@ extern cairo_user_data_key_t fiv_thumbnail_key_lq; /// Returns this user's root thumbnail directory. gchar *fiv_thumbnail_get_root(void); +/// Attempts to extract any low-quality thumbnail from fast targets. +cairo_surface_t *fiv_thumbnail_extract(GFile *target, GError **error); + /// Generates wide thumbnails of up to the specified size, saves them in cache. -/// 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); +/// Returns the surface used for the maximum size, or an error. +cairo_surface_t *fiv_thumbnail_produce( + GFile *target, FivThumbnailSize max_size, GError **error); /// Retrieves a thumbnail of the most appropriate quality and resolution /// for the target file. |