diff --git a/src/IECore/DeepPixel.cpp b/src/IECore/DeepPixel.cpp index 6bdfe17fa2..3375abef3b 100644 --- a/src/IECore/DeepPixel.cpp +++ b/src/IECore/DeepPixel.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////// // -// Copyright (c) 2011, Image Engine Design Inc. All rights reserved. +// Copyright (c) 2011-2014, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -41,7 +41,8 @@ using namespace IECore; DeepPixel::DeepPixel( const std::string channelNames, unsigned numSamples ) - : m_channels( channelNames.size() ) + : m_sorted( false ), + m_channels( channelNames.size() ) { m_depthIndices.reserve( numSamples ); m_samples.reserve( numSamples * ( 1 + channelNames.size() ) ); @@ -54,6 +55,7 @@ DeepPixel::DeepPixel( const std::string channelNames, unsigned numSamples ) } DeepPixel::DeepPixel( const std::vector &channelNames, unsigned numSamples ) + : m_sorted( false ) { m_depthIndices.reserve( numSamples ); m_samples.reserve( numSamples * ( 1 + channelNames.size() ) ); diff --git a/src/IECore/LensDistortOp.cpp b/src/IECore/LensDistortOp.cpp index 3fb5cc851f..26a0883179 100644 --- a/src/IECore/LensDistortOp.cpp +++ b/src/IECore/LensDistortOp.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////// // -// Copyright (c) 2013, Image Engine Design Inc. All rights reserved. +// Copyright (c) 2013-2014, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -55,7 +55,8 @@ LensDistortOp::LensDistortOp() : WarpOp( "Distorts an ImagePrimitive using a parametric lens model which is supplied as a .cob file. " "The resulting image will have the same display window as the original with a different data window." - ) + ), + m_mode( kUndistort ) { IntParameter::PresetsContainer modePresets; diff --git a/src/IECoreRI/SHWDeepImageWriter.cpp b/src/IECoreRI/SHWDeepImageWriter.cpp index 92d096d9fa..3021349f3b 100644 --- a/src/IECoreRI/SHWDeepImageWriter.cpp +++ b/src/IECoreRI/SHWDeepImageWriter.cpp @@ -1,6 +1,6 @@ ////////////////////////////////////////////////////////////////////////// // -// Copyright (c) 2012, Image Engine Design Inc. All rights reserved. +// Copyright (c) 2012-2014, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are @@ -49,7 +49,7 @@ const DeepImageWriter::DeepImageWriterDescription SHWDeepIma SHWDeepImageWriter::SHWDeepImageWriter() : DeepImageWriter( "Writes 3delight SHW deep shadow file format." ), - m_outputFile( 0 ), m_dtexCache( 0 ), m_dtexImage( 0 ), m_dtexPixel( 0 ) + m_outputFile( 0 ), m_dtexCache( 0 ), m_dtexImage( 0 ), m_dtexPixel( 0 ), m_alphaOffset( 0 ) { std::vector channels( 1, "A" ); m_channelsParameter->setValue( new StringVectorData( channels ) ); @@ -60,7 +60,7 @@ SHWDeepImageWriter::SHWDeepImageWriter() SHWDeepImageWriter::SHWDeepImageWriter( const std::string &fileName ) : DeepImageWriter( "Writes 3delight SHW deep shadow file format." ), - m_outputFile( 0 ), m_dtexCache( 0 ), m_dtexImage( 0 ), m_dtexPixel( 0 ) + m_outputFile( 0 ), m_dtexCache( 0 ), m_dtexImage( 0 ), m_dtexPixel( 0 ), m_alphaOffset( 0 ) { m_fileNameParameter->setTypedValue( fileName ); @@ -164,7 +164,7 @@ void SHWDeepImageWriter::open() throw InvalidArgumentException( std::string( "Tile size must be equal to or less than resolution." ) ); } - if ( ( ( tileSize.x & ( tileSize.x - 1 ) ) != 0 ) || ( ( tileSize.x & ( tileSize.x - 1 ) ) != 0 ) ) + if ( ( ( tileSize.x & ( tileSize.x - 1 ) ) != 0 ) || ( ( tileSize.y & ( tileSize.y - 1 ) ) != 0 ) ) { throw InvalidArgumentException( std::string( "Tile width and height must be a power of two." ) ); }