MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / imageCheckerboard

Function imageCheckerboard

Source/3rdParty/bimg/src/image.cpp:380–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 2

imageDecodeToBgra8Function · 0.85
imageDecodeToRgba8Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected