Lines Matching refs:palette
132 png_colorp palette; in gdImageCreateFromPngCtx() local
251 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); in gdImageCreateFromPngCtx()
275 if ((palette = (png_colorp) gdMalloc (256 * sizeof (png_color))) == NULL) { in gdImageCreateFromPngCtx()
286 palette[i].red = palette[i].green = palette[i].blue = j; in gdImageCreateFromPngCtx()
291 palette[i].red = palette[i].green = palette[i].blue = i; in gdImageCreateFromPngCtx()
360 im->red[i] = palette[i].red; in gdImageCreateFromPngCtx()
361 im->green[i] = palette[i].green; in gdImageCreateFromPngCtx()
362 im->blue[i] = palette[i].blue; in gdImageCreateFromPngCtx()
432 gdFree(palette); in gdImageCreateFromPngCtx()
494 png_color palette[gdMaxColors]; in gdImagePngCtxEx() local
675 palette[mapping[i]].red = im->red[i]; in gdImagePngCtxEx()
676 palette[mapping[i]].green = im->green[i]; in gdImagePngCtxEx()
677 palette[mapping[i]].blue = im->blue[i]; in gdImagePngCtxEx()
681 palette[i].red = im->red[i]; in gdImagePngCtxEx()
682 palette[i].green = im->green[i]; in gdImagePngCtxEx()
683 palette[i].blue = im->blue[i]; in gdImagePngCtxEx()
686 png_set_PLTE(png_ptr, info_ptr, palette, colors); in gdImagePngCtxEx()