MCPcopy Create free account
hub / github.com/FFMS/ffms2 / FrameFromPos

Method FrameFromPos

src/core/track.cpp:173–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173int FFMS_Track::FrameFromPos(int64_t Pos, bool AllowHidden) const {
174 for (size_t i = 0; i < size(); i++)
175 if (Data->Frames[i].FilePos == Pos && (AllowHidden || !Data->Frames[i].Skipped()))
176 return static_cast<int>(i);
177 return -1;
178}
179
180int FFMS_Track::ClosestFrameFromPTS(int64_t PTS) const {
181 FrameInfo F;

Callers 1

GetFrameMethod · 0.80

Calls 1

SkippedMethod · 0.80

Tested by

no test coverage detected