diff options
author | Ton Roosendaal <ton@blender.org> | 2003-05-14 17:25:47 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2003-05-14 17:25:47 +0400 |
commit | 71fa539b9394214b4db1d8184812fb1472931b9f (patch) | |
tree | 4851a1d1bdc43d8f9e6a90ed56a1fd8732d9bbe5 /source/blender | |
parent | adacfb1b15968f8a3bd665f2e3ad1b57218d5d87 (diff) |
- updated iff.h, for compatibility with blender itself
this fixes zbuffer reading for plugins again
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenpluginapi/iff.h | 28 |
1 files 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); |