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

Method checkFrameChanged

src/rendering/PAGDecoder.cpp:144–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144bool PAGDecoder::checkFrameChanged(int index) {
145 std::lock_guard<std::mutex> autoLock(locker);
146 if (index < 0 || index >= _numFrames) {
147 LOGE("PAGDecoder::readFrame() The index is out of range!");
148 return false;
149 }
150 checkCompositionChange(getComposition());
151 if (index == lastReadIndex) {
152 return false;
153 }
154 auto timeRange = GetTimeRangeContains(staticTimeRanges, index);
155 return !timeRange.contains(lastReadIndex);
156}
157
158bool PAGDecoder::readFrame(int index, void* pixels, size_t rowBytes, ColorType colorType,
159 AlphaType alphaType) {

Callers 4

PAG_TESTFunction · 0.45
handleFrameMethod · 0.45

Calls 2

GetTimeRangeContainsFunction · 0.85
containsMethod · 0.45

Tested by 1

PAG_TESTFunction · 0.36