| 3118 | } |
| 3119 | |
| 3120 | static void color_tree_cleanup(ColorTree* tree) { |
| 3121 | int i; |
| 3122 | for(i = 0; i != 16; ++i) { |
| 3123 | if(tree->children[i]) { |
| 3124 | color_tree_cleanup(tree->children[i]); |
| 3125 | lodepng_free(tree->children[i]); |
| 3126 | } |
| 3127 | } |
| 3128 | } |
| 3129 | |
| 3130 | /*returns -1 if color not present, its index otherwise*/ |
| 3131 | static int color_tree_get(ColorTree* tree, unsigned char r, unsigned char g, unsigned char b, unsigned char a) { |
no test coverage detected