Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exrwriter: fixed output images 32i #562

Merged
merged 2 commits into from
Jun 17, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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