| 267 | } |
| 268 | |
| 269 | bool 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 | |
| 281 | bool VideoSwitch::checkMatch() |
| 282 | { |
no test coverage detected