| 1 |
#ifndef PALM_H_INCLUDED |
| 2 |
#define PALM_H_INCLUDED |
| 3 |
|
| 4 |
#define PALM_IS_COMPRESSED_FLAG 0x8000 |
| 5 |
#define PALM_HAS_COLORMAP_FLAG 0x4000 |
| 6 |
#define PALM_HAS_TRANSPARENCY_FLAG 0x2000 |
| 7 |
#define PALM_INDIRECT_BITMAP 0x1000 |
| 8 |
#define PALM_FOR_SCREEN 0x0800 |
| 9 |
#define PALM_DIRECT_COLOR_FLAG 0x0400 |
| 10 |
#define PALM_INDIRECT_COLORMAP 0x0200 |
| 11 |
#define PALM_NO_DITHER_FLAG 0x0100 |
| 12 |
|
| 13 |
#define PALM_COMPRESSION_SCANLINE 0x00 |
| 14 |
#define PALM_COMPRESSION_RLE 0x01 |
| 15 |
#define PALM_COMPRESSION_PACKBITS 0x02 |
| 16 |
#define PALM_COMPRESSION_END 0x03 |
| 17 |
#define PALM_COMPRESSION_BEST 0x64 |
| 18 |
#define PALM_COMPRESSION_NONE 0xFF |
| 19 |
|
| 20 |
#define PALM_DENSITY_LOW 72 |
| 21 |
#define PALM_DENSITY_ONEANDAHALF 108 |
| 22 |
#define PALM_DENSITY_DOUBLE 144 |
| 23 |
#define PALM_DENSITY_TRIPLE 216 |
| 24 |
#define PALM_DENSITY_QUADRUPLE 288 |
| 25 |
|
| 26 |
#define PALM_FORMAT_INDEXED 0x00 |
| 27 |
#define PALM_FORMAT_565 0x01 |
| 28 |
#define PALM_FORMAT_565LE 0x02 |
| 29 |
#define PALM_FORMAT_INDEXEDLE 0x03 |
| 30 |
|
| 31 |
typedef unsigned long ColormapEntry; |
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
typedef struct { |
| 45 |
unsigned int nentries; |
| 46 |
|
| 47 |
unsigned int ncolors; |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
ColormapEntry * color_entries; |
| 52 |
} Colormap; |
| 53 |
|
| 54 |
qsort_comparison_fn palmcolor_compare_indices; |
| 55 |
|
| 56 |
qsort_comparison_fn palmcolor_compare_colors; |
| 57 |
|
| 58 |
#endif |