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

Method GetLength

src/KeyFrame.cpp:417–421  ·  view source on GitHub ↗

Get the number of values (i.e. coordinates on the X axis)

Source from the content-addressed store, hash-verified

415
416// Get the number of values (i.e. coordinates on the X axis)
417int64_t Keyframe::GetLength() const {
418 if (Points.empty()) return 0;
419 if (Points.size() == 1) return 1;
420 return round(Points.back().co.X);
421}
422
423// Get the number of points (i.e. # of points)
424int64_t Keyframe::GetCount() const {

Callers 8

EndMethod · 0.45
apply_timemappingMethod · 0.45
GetOrCreateFrameMethod · 0.45
ApplyKeyframesMethod · 0.45
SetJsonValueMethod · 0.45
Clip.cppFile · 0.45
KeyFrame.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected