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

Function indexed_keyframes

libaegisub/common/keyframe.cpp:47–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::vector<int> indexed_keyframes(std::istream &file, int (*func)(std::string const&)) {
48 std::vector<int> ret;
49 for (auto line : agi::line_iterator<std::string>(file)) {
50 int frame_no = func(line);
51 if (frame_no >= 0)
52 ret.push_back(frame_no);
53 }
54 return ret;
55}
56
57char xvid(std::string const& line) {
58 return line.empty() ? 0 : line[0];

Callers 1

LoadFunction · 0.85

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected