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

Function makeColorFrame

tests/Sharpen.cpp:42–50  ·  view source on GitHub ↗

Create a tiny 3×720 colored frame

Source from the content-addressed store, hash-verified

40
41// Create a tiny 3×720 colored frame
42static std::shared_ptr<Frame> makeColorFrame()
43{
44 QImage img(3, 720, QImage::Format_ARGB32);
45 img.fill(QColor(128,128,128,255));
46 img.setPixelColor(1,1, QColor(100,150,200,255));
47 auto frame = std::make_shared<Frame>();
48 *frame->GetImage() = img;
49 return frame;
50}
51
52TEST_CASE("zero radius leaves image unchanged", "[effect][sharpen]")
53{

Callers 1

Sharpen.cppFile · 0.85

Calls 1

GetImageMethod · 0.80

Tested by

no test coverage detected