source: trunk/JPGPROC/source/gbmsrc/gbmmcut.h@ 2

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
3gbmmcut.h - Interface to Median Cut colour reduction
4
5This code is arranged to allow generation of a palette from a set of input
6images. Quantisation is fixed at 5 bits each for red, green and blue. This
7is finer than most implementations, but costly on memory.
8
9*/
10
11#ifndef GBMMCUT_H
12#define GBMMCUT_H
13
14typedef void GBMMCUT;
15
16extern GBMMCUT *gbm_create_mcut(void);
17
18extern void gbm_delete_mcut(GBMMCUT *mcut);
19
20extern void gbm_add_to_mcut(
21 GBMMCUT *mcut,
22 const GBM *gbm, const byte *data24
23 );
24
25extern void gbm_pal_mcut(
26 GBMMCUT *mcut,
27 GBMRGB gbmrgb[],
28 int n_cols_wanted
29 );
30
31extern void gbm_map_mcut(
32 GBMMCUT *mcut,
33 const GBM *gbm, const byte *data24, byte *data8
34 );
35
36extern 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.