Load a PNG fixture into a fresh Frame
| 29 | |
| 30 | // Load a PNG fixture into a fresh Frame |
| 31 | static 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 |
| 40 | static QColor centerPixel(SphericalProjection &e, std::shared_ptr<Frame> f) { |
no test coverage detected