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

Method Image

Engine/Image.cpp:678–692  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 8

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

Tested by

no test coverage detected