source: ether_eccad/trunk/API_EXTRACT/src/cmap.h

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
RevLine 
[68]1#ifndef  _CMAP_H_
2#define _CMAP_H_
3#include "list.h"
4#include <values.h>
5
6typedef struct {
7        int id;
8        int red;
9        int green;
10        int blue;
11}RGB,  *ptrRGB;
12
13typedef struct {
14        ptrRGB color;
15        unsigned int min;
16        unsigned int max;
17}Interval,  *ptrInterval;
18
19//PFI inColorId;
20int inColorId(int *id, ptrRGB c);
21ptrInterval alloueInterval(ptrRGB c, unsigned int mini, unsigned int max);
22ptrRGB alloueColor(int id, int red, int green, int blue);
23#define freeColor(c) free((c))
24#define freeInterval(v) free(v)
25void freeMap (LIST cmap);
26int val2Color(unsigned int pix,  LIST cmap);
27#endif
Note: See TracBrowser for help on using the repository browser.