| 264 | } |
| 265 | |
| 266 | bool 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 |
no outgoing calls
no test coverage detected