Commit: a2ea4ce70da8562ec2671070eccf46b5bee1f66c
Author: Campbell Barton
Date: Wed Apr 8 07:35:53 2015 +1000
Branches: master
https://developer.blender.org/rBa2ea4ce70da8562ec2671070eccf46b5bee1f66c
Cleanup: IMB/thumb naming
===================================================================
M source/blender/imbuf/IMB_thumbs.h
M source/blender/imbuf/intern/thumbs.c
M source/blender/imbuf/intern/thumbs_blend.c
M source/blender/windowmanager/intern/wm_files.c
===================================================================
diff --git a/source/blender/imbuf/IMB_thumbs.h
b/source/blender/imbuf/IMB_thumbs.h
index 9fc075e..bea531c 100644
--- a/source/blender/imbuf/IMB_thumbs.h
+++ b/source/blender/imbuf/IMB_thumbs.h
@@ -60,8 +60,6 @@ typedef enum ThumbSource {
/* don't generate thumbs for images bigger then this (100mb) */
#define THUMB_SIZE_MAX (100 * 1024 * 1024)
-// IB_metadata
-
/* create thumbnail for file and returns new imbuf for thumbnail */
ImBuf *IMB_thumb_create(const char *path, ThumbSize size, ThumbSource source,
ImBuf *ibuf);
@@ -78,8 +76,8 @@ ImBuf *IMB_thumb_manage(const char *path, ThumbSize size,
ThumbSource source);
void IMB_thumb_makedirs(void);
/* special function for loading a thumbnail embedded into a blend file */
-ImBuf *IMB_loadblend_thumb(const char *path);
-void IMB_overlayblend_thumb(unsigned int *thumb, int width, int height, float
aspect);
+ImBuf *IMB_thumb_load_blend(const char *path);
+void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height,
float aspect);
#ifdef __cplusplus
}
diff --git a/source/blender/imbuf/intern/thumbs.c
b/source/blender/imbuf/intern/thumbs.c
index 21f440a..e88cbef 100644
--- a/source/blender/imbuf/intern/thumbs.c
+++ b/source/blender/imbuf/intern/thumbs.c
@@ -335,7 +335,7 @@ ImBuf *IMB_thumb_create(const char *path, ThumbSize size,
ThumbSource source, Im
/* only load if we didnt give an image */
if (img == NULL) {
if (THB_SOURCE_BLEND == source) {
- img = IMB_loadblend_thumb(path);
+ img =
IMB_thumb_load_blend(path);
}
else {
img = IMB_loadiffname(path,
IB_rect | IB_metadata | IB_thumbnail, NULL);
diff --git a/source/blender/imbuf/intern/thumbs_blend.c
b/source/blender/imbuf/intern/thumbs_blend.c
index aee465c..d7b9089 100644
--- a/source/blender/imbuf/intern/thumbs_blend.c
+++ b/source/blender/imbuf/intern/thumbs_blend.c
@@ -121,7 +121,7 @@ static ImBuf *loadblend_thumb(gzFile gzfile)
return NULL;
}
-ImBuf *IMB_loadblend_thumb(const char *path)
+ImBuf *IMB_thumb_load_blend(const char *path)
{
gzFile gzfile;
/* not necessarily a gzip */
@@ -143,7 +143,7 @@ ImBuf *IMB_loadblend_thumb(const char *path)
/* add a fake passepartout overlay to a byte buffer, use for blend file
thumbnails */
#define MARGIN 2
-void IMB_overlayblend_thumb(unsigned int *thumb, int width, int height, float
aspect)
+void IMB_thumb_overlay_blend(unsigned int *thumb, int width, int height, float
aspect)
{
unsigned char *px = (unsigned char *)thumb;
int margin_l = MARGIN;
diff --git a/source/blender/windowmanager/intern/wm_files.c
b/source/blender/windowmanager/intern/wm_files.c
index f3e9c41..fdad108 100644
--- a/source/blender/windowmanager/intern/wm_files.c
+++ b/source/blender/windowmanager/intern/wm_files.c
@@ -860,7 +860,7 @@ static ImBuf *blend_file_thumb(Scene *scene, bScreen
*screen, int **thumb_pt)
IMB_scaleImBuf(ibuf, BLEN_THUMB_SIZE, BLEN_THUMB_SIZE);
/* add pretty overlay */
- IMB_overlayblend_thumb(ibuf->rect, ibuf->x, ibuf->y, aspect);
+ IMB_thumb_overlay_blend(ibuf->rect, ibuf->x, ibuf->y, aspect);
/* first write into thumb buffer */
thumb = MEM_mallocN(((2 + (BLEN_THUMB_SIZE * BLEN_THUMB_SIZE)))
* sizeof(int), "write_file thumb");
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs