Return the list of effects on all clips
| 452 | |
| 453 | // Return the list of effects on all clips |
| 454 | std::list<openshot::EffectBase*> Timeline::ClipEffects() const { |
| 455 | |
| 456 | // Initialize the list |
| 457 | std::list<EffectBase*> timelineEffectsList; |
| 458 | |
| 459 | // Loop through all clips |
| 460 | for (const auto& clip : clips) { |
| 461 | |
| 462 | // Get the clip's list of effects |
| 463 | std::list<EffectBase*> clipEffectsList = clip->Effects(); |
| 464 | |
| 465 | // Append the clip's effects to the list |
| 466 | timelineEffectsList.insert(timelineEffectsList.end(), clipEffectsList.begin(), clipEffectsList.end()); |
| 467 | } |
| 468 | |
| 469 | return timelineEffectsList; |
| 470 | } |
| 471 | |
| 472 | // Compute the end time of the latest timeline element |
| 473 | double Timeline::GetMaxTime() { |