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

Function makeGrayFrame

tests/Sharpen.cpp:31–39  ·  view source on GitHub ↗

Create a tiny 3×720 grayscale frame

Source from the content-addressed store, hash-verified

29
30// Create a tiny 3×720 grayscale frame
31static 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
42static std::shared_ptr<Frame> makeColorFrame()

Callers 1

Sharpen.cppFile · 0.70

Calls 1

GetImageMethod · 0.80

Tested by

no test coverage detected