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

Function getCompressionCode

src/IECore/StreamIndexedIO.cpp:382–390  ·  view source on GitHub ↗

map blosc compressor name to a int which we can serialise into the indexedIO header. We don't use the blosc header defined values incase they change.

Source from the content-addressed store, hash-verified

380//! map blosc compressor name to a int which we can serialise into
381//! the indexedIO header. We don't use the blosc header defined values incase they change.
382int getCompressionCode( const std::string &compressor )
383{
384 const auto it = nameCodeMapping.find( compressor );
385 if( it != nameCodeMapping.end() )
386 {
387 return it->second;
388 }
389 return -1;
390}
391
392//! look up compressor name from id.
393std::string getCompressor( int code )

Callers 2

IndexMethod · 0.85
writeMethod · 0.85

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected