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

Method JumpToFrame

src/video_controller.cpp:97–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void VideoController::JumpToFrame(int n) {
98 if (!provider) return;
99
100 bool was_playing = IsPlaying();
101 if (was_playing)
102 Stop();
103
104 frame_n = mid(0, n, provider->GetFrameCount() - 1);
105 RequestFrame();
106 Seek(frame_n);
107
108 if (was_playing)
109 Play();
110}
111
112void VideoController::JumpToTime(int ms, agi::vfr::Time end) {
113 JumpToFrame(FrameAtTime(ms, end));

Callers 9

VideoDisplayMethod · 0.80
OnCloseMethod · 0.80
OnMouseMethod · 0.80
OnOKMethod · 0.80
ReloadVideoMethod · 0.80
LoadUnloadFilesMethod · 0.80
LoadVideoMethod · 0.80
LoadListMethod · 0.80
operator()Function · 0.80

Calls 2

midFunction · 0.70
GetFrameCountMethod · 0.45

Tested by

no test coverage detected