| 364 | } |
| 365 | |
| 366 | bool 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 |
no test coverage detected