w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

ppmcmap.h
Go to the documentation of this file.
1 /* ppmcmap.h - header file for colormap routines in libppm
2 */
3 
4 /* Color histogram stuff. */
5 
8  {
10  int value;
11  };
12 
15  {
16  struct colorhist_item ch;
18  };
19 
21 /* Returns a colorhist *colorsP long (with space allocated for maxcolors. */
22 
23 void ppm_addtocolorhist ARGS(( colorhist_vector chv, int* colorsP, int maxcolors, pixel* colorP, int value, int position ));
24 
26 
27 
28 /* Color hash table stuff. */
29 
31 
32 colorhash_table ppm_computecolorhash ARGS(( pixel** pixels, int cols, int rows, int maxcolors, int* colorsP ));
33 
34 int
36 
39 
41 /* Returns -1 on failure. */
42 
44 
const unsigned int maxcolors
Definition: drvbase.h:715
int pixels
Definition: dvipng.h:106
static int rows
Definition: pbmclean.c:15
static int cols
Definition: pbmmask.c:21
colorhash_table ppm_computecolorhash(pixel **pixels, int cols, int rows, int maxcolors, int *colorsP)
Definition: libppm3.c:84
void ppm_addtocolorhist(colorhist_vector chv, int *colorsP, int maxcolors, pixel *colorP, int value, int position)
Definition: libppm3.c:45
int ppm_lookupcolor(colorhash_table cht, pixel *colorP)
Definition: libppm3.c:226
int ppm_addtocolorhash(colorhash_table cht, pixel *colorP, int value)
Definition: libppm3.c:144
void ppm_freecolorhist(colorhist_vector chv)
Definition: libppm3.c:242
colorhist_vector ppm_colorhashtocolorhist(colorhash_table cht, int maxcolors)
Definition: libppm3.c:164
colorhist_vector ppm_computecolorhist(pixel **pixels, int cols, int rows, int maxcolors, int *colorsP)
Definition: libppm3.c:28
colorhash_table ppm_alloccolorhash()
Definition: libppm3.c:128
colorhash_table ppm_colorhisttocolorhash(colorhist_vector chv, int colors)
Definition: libppm3.c:193
void ppm_freecolorhash(colorhash_table cht)
Definition: libppm3.c:249
colorhist_list * colorhash_table
Definition: ppmcmap.h:30
colorhist_vector ppm_computecolorhist ARGS((pixel **pixels, int cols, int rows, int maxcolors, int *colorsP))
struct colorhist_list_item * colorhist_list
Definition: ppmcmap.h:13
struct colorhist_item * colorhist_vector
Definition: ppmcmap.h:6
static colorhash_table cht
Definition: ppmtoacad.c:34
int colors
Definition: ppmtogif.c:51
pixel color
Definition: ppmcmap.h:9
colorhist_list next
Definition: ppmcmap.h:17
struct colorhist_item ch
Definition: ppmcmap.h:16
Definition: ppm.h:33
Definition: obx.h:51