MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / LoadOverlayImage

Function LoadOverlayImage

examples/VulkanBenchmark.cpp:346–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344}
345
346static 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
355static QImage PrepareOverlayImage(const BenchmarkOptions& options, const RenderLayout& layout, const QImage& overlay_base) {
356 QImage scaled = overlay_base.scaled(

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected