#include "pandabase.h"
#include "pnmimage_base.h"
Go to the source code of this file.
Compounds | |
struct | colorhist_item |
struct | colorhist_list_item |
Typedefs | |
typedef colorhist_item * | colorhist_vector |
typedef colorhist_list_item * | colorhist_list |
typedef colorhist_list * | colorhash_table |
Functions | |
EXPCL_PANDA colorhist_vector | ppm_computecolorhist (pixel **pixels, int cols, int rows, int maxcolors, int *colorsP) |
void | ppm_addtocolorhist (colorhist_vector chv, int *colorsP, int maxcolors, pixel *colorP, int value, int position) |
EXPCL_PANDA void | ppm_freecolorhist (colorhist_vector chv) |
colorhash_table | ppm_computecolorhash (pixel **pixels, int cols, int rows, int maxcolors, int *colorsP) |
EXPCL_PANDA int | ppm_lookupcolor (colorhash_table cht, pixel *colorP) |
colorhist_vector | ppm_colorhashtocolorhist (colorhash_table cht, int maxcolors) |
EXPCL_PANDA colorhash_table | ppm_colorhisttocolorhash (colorhist_vector chv, int colors) |
int | ppm_addtocolorhash (colorhash_table cht, pixel *colorP, int value) |
colorhash_table | ppm_alloccolorhash (void) |
void | ppm_freecolorhash (colorhash_table cht) |
Definition in file ppmcmap.h.
|
Definition at line 37 of file ppmcmap.h. Referenced by BMPEncode24(), ppm_alloccolorhash(), ppm_colorhisttocolorhash(), ppm_computecolorhash(), ppm_computecolorhist(), and PNMFileTypeBMP::Writer::Writer(). |
|
|
|
|
|
Definition at line 141 of file ppmcmap.cxx. References colorhist_list_item::ch, colorhist_item::color, malloc(), colorhist_list_item::next, ppm_hashpixel, and colorhist_item::value. |
|
Definition at line 43 of file ppmcmap.cxx. References colorhist_item::color, PPM_EQUAL, and colorhist_item::value. |
|
Definition at line 125 of file ppmcmap.cxx. References colorhash_table, HASH_SIZE, malloc(), and pm_error(). Referenced by ppm_colorhisttocolorhash(), and ppm_computecolorhash(). |
|
Definition at line 160 of file ppmcmap.cxx. References colorhist_list_item::ch, HASH_SIZE, malloc(), colorhist_list_item::next, and pm_error(). Referenced by ppm_computecolorhist(). |
|
Definition at line 188 of file ppmcmap.cxx. References colorhist_list_item::ch, colorhist_item::color, colorhash_table, malloc(), colorhist_list_item::next, pm_error(), ppm_alloccolorhash(), PPM_EQUAL, PPM_GETB, PPM_GETG, PPM_GETR, ppm_hashpixel, and colorhist_item::value. |
|
Definition at line 82 of file ppmcmap.cxx. References colorhist_list_item::ch, colorhist_item::color, colorhash_table, malloc(), colorhist_list_item::next, pm_error(), ppm_alloccolorhash(), PPM_EQUAL, ppm_freecolorhash(), ppm_hashpixel, and colorhist_item::value. Referenced by ppm_computecolorhist(). |
|
Definition at line 27 of file ppmcmap.cxx. References colorhash_table, ppm_colorhashtocolorhist(), ppm_computecolorhash(), and ppm_freecolorhash(). |
|
Definition at line 241 of file ppmcmap.cxx. References HASH_SIZE, and colorhist_list_item::next. Referenced by ppm_computecolorhash(), ppm_computecolorhist(), and PNMFileTypeTGA::Reader::read_data(). |
|
Definition at line 235 of file ppmcmap.cxx. Referenced by PNMFileTypeTGA::Reader::read_data(). |
|
Definition at line 220 of file ppmcmap.cxx. References colorhist_list_item::ch, colorhist_item::color, colorhist_list_item::next, PPM_EQUAL, ppm_hashpixel, and colorhist_item::value. Referenced by BMPwriterow(). |