source: trunk/JPGPROC/source/gbmsrc/gbmtrunc.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: 1.9 KB
Line 
1/*
2
3gbmtrunc.h - Interface to code to truncate to a palette
4
5*/
6
7#ifndef GBMTRUNC_H
8#define GBMTRUNC_H
9
10extern void gbm_trunc_line_24(const byte *src, byte *dest, int cx, byte rm, byte gm, byte bm);
11extern void gbm_trunc_24(const GBM *gbm, const byte *data24, byte *data24a, byte rm, byte gm, byte bm);
12
13extern void gbm_trunc_pal_6R6G6B(GBMRGB *gbmrgb);
14extern void gbm_trunc_line_6R6G6B(const byte *src, byte *dest, int cx);
15extern void gbm_trunc_6R6G6B(const GBM *gbm, const byte *data24, byte *data8);
16
17extern void gbm_trunc_pal_7R8G4B(GBMRGB *gbmrgb);
18extern void gbm_trunc_line_7R8G4B(const byte *src, byte *dest, int cx);
19extern void gbm_trunc_7R8G4B(const GBM *gbm, const byte *data24, byte *data8);
20
21extern void gbm_trunc_pal_VGA(GBMRGB *gbmrgb);
22extern void gbm_trunc_line_VGA(const byte *src, byte *dest, int cx);
23extern void gbm_trunc_VGA(const GBM *gbm, const byte *data24, byte *data4);
24
25extern void gbm_trunc_pal_8(GBMRGB *gbmrgb);
26extern void gbm_trunc_line_8(const byte *src, byte *dest, int cx);
27extern void gbm_trunc_8(const GBM *gbm, const byte *data24, byte *data4);
28
29extern void gbm_trunc_pal_4G(GBMRGB *gbmrgb);
30extern void gbm_trunc_line_4G(const byte *src, byte *dest, int cx);
31extern void gbm_trunc_4G(const GBM *gbm, const byte *data24, byte *data4);
32
33extern void gbm_trunc_pal_BW(GBMRGB *gbmrgb);
34extern void gbm_trunc_line_BW(const byte *src, byte *dest, int cx);
35extern void gbm_trunc_BW(const GBM *gbm, const byte *data24, byte *data1);
36
37/* Map to user specified palette.
38 Input bitmap data is 24bpp, output is sized as specified. */
39extern void gbm_trunc_1bpp(
40 const GBM *gbm, const byte *data24, byte *data1,
41 GBMRGB *gbmrgb, int n_gbmrgb
42 );
43extern void gbm_trunc_4bpp(
44 const GBM *gbm, const byte *data24, byte *data4,
45 GBMRGB *gbmrgb, int n_gbmrgb
46 );
47extern void gbm_trunc_8bpp(
48 const GBM *gbm, const byte *data24, byte *data8,
49 GBMRGB *gbmrgb, int n_gbmrgb
50 );
51
52#endif
Note: See TracBrowser for help on using the repository browser.