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

Function loadFrame

tests/SphericalEffect.cpp:31–37  ·  view source on GitHub ↗

Load a PNG fixture into a fresh Frame

Source from the content-addressed store, hash-verified

29
30// Load a PNG fixture into a fresh Frame
31static std::shared_ptr<Frame> loadFrame(const char *filename) {
32 QImage img(QString(TEST_MEDIA_PATH) + filename);
33 img = img.convertToFormat(QImage::Format_ARGB32);
34 auto f = std::make_shared<Frame>();
35 *f->GetImage() = img;
36 return f;
37}
38
39// Helpers to sample pixels
40static QColor centerPixel(SphericalProjection &e, std::shared_ptr<Frame> f) {

Callers 1

Calls 1

GetImageMethod · 0.80

Tested by

no test coverage detected