Byakuren 1.0.1
A theme color extracting library implemented by C.
Loading...
Searching...
No Matches
octree.h
Go to the documentation of this file.
1
8#ifndef LIB_OCTREE_H_
9#define LIB_OCTREE_H_
10#include "../bkr_common.h"
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
37 uint32_t pixel_count,
38 uint32_t max_colors);
39
54
76 bkr_color_stats stats[]);
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif // LIB_OCTREE_H_
int bkr_octree_calculate_color_stats(bkr_octree_node *node, bkr_color_stats stats[])
Calculates color statistics from a built octree.
bkr_octree_node * bkr_build_octree(bkr_rgb *pixels, uint32_t pixel_count, uint32_t max_colors)
Byakuren - A theme color extracting library implemented by C.
void bkr_release_octree(bkr_octree_node *node)
Releases the memory allocated for an octree structure.
Color statistics structure.
Definition bkr_common.h:103
Octree node structure for color quantization.
Definition bkr_common.h:116
RGB color structure.
Definition bkr_common.h:90