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

Method ApplyMapperToClips

src/Timeline.cpp:530–541  ·  view source on GitHub ↗

Apply the timeline's framerate and samplerate to all clips

Source from the content-addressed store, hash-verified

528
529// Apply the timeline's framerate and samplerate to all clips
530void Timeline::ApplyMapperToClips()
531{
532 // Clear all cached frames
533 ClearAllCache();
534
535 // Loop through all clips
536 for (auto clip : clips)
537 {
538 // Apply framemapper (or update existing framemapper)
539 apply_mapper_to_clip(clip);
540 }
541}
542
543// Calculate time of a frame number, based on a framerate
544double Timeline::calculate_time(int64_t number, Fraction rate)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected