This method is required for all derived classes of EffectBase, and returns a modified openshot::Frame object
| 32 | // This method is required for all derived classes of EffectBase, and returns a |
| 33 | // modified openshot::Frame object |
| 34 | std::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 |
| 44 | std::string Negate::Json() const { |