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

Function create_uniform_mask_png

tests/EffectMask.cpp:61–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61static std::string create_uniform_mask_png(int width, int height, int gray_value) {
62 const std::string path = temp_png_path("mask_uniform");
63 QImage mask(width, height, QImage::Format_RGBA8888_Premultiplied);
64 mask.fill(QColor(gray_value, gray_value, gray_value, 255));
65 REQUIRE(mask.save(QString::fromStdString(path)));
66 return path;
67}
68
69class TrackingMaskReader : public ReaderBase {
70private:

Callers 1

EffectMask.cppFile · 0.85

Calls 1

temp_png_pathFunction · 0.70

Tested by

no test coverage detected