MCPcopy Create free account
hub / github.com/Tencent/libpag / MakeTimeRange

Function MakeTimeRange

src/base/BitmapComposition.cpp:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34static TimeRange MakeTimeRange(Frame start, Frame end, float timeScale) {
35 auto startFrame = static_cast<Frame>(roundf(start * timeScale));
36 auto endFrame = static_cast<Frame>(roundf(end * timeScale));
37 return {startFrame, endFrame};
38}
39
40void BitmapComposition::updateStaticTimeRanges() {
41 staticTimeRanges = {};

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected