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

Method Contains

src/KeyFrame.cpp:184–188  ·  view source on GitHub ↗

Determine if point already exists

Source from the content-addressed store, hash-verified

182
183// Determine if point already exists
184bool Keyframe::Contains(Point p) const {
185 std::vector<Point>::const_iterator i =
186 std::lower_bound(begin(Points), end(Points), p.co.X, IsPointBeforeX);
187 return i != end(Points) && i->co.X == p.co.X;
188}
189
190// Get current point (or closest point) from the X coordinate (i.e. the frame number)
191Point Keyframe::GetClosestPoint(Point p, bool useLeft) const {

Callers 9

add_property_jsonMethod · 0.45
GetFrameMethod · 0.45
GetFrameMethod · 0.45
SeekMethod · 0.45
clearCacheIfPausedMethod · 0.45
prefetchWindowMethod · 0.45
KeyFrame.cppFile · 0.45
Timeline.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected