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

Function color_tree_has

depends/lodepng/lodepng.cpp:3142–3144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3140
3141#ifdef LODEPNG_COMPILE_ENCODER
3142static int color_tree_has(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a) {
3143 return color_tree_get(tree, r, g, b, a) >= 0;
3144}
3145#endif /*LODEPNG_COMPILE_ENCODER*/
3146
3147/*color is not allowed to already exist.

Callers 1

Calls 1

color_tree_getFunction · 0.85

Tested by

no test coverage detected