| 344 | } |
| 345 | |
| 346 | static QImage LoadOverlayImage(const BenchmarkOptions& options) { |
| 347 | QImage overlay(QString::fromStdString(options.overlay_path)); |
| 348 | if (overlay.isNull()) { |
| 349 | throw std::runtime_error("Unable to load overlay image: " + options.overlay_path); |
| 350 | } |
| 351 | |
| 352 | return overlay.convertToFormat(QImage::Format_RGBA8888); |
| 353 | } |
| 354 | |
| 355 | static QImage PrepareOverlayImage(const BenchmarkOptions& options, const RenderLayout& layout, const QImage& overlay_base) { |
| 356 | QImage scaled = overlay_base.scaled( |