diff options
author | Ton Roosendaal <ton@blender.org> | 2006-01-09 13:55:41 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2006-01-09 13:55:41 +0300 |
commit | f0aceff1966f76fdf32420b9e319eaa5341c364d (patch) | |
tree | 84c0892156689ff3c9d4f578856b3602aa5bc103 /source/blender/src/screendump.c | |
parent | c693e01b8d9bd9af629b0fc8abab0a42a810c177 (diff) |
Orange: Further cleanup of EXR saving
- F10 scene buttons now has options "half" and "zbuf" for exr saving.
Note: when no float buffer is available, it always saves as "half",
that's sufficient anyway, since half is 16 bits per channel.
- EXR in imbuf now uses compliant ibuf->ftype flags for denoting exr
extensions such as 'half' and 'compression'.
- Removed ugly blenkernel dependency from exr module
Diffstat (limited to 'source/blender/src/screendump.c')
-rw-r--r-- | source/blender/src/screendump.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/src/screendump.c b/source/blender/src/screendump.c index cd51f1fdb0f..557a6f101a5 100644 --- a/source/blender/src/screendump.c +++ b/source/blender/src/screendump.c @@ -88,7 +88,12 @@ void write_screendump(char *name) else if((G.have_libtiff) && (G.scene->r.imtype==R_TIFF)) ibuf->ftype= TIF; #ifdef WITH_OPENEXR - else if(G.scene->r.imtype==R_OPENEXR) ibuf->ftype= OPENEXR; + else if(G.scene->r.imtype==R_OPENEXR) { + ibuf->ftype= OPENEXR; + if(G.scene->r.subimtype & R_OPENEXR_HALF) + ibuf->ftype |= OPENEXR_HALF; + ibuf->ftype |= (G.scene->r.quality & OPENEXR_COMPRESS); + } #endif else if(G.scene->r.imtype==R_HAMX) ibuf->ftype= AN_hamx; else if(ELEM5(G.scene->r.imtype, R_MOVIE, R_AVICODEC, R_AVIRAW, R_AVIJPEG, R_JPEG90)) { |