Byakuren 1.0.1
A theme color extracting library implemented by C.
Loading...
Searching...
No Matches
mindiff.h
Go to the documentation of this file.
1
8#ifndef LIB_MINDIFF_H_
9#define LIB_MINDIFF_H_
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#include "../bkr_common.h"
16
27
55 uint32_t pixel_count,
56 bkr_color_stats stats[],
58
59#ifdef __cplusplus
60}
61#endif
62
63#endif // LIB_MINDIFF_H_
int bkr_mindiff_calculate_color_stats(bkr_rgb *pixels, uint32_t pixel_count, bkr_color_stats stats[], bkr_mindiff_parameter *param)
Calculate color statistics using the minimum difference method.
struct _bkr_palette_stats _bkr_palette_stats
Byakuren - A theme color extracting library implemented by C.
Byakuren - A theme color extracting library implemented by C.
Definition mindiff.h:23
uint32_t count
Frequency of the color's occurrence.
Definition mindiff.h:25
bkr_rgb * color
Pointer to the RGB color.
Definition mindiff.h:24
Color statistics structure.
Definition bkr_common.h:103
Parameters for the minimum difference color quantization method.
Definition bkr_common.h:156
RGB color structure.
Definition bkr_common.h:90