MCPcopy Create free account
hub / github.com/crownengine/crown / imageCopy

Function imageCopy

3rdparty/bimg/src/image.cpp:1044–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1042 }
1043
1044 void imageCopy(void* _dst, uint32_t _height, uint32_t _srcPitch, uint32_t _depth, const void* _src, uint32_t _dstPitch)
1045 {
1046 const uint32_t pitch = bx::uint32_min(_srcPitch, _dstPitch);
1047 const uint8_t* src = (uint8_t*)_src;
1048 uint8_t* dst = (uint8_t*)_dst;
1049
1050 for (uint32_t zz = 0; zz < _depth; ++zz, src += _srcPitch*_height, dst += _dstPitch*_height)
1051 {
1052 bx::memCopy(dst, _dstPitch, src, _srcPitch, pitch, _height);
1053 }
1054 }
1055
1056 void imageCopy(void* _dst, uint32_t _width, uint32_t _height, uint32_t _depth, uint32_t _bpp, uint32_t _srcPitch, const void* _src)
1057 {

Callers 3

updateMethod · 0.85
createMethod · 0.85
createMethod · 0.85

Calls 1

memCopyFunction · 0.85

Tested by

no test coverage detected