From a1919e6db4e20f1ab16646d3cbb273f569af23e1 Mon Sep 17 00:00:00 2001 From: Kent Mein Date: Fri, 11 Mar 2005 20:16:14 +0000 Subject: Gernot Ziegler's patch to add OpenEXR support to blender. To enable it you will need to download OpenEXR and install it. For the Makefiles you will need to set WITH_OPENEXR=true and set NAN_OPENEXR to point to where OpenEXR is installed. For scons you'll need to remove config.opts to get the new options so you can enable OpenEXR, I was not able to get blender to link with scons so the scons stuff may need to be tweaked a little but I think it should work. For other platform managers The OpenEXR stuff is similar to QUICKTIME you need to define WITH_OPENEXR and setup the library stuff and as you'll notice in this commit there are two extra files. Kent --- source/blender/imbuf/intern/writeimage.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source/blender/imbuf/intern/writeimage.c') diff --git a/source/blender/imbuf/intern/writeimage.c b/source/blender/imbuf/intern/writeimage.c index 150ab8aac26..925eaca3e87 100644 --- a/source/blender/imbuf/intern/writeimage.c +++ b/source/blender/imbuf/intern/writeimage.c @@ -50,6 +50,9 @@ #include "IMB_amiga.h" #include "IMB_png.h" #include "IMB_bmp.h" +#ifdef WITH_OPENEXR +#include "IMB_openexr.h" +#endif #include "IMB_iff.h" #include "IMB_bitplanes.h" @@ -70,6 +73,11 @@ short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags) if (IS_png(ibuf)) { return imb_savepng(ibuf,naam,flags); } +#ifdef WITH_OPENEXR + if (IS_openexr(ibuf)) { + return imb_save_openexr(ibuf,naam,flags); + } +#endif if (IS_bmp(ibuf)) { return imb_savebmp(ibuf,naam,flags); } -- cgit v1.2.3