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

Function ImageIsStatic

exporter/src/utils/ImageData.cpp:266–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

264}
265
266bool ImageIsStatic(const uint8_t* pCur, const uint8_t* pRef, int width, int height, int stride) {
267 for (int y = 0; y < height; y++) {
268 const auto pCurU32 = static_cast<const uint32_t*>(static_cast<const void*>(pCur + y * stride));
269 const auto pRefU32 = static_cast<const uint32_t*>(static_cast<const void*>(pRef + y * stride));
270
271 for (int x = 0; x < width; x++) {
272 if (pCurU32[x] != pRefU32[x]) {
273 return false;
274 }
275 }
276 }
277
278 return true;
279}
280
281} // namespace exporter

Callers 2

IsStaticCompositionFunction · 0.85
GetVideoSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected