#include "xcftools.h"
#include "pixels.h"
Go to the source code of this file.
◆ MAX_PALETTE
◆ index_t
◆ init_palette_hash()
◆ lookup_or_intern()
| int lookup_or_intern |
( |
rgba | color | ) |
|
|
inline |
Definition at line 51 of file palette.c.
51 {
57 }
58#if 0
59 fprintf(stderr,
"Palette[%u] = %08x (%u --> %d)\n",
paletteSize,color,
61#endif
63 return -1 ;
67}
KisMagneticGraph::vertex_descriptor target(typename KisMagneticGraph::edge_descriptor e, KisMagneticGraph g)
rgba palette[MAX_PALETTE]
References bucketlinks, HASH_SIZE, masterhash, MAX_PALETTE, palette, paletteSize, and target().
◆ palettify_row()
| int palettify_row |
( |
rgba * | row, |
|
|
unsigned | ncols ) |
Definition at line 80 of file palette.c.
81{
84 unsigned i ;
85 for( i=0; i<ncols; i++ ) {
87 if( j < 0 ) {
89 return 0 ;
90 }
91 newrow[i] = j ;
92 }
93 return 1 ;
94}
static void unpalettify_row(rgba *row, unsigned ncols)
int lookup_or_intern(rgba color)
References lookup_or_intern(), and unpalettify_row().
◆ palettify_rows()
| int palettify_rows |
( |
rgba * | rows[], |
|
|
unsigned | ncols, |
|
|
unsigned | nlines ) |
Definition at line 97 of file palette.c.
98{
99 unsigned i ;
100 for( i=0; i<nlines; i++ ) {
102 while( i-- )
104 return 0 ;
105 }
106 }
107 return 1 ;
108}
int palettify_row(rgba *row, unsigned ncols)
References palettify_row(), and unpalettify_row().
◆ palette
◆ paletteSize