MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / stbi__readval

Function stbi__readval

include/stb/stb_image.h:6367–6379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6365} stbi__pic_packet;
6366
6367static stbi_uc *stbi__readval(stbi__context *s, int channel, stbi_uc *dest)
6368{
6369 int mask=0x80, i;
6370
6371 for (i=0; i<4; ++i, mask>>=1) {
6372 if (channel & mask) {
6373 if (stbi__at_eof(s)) return stbi__errpuc("bad file","PIC file too short");
6374 dest[i]=stbi__get8(s);
6375 }
6376 }
6377
6378 return dest;
6379}
6380
6381static void stbi__copyval(int channel,stbi_uc *dest,const stbi_uc *src)
6382{

Callers 1

stbi__pic_load_coreFunction · 0.85

Calls 2

stbi__at_eofFunction · 0.85
stbi__get8Function · 0.85

Tested by

no test coverage detected