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

Method FrameNToTime

src/TrackedObjectBBox.cpp:223–227  ·  view source on GitHub ↗

Get the time of the given frame

Source from the content-addressed store, hash-verified

221
222// Get the time of the given frame
223double TrackedObjectBBox::FrameNToTime(int64_t frame_number, double time_scale) const{
224 double time = ((double)frame_number) * this->BaseFps.Reciprocal().ToDouble() * (1.0 / time_scale);
225
226 return time;
227}
228
229// Update the TimeScale member variable
230void TrackedObjectBBox::ScalePoints(double time_scale){

Callers 5

AddBoxMethod · 0.95
ContainsMethod · 0.95
RemoveBoxMethod · 0.95
GetBoxMethod · 0.95
KeyFrame.cppFile · 0.80

Calls 2

ToDoubleMethod · 0.80
ReciprocalMethod · 0.80

Tested by

no test coverage detected