MCPcopy Create free account
hub / github.com/DFHack/dfhack / isRGBICCProfile

Function isRGBICCProfile

depends/lodepng/lodepng.cpp:5807–5811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5805}
5806
5807static unsigned isRGBICCProfile(const unsigned char* profile, unsigned size) {
5808 /* See comment in isGrayICCProfile*/
5809 if(size < 20) return 0;
5810 return profile[16] == 'R' && profile[17] == 'G' && profile[18] == 'B' && profile[19] == ' ';
5811}
5812#endif /*LODEPNG_COMPILE_ANCILLARY_CHUNKS*/
5813
5814unsigned lodepng_encode(unsigned char** out, size_t* outsize,

Callers 1

lodepng_encodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected