diff options
author | Ton Roosendaal <ton@blender.org> | 2005-11-20 17:32:07 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2005-11-20 17:32:07 +0300 |
commit | c52170b4ed83a279af5d1a065d173969fe3d24cd (patch) | |
tree | c7bde0a344cfc7734e4214147bb925c216370ddc /source/blender/imbuf/intern/writeimage.c | |
parent | 36a9ae941510a12d092e76ac1d2cf1d731d793d3 (diff) |
Patch provided by Alfredo de Greef
This adds Radiance HDR image file support. So now at least we can save
the 'fbuf' (4x32 bits float colors) in Blender.
It doesn't change anything for internal support in imbuf for floa colors,
so when reading .hdr files it still converts it to 32 bits RGBA.
As an extra I've added that saving images with F3 now also adds the
optional extension, when the F10 "Extensions" option is set.
One important note; I don't know the proper license for the code, it was
provided without... will await feedback from Alfredo about it. For now
I've added the standard Blender GPL header.
Diffstat (limited to 'source/blender/imbuf/intern/writeimage.c')
-rw-r--r-- | source/blender/imbuf/intern/writeimage.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/writeimage.c b/source/blender/imbuf/intern/writeimage.c index 04e83c6814b..148597dda35 100644 --- a/source/blender/imbuf/intern/writeimage.c +++ b/source/blender/imbuf/intern/writeimage.c @@ -54,6 +54,7 @@ #include "IMB_amiga.h" #include "IMB_png.h" #include "IMB_bmp.h" +#include "IMB_radiance_hdr.h" #include "IMB_iff.h" #include "IMB_bitplanes.h" @@ -71,6 +72,9 @@ short IMB_saveiff(struct ImBuf *ibuf,char *naam,int flags) if (IS_jpg(ibuf)) { return imb_savejpeg(ibuf, naam, flags); } + if (IS_radhdr(ibuf)) { + return imb_savehdr(ibuf, naam, flags); + } if (IS_png(ibuf)) { return imb_savepng(ibuf,naam,flags); } |