MCPcopy Create free account
hub / github.com/HiLab-git/SimpleCRF / color_tree_has

Function color_tree_has

dependency/densecrf/examples/lodepng.cpp:3040–3043  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3038
3039#ifdef LODEPNG_COMPILE_ENCODER
3040static int color_tree_has(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a)
3041{
3042 return color_tree_get(tree, r, g, b, a) >= 0;
3043}
3044#endif /*LODEPNG_COMPILE_ENCODER*/
3045
3046/*color is not allowed to already exist.

Callers 1

Calls 1

color_tree_getFunction · 0.85

Tested by

no test coverage detected