MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / color_tree_has

Function color_tree_has

src/lodepng.cpp:2956–2959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2954
2955#ifdef LODEPNG_COMPILE_ENCODER
2956static int color_tree_has(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
2957{
2958 return color_tree_get(tree, r, g, b, a) >= 0;
2959}
2960#endif /*LODEPNG_COMPILE_ENCODER*/
2961
2962/*color is not allowed to already exist.

Callers 1

get_color_profileFunction · 0.85

Calls 1

color_tree_getFunction · 0.85

Tested by

no test coverage detected