| 56 | } |
| 57 | |
| 58 | QImage write_thumbnail( |
| 59 | const std::shared_ptr<Frame>& frame, |
| 60 | const std::string& path, |
| 61 | bool ignore_aspect, |
| 62 | ScaleType scale_mode = SCALE_FIT) { |
| 63 | frame->Thumbnail(path, 98, 64, "", "", "#000000", ignore_aspect, "PNG", 100, 0.0f, scale_mode); |
| 64 | QImage result(QString::fromStdString(path)); |
| 65 | std::remove(path.c_str()); |
| 66 | return result; |
| 67 | } |
| 68 | |
| 69 | void check_thumbnail_dimensions(const QImage& image) { |
| 70 | REQUIRE_FALSE(image.isNull()); |