home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ool_main.zip
/
ool
/
include
/
gbmhist.h
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-26
|
1KB
|
50 lines
/*
gbmhist.h - Interface to Histogram/Frequency-of-use method of colour reduction
This code has been changed to expose the various steps in performing a
mapping to a frequency-of-use based palette. This is to all people to write
code that computes a frequency-of-use based palette from a set of bitmaps,
and then map them all to this palette. This original gbm_hist function,
which works on one bitmap, has been rewritten in terms of the lower-level
functions for ease of compatibility.
*/
#ifndef GBMHIST_H
#define GBMHIST_H
typedef void GBMHIST;
extern GBMHIST *gbm_create_hist(
byte rm, byte gm, byte bm
);
extern void gbm_delete_hist(GBMHIST *hist);
extern BOOLEAN gbm_add_to_hist(
GBMHIST *hist,
const GBM *gbm, const byte *data24
);
extern void gbm_pal_hist(
GBMHIST *hist,
GBMRGB gbmrgb[],
int n_cols_wanted
);
extern void gbm_map_hist(
GBMHIST *hist,
const GBM *gbm, const byte *data24, byte *data8
);
extern BOOLEAN gbm_hist(
const GBM *gbm, const byte *data24,
GBMRGB gbmrgb[],
byte *data8,
int n_cols_wanted,
byte rm, byte gm, byte bm
);
#endif