MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / loadImageFromFile

Method loadImageFromFile

lib/legacy/switch-video.cpp:269–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

267}
268
269bool VideoSwitch::loadImageFromFile()
270{
271 if (!matchImage.load(QString::fromStdString(file))) {
272 blog(LOG_WARNING, "Cannot load image data from file '%s'",
273 file.c_str());
274 return false;
275 }
276 matchImage =
277 matchImage.convertToFormat(QImage::Format::Format_RGBA8888);
278 return true;
279}
280
281bool VideoSwitch::checkMatch()
282{

Callers 2

ConditionChangedMethod · 0.80
FilePathChangedMethod · 0.80

Calls 2

loadMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected