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

Method findExistingFormat

Engine/AppManager.cpp:2075–2088  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2073}
2074
2075Format
2076AppManager::findExistingFormat(int w,
2077 int h,
2078 double par) const
2079{
2080 for (U32 i = 0; i < _imp->_formats.size(); ++i) {
2081 const Format& frmt = _imp->_formats[i];
2082 if ( (frmt.width() == w) && (frmt.height() == h) && (frmt.getPixelAspectRatio() == par) ) {
2083 return frmt;
2084 }
2085 }
2086
2087 return Format();
2088}
2089
2090void
2091AppManager::setAsTopLevelInstance(int appID)

Callers 1

setOrAddProjectFormatMethod · 0.80

Calls 5

FormatFunction · 0.70
sizeMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45
getPixelAspectRatioMethod · 0.45

Tested by

no test coverage detected