From 71fa539b9394214b4db1d8184812fb1472931b9f Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Wed, 14 May 2003 13:25:47 +0000 Subject: [PATCH] - updated iff.h, for compatibility with blender itself this fixes zbuffer reading for plugins again --- source/blender/blenpluginapi/iff.h | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/source/blender/blenpluginapi/iff.h b/source/blender/blenpluginapi/iff.h index 8e97f2d4b3d..4fa3e0214fa 100644 --- a/source/blender/blenpluginapi/iff.h +++ b/source/blender/blenpluginapi/iff.h @@ -114,26 +114,28 @@ #define AN_INIT an_stringdec = stringdec; an_stringenc = stringenc; typedef struct ImBuf{ - short x,y; /* breedte in pixels, hoogte in scanlines */ - short skipx; /* breedte in ints om bij volgende scanline te komen */ - uchar depth; /* actieve aantal bits/bitplanes */ - uchar cbits; /* aantal active bits in cmap */ - ushort mincol; - ushort maxcol; + short x,y; /* width in pixels, height in scanlines */ + short skipx; /* width in ints to get to the next scanline */ + unsigned char depth; /* active amount of bits/bitplanes */ + unsigned char cbits; /* amount of active bits in cmap */ + unsigned short mincol; + unsigned short maxcol; int type; /* 0=abgr, 1=bitplanes */ int ftype; - uint *cmap; /* int array van kleuren */ - uint *rect; /* databuffer */ - uint **planes; /* bitplanes */ - uchar *chardata; /* voor cdi-compressie */ + unsigned int *cmap; /* int array van kleuren */ + unsigned int *rect; /* databuffer */ + unsigned int **planes; /* bitplanes */ int flags; - int mall; /* wat is er intern gemalloced en mag weer vrijgegeven worden */ + int mall; /* what is malloced internal, and can be freed */ short xorig, yorig; - char name[127]; + char name[1023]; char namenull; int userflags; int *zbuf; - void *userdata; + void *userdata; + unsigned char *encodedbuffer; + unsigned int encodedsize; + unsigned int encodedbuffersize; } ImBuf; extern struct ImBuf *allocImBuf(short,short,uchar,uint,uchar);