Last change
on this file was
68,
checked in by cbipsl, 14 years ago
|
commit v1 eccad
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
|
File size:
573 bytes
|
Rev | Line | |
---|
[68] | 1 | #ifndef _CMAP_H_ |
---|
| 2 | #define _CMAP_H_ |
---|
| 3 | #include "list.h" |
---|
| 4 | #include <values.h> |
---|
| 5 | |
---|
| 6 | typedef struct { |
---|
| 7 | int id; |
---|
| 8 | int red; |
---|
| 9 | int green; |
---|
| 10 | int blue; |
---|
| 11 | }RGB, *ptrRGB; |
---|
| 12 | |
---|
| 13 | typedef struct { |
---|
| 14 | ptrRGB color; |
---|
| 15 | unsigned int min; |
---|
| 16 | unsigned int max; |
---|
| 17 | }Interval, *ptrInterval; |
---|
| 18 | |
---|
| 19 | //PFI inColorId; |
---|
| 20 | int inColorId(int *id, ptrRGB c); |
---|
| 21 | ptrInterval alloueInterval(ptrRGB c, unsigned int mini, unsigned int max); |
---|
| 22 | ptrRGB alloueColor(int id, int red, int green, int blue); |
---|
| 23 | #define freeColor(c) free((c)) |
---|
| 24 | #define freeInterval(v) free(v) |
---|
| 25 | void freeMap (LIST cmap); |
---|
| 26 | int val2Color(unsigned int pix, LIST cmap); |
---|
| 27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.