Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/IMB_thumbs.h
| Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | |||||
| /* return the state of the thumb, needed to determine how to manage the thumb */ | /* return the state of the thumb, needed to determine how to manage the thumb */ | ||||
| ImBuf *IMB_thumb_manage(const char *path, ThumbSize size, ThumbSource source); | ImBuf *IMB_thumb_manage(const char *path, ThumbSize size, ThumbSource source); | ||||
| /* create the necessary dirs to store the thumbnails */ | /* create the necessary dirs to store the thumbnails */ | ||||
| void IMB_thumb_makedirs(void); | void IMB_thumb_makedirs(void); | ||||
| /* special function for loading a thumbnail embedded into a blend file */ | /* special function for loading a thumbnail embedded into a blend file */ | ||||
| ImBuf *IMB_thumb_load_blend(const char *path); | ImBuf *IMB_thumb_load_blend(const char *blen_path, const char *blen_group, const char *blen_id); | ||||
| void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height, float aspect); | void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height, float aspect); | ||||
| /* special function for previewing fonts */ | /* special function for previewing fonts */ | ||||
| ImBuf *IMB_thumb_load_font(const char *filename, unsigned int x, unsigned int y); | ImBuf *IMB_thumb_load_font(const char *filename, unsigned int x, unsigned int y); | ||||
| bool IMB_thumb_load_font_get_hash(char *r_hash); | bool IMB_thumb_load_font_get_hash(char *r_hash); | ||||
| /* Threading */ | |||||
| void IMB_thumb_locks_acquire(void); | |||||
| void IMB_thumb_locks_release(void); | |||||
| void IMB_thumb_lock_path(const char *path); | |||||
| void IMB_thumb_unlock_path(const char *path); | |||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| } | } | ||||
| #endif /* __cplusplus */ | #endif /* __cplusplus */ | ||||
| #endif /* __IMB_THUMBS_H__ */ | #endif /* __IMB_THUMBS_H__ */ | ||||