Debian Codegraph @

converter/other/pnmtopalm/palm.h

raw symbols SCIP
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 /* Palm says internal use only */
8 #define PALM_FOR_SCREEN 0x0800 /* Palm says internal use only */
9 #define PALM_DIRECT_COLOR_FLAG 0x0400
10 #define PALM_INDIRECT_COLORMAP 0x0200 /* Palm says internal use only */
11 #define PALM_NO_DITHER_FLAG 0x0100 /* rather mysterious */
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 /* Palm says internal use only */
17 #define PALM_COMPRESSION_BEST 0x64 /* Palm says internal use only */
18 #define PALM_COMPRESSION_NONE 0xFF /* Palm says internal use only */
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 /* Palm says internal use only */
29 #define PALM_FORMAT_INDEXEDLE 0x03 /* Palm says internal use only */
30
31 typedef unsigned long ColormapEntry;
32 /* A entry in a Colormap. It is an encoding of 4 bytes as the integer
33 that those 4 bytes would represent in pure binary:
34
35 MSB 0: the color index
36 1: red intensity
37 2: green intensity
38 LSB 3: blue intensity
39
40 The intensities are on a scale with a certain maxval (that must be
41 specified to interpret a ColormapEntry).
42 */
43
44 typedef struct {
45 unsigned int nentries;
46 /* number of allocated entries in 'color_entries' */
47 unsigned int ncolors;
48 /* number of colors actually in 'color_entries' -- entries are
49 filled from 0 consecutively, one color per entry.
50 */
51 ColormapEntry * color_entries; /* Array of colors */
52 } Colormap;
53
54 qsort_comparison_fn palmcolor_compare_indices;
55
56 qsort_comparison_fn palmcolor_compare_colors;
57
58 #endif