diff options
author | Harley Acheson <harley.acheson@gmail.com> | 2022-05-20 00:55:04 +0300 |
---|---|---|
committer | Harley Acheson <harley.acheson@gmail.com> | 2022-05-20 00:55:04 +0300 |
commit | f600a2aa6df1dd85f9d00be57031c9e1dcbfbd08 (patch) | |
tree | ef5f01cf92c4c3440753ace52056ae9300c7a9bc /source/blender/imbuf/intern/openexr/openexr_api.h | |
parent | 89106a695afbba3d94b70645b4caaa22c2b58bc3 (diff) |
IMBUF: Thumbnails of all EXR files using less RAM
Specialized thumbnailing function to create previews of all EXR image
files, regardless of type, size, or dimensions. Uses less RAM by only
loading a single row of pixels at a time.
See D14663 for more details and examples.
Differential Revision: https://developer.blender.org/D14663
Reviewed by Brecht Van Lommel
Diffstat (limited to 'source/blender/imbuf/intern/openexr/openexr_api.h')
-rw-r--r-- | source/blender/imbuf/intern/openexr/openexr_api.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.h b/source/blender/imbuf/intern/openexr/openexr_api.h index c02b03dbe6c..a62c87428b6 100644 --- a/source/blender/imbuf/intern/openexr/openexr_api.h +++ b/source/blender/imbuf/intern/openexr/openexr_api.h @@ -26,6 +26,13 @@ bool imb_save_openexr(struct ImBuf *ibuf, const char *name, int flags); struct ImBuf *imb_load_openexr(const unsigned char *mem, size_t size, int flags, char *colorspace); +struct ImBuf *imb_load_filepath_thumbnail_openexr(const char *filepath, + const int flags, + const size_t max_thumb_size, + char colorspace[], + size_t *r_width, + size_t *r_height); + #ifdef __cplusplus } #endif |