diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-07-13 14:58:17 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-07-13 14:58:17 +0300 |
commit | e142ae77cadf04103fbc643f21cf60891862f6a8 (patch) | |
tree | 142e25fccd5ba3e748a1652706e7e4f1220ca289 /source/blender/imbuf/intern/tiff.c | |
parent | 107bbee4c763c95ea5d07a3b2f08bfe3b6adb24c (diff) |
Imbuf types refactor.
ImBuf types were getting stored as bitflags in a 32bit integer which had
already run out of space. Solved the problem by separating file type to
an ftype enum, and file specific options to foptions.
Reviewed by Campbell, thanks a lot!
Diffstat (limited to 'source/blender/imbuf/intern/tiff.c')
-rw-r--r-- | source/blender/imbuf/intern/tiff.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/imbuf/intern/tiff.c b/source/blender/imbuf/intern/tiff.c index 6a25f057cc0..1c501f8f592 100644 --- a/source/blender/imbuf/intern/tiff.c +++ b/source/blender/imbuf/intern/tiff.c @@ -559,7 +559,7 @@ ImBuf *imb_loadtiff(const unsigned char *mem, size_t size, int flags, char color ibuf = IMB_allocImBuf(width, height, ib_depth, 0); if (ibuf) { - ibuf->ftype = TIF; + ibuf->ftype = IMB_FTYPE_TIF; } else { fprintf(stderr, @@ -720,7 +720,7 @@ int imb_savetiff(ImBuf *ibuf, const char *name, int flags) return (0); } - if ((ibuf->ftype & TIF_16BIT) && ibuf->rect_float) + if ((ibuf->foptions.flag & TIF_16BIT) && ibuf->rect_float) bitspersample = 16; else bitspersample = 8; |