Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/imbuf/intern/iris.c')
-rw-r--r--source/blender/imbuf/intern/iris.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/imbuf/intern/iris.c b/source/blender/imbuf/intern/iris.c
index f29f68bdcb4..adbf3659d3a 100644
--- a/source/blender/imbuf/intern/iris.c
+++ b/source/blender/imbuf/intern/iris.c
@@ -29,6 +29,11 @@
* $Id$
*/
+/** \file blender/imbuf/intern/iris.c
+ * \ingroup imbuf
+ */
+
+
#include <string.h>
#include "BLI_blenlib.h"
@@ -216,7 +221,7 @@ static void test_endian_zbuf(struct ImBuf *ibuf)
int *zval;
if( BIG_LONG(1) == 1 ) return;
- if(ibuf->zbuf==0) return;
+ if(ibuf->zbuf == NULL) return;
len= ibuf->x*ibuf->y;
zval= ibuf->zbuf;
@@ -271,14 +276,14 @@ struct ImBuf *imb_loadiris(unsigned char *mem, size_t size, int flags)
readheader(inf, &image);
if(image.imagic != IMAGIC) {
fprintf(stderr,"longimagedata: bad magic number in image file\n");
- return(0);
+ return(NULL);
}
rle = ISRLE(image.type);
bpp = BPP(image.type);
if(bpp != 1 && bpp != 2) {
fprintf(stderr,"longimagedata: image must have 1 or 2 byte per pix chan\n");
- return(0);
+ return(NULL);
}
xsize = image.xsize;
@@ -821,7 +826,7 @@ int imb_saveiris(struct ImBuf * ibuf, const char *name, int flags)
int ret;
zsize = (ibuf->depth + 7) >> 3;
- if (flags & IB_zbuf && ibuf->zbuf != 0) zsize = 8;
+ if (flags & IB_zbuf && ibuf->zbuf != NULL) zsize = 8;
IMB_convert_rgba_to_abgr(ibuf);
test_endian_zbuf(ibuf);