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

Function getCompressor

src/IECore/StreamIndexedIO.cpp:393–403  ·  view source on GitHub ↗

look up compressor name from id.

Source from the content-addressed store, hash-verified

391
392//! look up compressor name from id.
393std::string getCompressor( int code )
394{
395 for( const auto &it : nameCodeMapping )
396 {
397 if (it.second == code )
398 {
399 return it.first;
400 }
401 }
402 return "unknown";
403}
404
405/// compress 'size' bytes at 'data' into 'outputBuffer'
406/// compressionLevel, compressor & threadCount are passed directly to blosc ( see blosc.h )

Callers 1

openStreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected