|
Blender V2.27
|
00001 00030 #ifndef _IMB_THUMBS_H 00031 #define _IMB_THUMBS_H 00032 00033 #ifdef __cplusplus 00034 extern "C" { 00035 #endif 00036 00037 struct ImBuf; 00038 00045 typedef enum ThumbSize { 00046 THB_NORMAL, 00047 THB_LARGE, 00048 THB_FAIL 00049 } ThumbSize; 00050 00051 typedef enum ThumbSource { 00052 THB_SOURCE_IMAGE, 00053 THB_SOURCE_MOVIE, 00054 THB_SOURCE_BLEND 00055 } ThumbSource; 00056 00057 // IB_metadata 00058 00059 /* create thumbnail for file and returns new imbuf for thumbnail */ 00060 ImBuf* IMB_thumb_create(const char* path, ThumbSize size, ThumbSource source, ImBuf *ibuf); 00061 00062 /* read thumbnail for file and returns new imbuf for thumbnail */ 00063 ImBuf* IMB_thumb_read(const char* path, ThumbSize size); 00064 00065 /* delete all thumbs for the file */ 00066 void IMB_thumb_delete(const char* path, ThumbSize size); 00067 00068 /* return the state of the thumb, needed to determine how to manage the thumb */ 00069 ImBuf* IMB_thumb_manage(const char* path, ThumbSize size, ThumbSource source); 00070 00071 /* create the necessary dirs to store the thumbnails */ 00072 void IMB_thumb_makedirs(void); 00073 00074 /* special function for loading a thumbnail embedded into a blend file */ 00075 ImBuf *IMB_loadblend_thumb(const char *path); 00076 void IMB_overlayblend_thumb(unsigned int *thumb, int width, int height, float aspect); 00077 00078 00079 #endif /* _IMB_THUMBS_H */ 00080
1.7.3