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

Function IsFrameInStaticRange

src/platform/web/VideoInfoManager.cpp:23–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21
22namespace pag {
23bool IsFrameInStaticRange(Frame targetFrame, std::vector<TimeRange>& staticTimeRanges) {
24 for (const auto& timeRange : staticTimeRanges) {
25 if (timeRange.contains(targetFrame)) {
26 return true;
27 }
28 }
29 return false;
30}
31
32VideoInfoManager::VideoInfoManager(std::shared_ptr<PAGComposition> pagComposition)
33 : pagComposition(pagComposition) {

Callers 1

getTargetFrameByIDMethod · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected