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

Function makeGrayFrame

tests/LensFlare.cpp:31–38  ·  view source on GitHub ↗

Create a small 5×5 grayscale frame

Source from the content-addressed store, hash-verified

29
30// Create a small 5×5 grayscale frame
31static std::shared_ptr<Frame> makeGrayFrame()
32{
33 QImage img(5, 5, QImage::Format_ARGB32);
34 img.fill(QColor(100, 100, 100, 255));
35 auto frame = std::make_shared<Frame>();
36 *frame->GetImage() = img;
37 return frame;
38}
39
40TEST_CASE("LensFlare brightens center pixel", "[effect][lensflare]")
41{

Callers 1

LensFlare.cppFile · 0.70

Calls 1

GetImageMethod · 0.80

Tested by

no test coverage detected