[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [30378] trunk/blender/source/blender/imbuf /intern/openexr/openexr_api.cpp: own recent commit which added support for writing srgb float buffers broke writing char buffers as half EXR 's.
Campbell Barton
ideasman42 at gmail.com
Thu Jul 15 15:32:20 CEST 2010
Revision: 30378
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=30378
Author: campbellbarton
Date: 2010-07-15 15:32:20 +0200 (Thu, 15 Jul 2010)
Log Message:
-----------
own recent commit which added support for writing srgb float buffers broke writing char buffers as half EXR's.
Modified Paths:
--------------
trunk/blender/source/blender/imbuf/intern/openexr/openexr_api.cpp
Modified: trunk/blender/source/blender/imbuf/intern/openexr/openexr_api.cpp
===================================================================
--- trunk/blender/source/blender/imbuf/intern/openexr/openexr_api.cpp 2010-07-15 12:45:11 UTC (rev 30377)
+++ trunk/blender/source/blender/imbuf/intern/openexr/openexr_api.cpp 2010-07-15 13:32:20 UTC (rev 30378)
@@ -267,6 +267,8 @@
if(ibuf->profile == IB_PROFILE_LINEAR_RGB) {
for (int i = ibuf->y-1; i >= 0; i--)
{
+ from= (unsigned char *)ibuf->rect + channels*i*width;
+
for (int j = ibuf->x; j > 0; j--)
{
to->r = (float)(from[0])/255.0;
@@ -280,6 +282,8 @@
else {
for (int i = ibuf->y-1; i >= 0; i--)
{
+ from= (unsigned char *)ibuf->rect + channels*i*width;
+
for (int j = ibuf->x; j > 0; j--)
{
to->r = srgb_to_linearrgb((float)from[0] / 255.0);
More information about the Bf-blender-cvs
mailing list