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()
365 im->red[i] = palette[i].red; in gdImageCreateFromPngCtx()
366 im->green[i] = palette[i].green; in gdImageCreateFromPngCtx()
367 im->blue[i] = palette[i].blue; in gdImageCreateFromPngCtx()
437 gdFree(palette); in gdImageCreateFromPngCtx()
499 png_color palette[gdMaxColors]; in gdImagePngCtxEx() local
680 palette[mapping[i]].red = im->red[i]; in gdImagePngCtxEx()
681 palette[mapping[i]].green = im->green[i]; in gdImagePngCtxEx()
682 palette[mapping[i]].blue = im->blue[i]; in gdImagePngCtxEx()
686 palette[i].red = im->red[i]; in gdImagePngCtxEx()
687 palette[i].green = im->green[i]; in gdImagePngCtxEx()
688 palette[i].blue = im->blue[i]; in gdImagePngCtxEx()
691 png_set_PLTE(png_ptr, info_ptr, palette, colors); in gdImagePngCtxEx()