MCPcopy Create free account
hub / github.com/ImageEngine/cortex / channelSize

Method channelSize

src/IECoreImage/ImagePrimitive.cpp:378–381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

376///////////////////////////////////////////////////////////////////////////////////////////
377
378size_t ImagePrimitive::channelSize() const
379{
380 return ( 1 + m_dataWindow.max.x - m_dataWindow.min.x ) * ( 1 + m_dataWindow.max.y - m_dataWindow.min.y );
381}
382
383bool ImagePrimitive::channelValid( const IECore::Data *data, std::string *reason ) const
384{

Callers 3

testMethod · 0.80
testMethod · 0.80
modifyMethod · 0.80

Calls

no outgoing calls

Tested by 2

testMethod · 0.64
testMethod · 0.64