Last change
on this file since 2 was 2, checked in by stevenhl, 8 years ago |
Import sources from cwmm-full.zip dated 2005-03-21
|
File size:
808 bytes
|
Line | |
---|
1 | /*
|
---|
2 |
|
---|
3 | gbmmcut.h - Interface to Median Cut colour reduction
|
---|
4 |
|
---|
5 | This code is arranged to allow generation of a palette from a set of input
|
---|
6 | images. Quantisation is fixed at 5 bits each for red, green and blue. This
|
---|
7 | is finer than most implementations, but costly on memory.
|
---|
8 |
|
---|
9 | */
|
---|
10 |
|
---|
11 | #ifndef GBMMCUT_H
|
---|
12 | #define GBMMCUT_H
|
---|
13 |
|
---|
14 | typedef void GBMMCUT;
|
---|
15 |
|
---|
16 | extern GBMMCUT *gbm_create_mcut(void);
|
---|
17 |
|
---|
18 | extern void gbm_delete_mcut(GBMMCUT *mcut);
|
---|
19 |
|
---|
20 | extern void gbm_add_to_mcut(
|
---|
21 | GBMMCUT *mcut,
|
---|
22 | const GBM *gbm, const byte *data24
|
---|
23 | );
|
---|
24 |
|
---|
25 | extern void gbm_pal_mcut(
|
---|
26 | GBMMCUT *mcut,
|
---|
27 | GBMRGB gbmrgb[],
|
---|
28 | int n_cols_wanted
|
---|
29 | );
|
---|
30 |
|
---|
31 | extern void gbm_map_mcut(
|
---|
32 | GBMMCUT *mcut,
|
---|
33 | const GBM *gbm, const byte *data24, byte *data8
|
---|
34 | );
|
---|
35 |
|
---|
36 | extern BOOLEAN gbm_mcut(
|
---|
37 | const GBM *gbm, const byte *data24,
|
---|
38 | GBMRGB gbmrgb[],
|
---|
39 | byte *data8,
|
---|
40 | int n_cols_wanted
|
---|
41 | );
|
---|
42 |
|
---|
43 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.