diff options
Diffstat (limited to 'fiv-thumbnail.h')
-rw-r--r-- | fiv-thumbnail.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/fiv-thumbnail.h b/fiv-thumbnail.h index 7f3360a..0d53c01 100644 --- a/fiv-thumbnail.h +++ b/fiv-thumbnail.h @@ -1,7 +1,7 @@ // // fiv-thumbnail.h: thumbnail management // -// Copyright (c) 2021 - 2022, Přemysl Eric Janouch <p@janouch.name> +// Copyright (c) 2021 - 2023, Přemysl Eric Janouch <p@janouch.name> // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted. @@ -21,7 +21,7 @@ #include <gio/gio.h> #include <glib.h> -// And this is how you avoid glib-mkenums. +// Avoid glib-mkenums. typedef enum _FivThumbnailSize { #define FIV_THUMBNAIL_SIZES(XX) \ XX(SMALL, 128, "normal") \ @@ -62,10 +62,14 @@ cairo_surface_t *fiv_thumbnail_extract( cairo_surface_t *fiv_thumbnail_produce( GFile *target, FivThumbnailSize max_size, GError **error); +/// Like fiv_thumbnail_produce(), but skips the cache. +cairo_surface_t *fiv_thumbnail_produce_for_search( + GFile *target, FivThumbnailSize max_size, GError **error); + /// Retrieves a thumbnail of the most appropriate quality and resolution /// for the target file. -cairo_surface_t *fiv_thumbnail_lookup( - const char *uri, gint64 mtime_msec, FivThumbnailSize size); +cairo_surface_t *fiv_thumbnail_lookup(const char *uri, + gint64 mtime_msec, guint64 filesize, FivThumbnailSize size); /// Invalidate the wide thumbnail cache. May write to standard streams. void fiv_thumbnail_invalidate(void); |