MCPcopy Create free account
hub / github.com/MrKepzie/Natron / Image

Method Image

Engine/Image.cpp:677–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

675 // ifdef DEBUG
676
677Image::Image(const ImageKey & key,
678 const boost::shared_ptr<ImageParams>& params,
679 const CacheAPI* cache)
680 : CacheEntryHelper<unsigned char, ImageKey, ImageParams>(key, params, cache)
681 , _useBitmap(true)
682{
683 _bitDepth = params->getBitDepth();
684 _depthBytesSize = getSizeOfForBitDepth(_bitDepth);
685 _nbComponents = params->getComponents().getNumComponents();
686 _rod = params->getRoD();
687 _bounds = params->getBounds();
688 _par = params->getPixelAspectRatio();
689 _premult = params->getPremultiplication();
690 _fielding = params->getFieldingOrder();
691}
692
693Image::Image(const ImageKey & key,
694 const boost::shared_ptr<ImageParams>& params)

Callers

nothing calls this directly

Calls 9

getSizeOfForBitDepthFunction · 0.85
getComponentsMethod · 0.80
ViewIdxClass · 0.70
getBitDepthMethod · 0.45
getNumComponentsMethod · 0.45
getBoundsMethod · 0.45
getPixelAspectRatioMethod · 0.45
getPremultiplicationMethod · 0.45
getFieldingOrderMethod · 0.45

Tested by

no test coverage detected