MCPcopy Create free account
hub / github.com/TypesettingTools/Aegisub / LoadKeyframes

Method LoadKeyframes

src/project.cpp:385–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385void Project::LoadKeyframes(agi::fs::path path) {
386 try {
387 DoLoadKeyframes(path);
388 }
389 catch (agi::fs::FileSystemError const& e) {
390 ShowError(e.GetMessage());
391 config::mru->Remove("Keyframes", path);
392 }
393 catch (agi::keyframe::KeyframeFormatParseError const& e) {
394 ShowError("Failed to parse keyframes file: " + e.GetMessage());
395 config::mru->Remove("Keyframes", path);
396 }
397 catch (agi::keyframe::UnknownKeyframeFormatError const& e) {
398 ShowError("Keyframes file in unknown format: " + e.GetMessage());
399 config::mru->Remove("Keyframes", path);
400 }
401}
402
403void Project::CloseKeyframes() {
404 keyframes = video_provider ? video_provider->GetKeyFrames() : std::vector<int>{};

Callers 2

keyframe_openClass · 0.80

Calls 1

RemoveMethod · 0.45

Tested by

no test coverage detected