Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-01-09 16:58:51 +0300
committerTon Roosendaal <ton@blender.org>2007-01-09 16:58:51 +0300
commit3228b58a38a9a3717a4a7ea55e82da8ac190fe85 (patch)
treec97901fb03f81dbc41938feb2ae4890654841a1a /source/blender/imbuf
parent75b553e900c6156337b33628dff30f7fc57a4b0a (diff)
Added flag in MultiChannel exr file to denote line order. Blender has the
Y coordinate 0 in left-bottom of screen :) Fun news: cinepaint now reads such files too: http://www.blender.org/bf/cornelius.exr_sc1.jpg
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/openexr/openexr_api.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/openexr/openexr_api.cpp b/source/blender/imbuf/intern/openexr/openexr_api.cpp
index b39700e019c..647d90f7927 100644
--- a/source/blender/imbuf/intern/openexr/openexr_api.cpp
+++ b/source/blender/imbuf/intern/openexr/openexr_api.cpp
@@ -443,6 +443,7 @@ void IMB_exr_begin_write(void *handle, char *filename, int width, int height, in
header.channels().insert (echan->name, Channel (FLOAT));
openexr_header_compression(&header, compress);
+ header.lineOrder() = DECREASING_Y;
header.insert ("BlenderMultiChannel", StringAttribute ("Blender V2.43"));
@@ -464,7 +465,7 @@ void IMB_exrtile_begin_write(void *handle, char *filename, int width, int height
header.channels().insert (echan->name, Channel (FLOAT));
header.setTileDescription (TileDescription (tilex, tiley, ONE_LEVEL));
- header.lineOrder() = RANDOM_Y,
+ header.lineOrder() = RANDOM_Y;
header.compression() = RLE_COMPRESSION;
header.insert ("BlenderMultiChannel", StringAttribute ("Blender V2.43"));