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/IMB_imbuf.h | |
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/IMB_imbuf.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf.h b/source/blender/imbuf/IMB_imbuf.h index 80eec374627..c16f25a4492 100644 --- a/source/blender/imbuf/IMB_imbuf.h +++ b/source/blender/imbuf/IMB_imbuf.h @@ -513,4 +513,9 @@ void quicktime_exit(void); #endif //WITH_QUICKTIME +/* radhdr: Temporary routine to save directly from render floatbuffer. + Defined in radiance_hdr.c + Called by schrijfplaatje() in toets.c */ +short imb_savehdr_fromfloat(float *fbuf, char *name, int width, int height); + #endif |