Lines Matching refs:palettesize

2531   info->palettesize = 0;  in lodepng_color_mode_init()
2547 if(!dest->palette && source->palettesize) return 83; /*alloc fail*/ in lodepng_color_mode_copy()
2548 for(i = 0; i < source->palettesize * 4; i++) dest->palette[i] = source->palette[i]; in lodepng_color_mode_copy()
2565 if(a->palettesize != b->palettesize) return 0; in lodepng_color_mode_equal()
2566 for(i = 0; i < a->palettesize * 4; i++) in lodepng_color_mode_equal()
2577 info->palettesize = 0; in lodepng_palette_clear()
2593 info->palette[4 * info->palettesize + 0] = r; in lodepng_palette_add()
2594 info->palette[4 * info->palettesize + 1] = g; in lodepng_palette_add()
2595 info->palette[4 * info->palettesize + 2] = b; in lodepng_palette_add()
2596 info->palette[4 * info->palettesize + 3] = a; in lodepng_palette_add()
2597 info->palettesize++; in lodepng_palette_add()
2630 for(i = 0; i < info->palettesize; i++) in lodepng_has_palette_alpha()
3159 if(index >= mode->palettesize) in getPixelColorRGBA8()
3286 if(index >= mode->palettesize) in getPixelColorsRGBA8()
3412 if(mode_out->palettesize < palsize) palsize = mode_out->palettesize; in lodepng_convert()
3857 if(mode_out->colortype == LCT_PALETTE && mode_in->palettesize == mode_out->palettesize) in lodepng_auto_choose_color()
3861 for(i = 0; i < mode_in->palettesize * 4; i++) in lodepng_auto_choose_color()
4258 color->palettesize = chunkLength / 3; in readChunk_PLTE()
4259 color->palette = (unsigned char*)lodepng_malloc(4 * color->palettesize); in readChunk_PLTE()
4260 if(!color->palette && color->palettesize) in readChunk_PLTE()
4262 color->palettesize = 0; in readChunk_PLTE()
4265 if(color->palettesize > 256) return 38; /*error: palette too big*/ in readChunk_PLTE()
4267 for(i = 0; i < color->palettesize; i++) in readChunk_PLTE()
4284 if(chunkLength > color->palettesize) return 38; in readChunk_tRNS()
4929 for(i = 0; i < info->palettesize * 4; i++) in addChunk_PLTE()
4948 size_t amount = info->palettesize; in addChunk_tRNS()
4950 for(i = info->palettesize; i > 0; i--) in addChunk_tRNS()
5628 static unsigned getPaletteTranslucency(const unsigned char* palette, size_t palettesize) in getPaletteTranslucency() argument
5632 for(i = 0; i < palettesize; i++) in getPaletteTranslucency()
5679 && (info.color.palettesize == 0 || info.color.palettesize > 256)) in lodepng_encode()
5750 …olortype == LCT_PALETTE && getPaletteTranslucency(info.color.palette, info.color.palettesize) != 0) in lodepng_encode()