Skip to content

Commit

Permalink
Merge pull request #562 from cchampet/fix_exrwriterWrite32i
Browse files Browse the repository at this point in the history
exrwriter: up to v3.1
* Fixed output images 32i
  • Loading branch information
cchampet authored Jun 17, 2016
2 parents 1c4c1fc + 955e0e3 commit 7c5424a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/image/io/Exr/src/mainEntry.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#define OFXPLUGIN_VERSION_MAJOR 3
#define OFXPLUGIN_VERSION_MINOR 0
#define OFXPLUGIN_VERSION_MINOR 1

#include <tuttle/plugin/Plugin.hpp>
#include "reader/EXRReaderPluginFactory.hpp"
Expand Down
6 changes: 3 additions & 3 deletions plugins/image/io/Exr/src/writer/EXRWriterProcess.tcc
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,13 @@ void EXRWriterProcess<View>::multiThreadProcessImages(const OfxRectI& procWindow
switch(_plugin._clipSrc->getPixelComponents())
{
case OFX::ePixelComponentAlpha:
writeImage<gray32_pixel_t>(src, _params._filepath, Imf::HALF);
writeImage<gray32_pixel_t>(src, _params._filepath, Imf::UINT);
break;
case OFX::ePixelComponentRGB:
writeImage<rgb32_pixel_t>(src, _params._filepath, Imf::HALF);
writeImage<rgb32_pixel_t>(src, _params._filepath, Imf::UINT);
break;
case OFX::ePixelComponentRGBA:
writeImage<rgba32_pixel_t>(src, _params._filepath, Imf::HALF);
writeImage<rgba32_pixel_t>(src, _params._filepath, Imf::UINT);
break;
default:
BOOST_THROW_EXCEPTION(exception::Unsupported()
Expand Down

0 comments on commit 7c5424a

Please sign in to comment.