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_types.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_types.h')
-rw-r--r-- | source/blender/imbuf/IMB_imbuf_types.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h index 8e0fedbe15e..413047bcae6 100644 --- a/source/blender/imbuf/IMB_imbuf_types.h +++ b/source/blender/imbuf/IMB_imbuf_types.h @@ -150,6 +150,7 @@ typedef enum { #ifdef WITH_QUICKTIME #define QUICKTIME (1 << 25) #endif +#define RADHDR (1<<24) #define RAWTGA (TGA | 1) @@ -187,6 +188,7 @@ typedef enum { #define IS_tga(x) (x->ftype & TGA) #define IS_png(x) (x->ftype & PNG) #define IS_bmp(x) (x->ftype & BMP) +#define IS_radhdr(x) (x->ftype & RADHDR) #define IMAGIC 0732 #define IS_iris(x) (x->ftype == IMAGIC) |