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

Method GetDelta

src/KeyFrame.cpp:399–404  ·  view source on GitHub ↗

Get the change in Y value (from the previous Y value)

Source from the content-addressed store, hash-verified

397
398// Get the change in Y value (from the previous Y value)
399double Keyframe::GetDelta(int64_t index) const {
400 if (index < 1) return 0.0;
401 if (index == 1 && !Points.empty()) return Points[0].co.Y;
402 if (index > GetLength()) return 1.0;
403 return GetValue(index) - GetValue(index - 1);
404}
405
406// Get a point at a specific index
407Point const & Keyframe::GetPoint(int64_t index) const {

Callers 2

apply_timemappingMethod · 0.80
KeyFrame.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected