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

Function makeBrightTestFrame

tests/ColorMap.cpp:43–51  ·  view source on GitHub ↗

Frame that keeps the example pixel in the bright range used by the domain tests

Source from the content-addressed store, hash-verified

41
42// Frame that keeps the example pixel in the bright range used by the domain tests
43static std::shared_ptr<Frame> makeBrightTestFrame()
44{
45 QImage img(2, 2, QImage::Format_ARGB32);
46 img.fill(QColor(50,100,150,255));
47 img.setPixelColor(0,0, QColor(230,230,230,255));
48 auto frame = std::make_shared<Frame>();
49 *frame->GetImage() = img;
50 return frame;
51}
52
53// Helper to construct the LUT-path from TEST_MEDIA_PATH
54static std::string lutPath()

Callers 1

ColorMap.cppFile · 0.85

Calls 1

GetImageMethod · 0.80

Tested by

no test coverage detected