| 378 | } |
| 379 | |
| 380 | BX_NO_INLINE void imageCheckerboard(void* _dst, uint32_t _width, uint32_t _height, uint32_t _step, uint32_t _0, uint32_t _1) |
| 381 | { |
| 382 | uint32_t* dst = (uint32_t*)_dst; |
| 383 | for (uint32_t yy = 0; yy < _height; ++yy) |
| 384 | { |
| 385 | for (uint32_t xx = 0; xx < _width; ++xx) |
| 386 | { |
| 387 | uint32_t abgr = ( (xx/_step)&1) ^ ( (yy/_step)&1) ? _1 : _0; |
| 388 | *dst++ = abgr; |
| 389 | } |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | void imageRgba8Downsample2x2Ref(void* _dst, uint32_t _width, uint32_t _height, uint32_t _depth, uint32_t _srcPitch, uint32_t _dstPitch, const void* _src) |
| 394 | { |
no outgoing calls
no test coverage detected