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

Method AddEffect

src/Timeline.cpp:364–377  ·  view source on GitHub ↗

Add an effect to the timeline

Source from the content-addressed store, hash-verified

362
363// Add an effect to the timeline
364void Timeline::AddEffect(EffectBase* effect)
365{
366 // Get lock (prevent getting frames while this happens)
367 const std::lock_guard<std::recursive_mutex> guard(getFrameMutex);
368
369 // Assign timeline to effect
370 effect->ParentTimeline(this);
371
372 // Add effect to list
373 effects.push_back(effect);
374
375 // Sort effects
376 sort_effects();
377}
378
379// Remove an effect from the timeline
380void Timeline::RemoveEffect(EffectBase* effect)

Callers

nothing calls this directly

Calls 1

ParentTimelineMethod · 0.45

Tested by

no test coverage detected