Create a tiny 3×720 grayscale frame
| 29 | |
| 30 | // Create a tiny 3×720 grayscale frame |
| 31 | static std::shared_ptr<Frame> makeGrayFrame() |
| 32 | { |
| 33 | QImage img(3, 720, QImage::Format_ARGB32); |
| 34 | img.fill(QColor(128,128,128,255)); |
| 35 | img.setPixelColor(1,1, QColor(100,100,100,255)); |
| 36 | auto frame = std::make_shared<Frame>(); |
| 37 | *frame->GetImage() = img; |
| 38 | return frame; |
| 39 | } |
| 40 | |
| 41 | // Create a tiny 3×720 colored frame |
| 42 | static std::shared_ptr<Frame> makeColorFrame() |