From 2d32b92d77bf0c0f5fc3827277d26a26bbbb2580 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 13 Jul 2015 22:00:07 +1000 Subject: Cleanup: IMB prefix for ImBuf defines --- source/blender/imbuf/intern/allocimbuf.c | 2 +- source/blender/imbuf/intern/filter.c | 4 ++-- source/blender/imbuf/intern/readimage.c | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source/blender/imbuf/intern') diff --git a/source/blender/imbuf/intern/allocimbuf.c b/source/blender/imbuf/intern/allocimbuf.c index 03fc2c0fa5d..9042c4bd09c 100644 --- a/source/blender/imbuf/intern/allocimbuf.c +++ b/source/blender/imbuf/intern/allocimbuf.c @@ -492,7 +492,7 @@ ImBuf *IMB_dupImBuf(ImBuf *ibuf1) tbuf.encodedbuffer = ibuf2->encodedbuffer; tbuf.zbuf = NULL; tbuf.zbuf_float = NULL; - for (a = 0; a < IB_MIPMAP_LEVELS; a++) + for (a = 0; a < IMB_MIPMAP_LEVELS; a++) tbuf.mipmap[a] = NULL; tbuf.dds_data.data = NULL; diff --git a/source/blender/imbuf/intern/filter.c b/source/blender/imbuf/intern/filter.c index 7adb2c7cc1d..ef445239491 100644 --- a/source/blender/imbuf/intern/filter.c +++ b/source/blender/imbuf/intern/filter.c @@ -472,7 +472,7 @@ void IMB_remakemipmap(ImBuf *ibuf, int use_filter) ibuf->miptot = 1; - while (curmap < IB_MIPMAP_LEVELS) { + while (curmap < IMB_MIPMAP_LEVELS) { if (ibuf->mipmap[curmap]) { @@ -512,7 +512,7 @@ void IMB_makemipmap(ImBuf *ibuf, int use_filter) ibuf->miptot = 1; - while (curmap < IB_MIPMAP_LEVELS) { + while (curmap < IMB_MIPMAP_LEVELS) { if (use_filter) { ImBuf *nbuf = IMB_allocImBuf(hbuf->x, hbuf->y, 32, IB_rect); IMB_filterN(nbuf, hbuf); diff --git a/source/blender/imbuf/intern/readimage.c b/source/blender/imbuf/intern/readimage.c index 38d54e64035..1c83b33e296 100644 --- a/source/blender/imbuf/intern/readimage.c +++ b/source/blender/imbuf/intern/readimage.c @@ -192,22 +192,22 @@ static void imb_cache_filename(char *filename, const char *name, int flags) { /* read .tx instead if it exists and is not older */ if (flags & IB_tilecache) { - BLI_strncpy(filename, name, IB_FILENAME_SIZE); - if (!BLI_replace_extension(filename, IB_FILENAME_SIZE, ".tx")) + BLI_strncpy(filename, name, IMB_FILENAME_SIZE); + if (!BLI_replace_extension(filename, IMB_FILENAME_SIZE, ".tx")) return; if (BLI_file_older(name, filename)) return; } - BLI_strncpy(filename, name, IB_FILENAME_SIZE); + BLI_strncpy(filename, name, IMB_FILENAME_SIZE); } ImBuf *IMB_loadiffname(const char *filepath, int flags, char colorspace[IM_MAX_SPACE]) { ImBuf *ibuf; int file, a; - char filepath_tx[IB_FILENAME_SIZE]; + char filepath_tx[IMB_FILENAME_SIZE]; BLI_assert(!BLI_path_is_rel(filepath)); @@ -236,7 +236,7 @@ ImBuf *IMB_testiffname(const char *filepath, int flags) { ImBuf *ibuf; int file; - char filepath_tx[IB_FILENAME_SIZE]; + char filepath_tx[IMB_FILENAME_SIZE]; char colorspace[IM_MAX_SPACE] = "\0"; BLI_assert(!BLI_path_is_rel(filepath)); -- cgit v1.2.3