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

Method compatible

src/rendering/caches/SequenceFile.cpp:366–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366bool SequenceFile::compatible(const tgfx::ImageInfo& info, int frameCount, float frameRate,
367 const std::vector<TimeRange>& staticTimeRanges) {
368 if (_info != info || _numFrames != frameCount || _frameRate != frameRate ||
369 _staticTimeRanges.size() != staticTimeRanges.size()) {
370 return false;
371 }
372 return memcmp(_staticTimeRanges.data(), staticTimeRanges.data(),
373 sizeof(TimeRange) * staticTimeRanges.size()) == 0;
374}
375} // namespace pag

Callers 1

openSequenceMethod · 0.80

Calls 2

sizeMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected