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

Method GetFrame

src/effects/Negate.cpp:34–41  ·  view source on GitHub ↗

This method is required for all derived classes of EffectBase, and returns a modified openshot::Frame object

Source from the content-addressed store, hash-verified

32// This method is required for all derived classes of EffectBase, and returns a
33// modified openshot::Frame object
34std::shared_ptr<openshot::Frame> Negate::GetFrame(std::shared_ptr<openshot::Frame> frame, int64_t frame_number)
35{
36 // Make a negative of the images pixels
37 frame->GetImage()->invertPixels();
38
39 // return the modified frame
40 return frame;
41}
42
43// Generate JSON string of this object
44std::string Negate::Json() const {

Callers

nothing calls this directly

Calls 1

GetImageMethod · 0.80

Tested by

no test coverage detected