Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/IMB_thumbs.h
| Show First 20 Lines • Show All 55 Lines • ▼ Show 20 Lines | typedef enum ThumbSource { | ||||
| THB_SOURCE_MOVIE, | THB_SOURCE_MOVIE, | ||||
| THB_SOURCE_BLEND, | THB_SOURCE_BLEND, | ||||
| THB_SOURCE_FONT, | THB_SOURCE_FONT, | ||||
| } ThumbSource; | } ThumbSource; | ||||
| /* don't generate thumbs for images bigger then this (100mb) */ | /* don't generate thumbs for images bigger then this (100mb) */ | ||||
| #define THUMB_SIZE_MAX (100 * 1024 * 1024) | #define THUMB_SIZE_MAX (100 * 1024 * 1024) | ||||
| #define PREVIEW_RENDER_DEFAULT_HEIGHT 128 | |||||
| /* create thumbnail for file and returns new imbuf for thumbnail */ | /* create thumbnail for file and returns new imbuf for thumbnail */ | ||||
| ImBuf *IMB_thumb_create(const char *path, ThumbSize size, ThumbSource source, ImBuf *ibuf); | ImBuf *IMB_thumb_create(const char *path, ThumbSize size, ThumbSource source, ImBuf *ibuf); | ||||
| /* read thumbnail for file and returns new imbuf for thumbnail */ | /* read thumbnail for file and returns new imbuf for thumbnail */ | ||||
| ImBuf *IMB_thumb_read(const char *path, ThumbSize size); | ImBuf *IMB_thumb_read(const char *path, ThumbSize size); | ||||
| /* delete all thumbs for the file */ | /* delete all thumbs for the file */ | ||||
| void IMB_thumb_delete(const char *path, ThumbSize size); | void IMB_thumb_delete(const char *path, ThumbSize size); | ||||
| Show All 21 Lines | |||||