MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / stbi__copyval

Function stbi__copyval

lite/example/cpp_example/mge/cv/stb_image.h:7002–7008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7000}
7001
7002static void stbi__copyval(int channel, stbi_uc* dest, const stbi_uc* src) {
7003 int mask = 0x80, i;
7004
7005 for (i = 0; i < 4; ++i, mask >>= 1)
7006 if (channel & mask)
7007 dest[i] = src[i];
7008}
7009
7010static stbi_uc* stbi__pic_load_core(
7011 stbi__context* s, int width, int height, int* comp, stbi_uc* result) {

Callers 1

stbi__pic_load_coreFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected