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

Method GetMaxPoint

src/KeyFrame.cpp:245–255  ·  view source on GitHub ↗

Get max point (by Y coordinate)

Source from the content-addressed store, hash-verified

243
244// Get max point (by Y coordinate)
245Point Keyframe::GetMaxPoint() const {
246 Point maxPoint(-1, -1);
247
248 for (Point const & existing_point: Points) {
249 if (existing_point.co.Y >= maxPoint.co.Y) {
250 maxPoint = existing_point;
251 }
252 }
253
254 return maxPoint;
255}
256
257// Get the value at a specific index
258double Keyframe::GetValue(int64_t index) const {

Callers 4

ProcessVideoPacketMethod · 0.80
calculate_max_sizeMethod · 0.80
ApplyCropResizeScaleFunction · 0.80
KeyFrame.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected