Lines Matching refs:palette
126 png_colorp palette; in gdImageCreateFromPngCtx() local
231 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); in gdImageCreateFromPngCtx()
255 if ((palette = (png_colorp) gdMalloc (256 * sizeof (png_color))) == NULL) { in gdImageCreateFromPngCtx()
266 palette[i].red = palette[i].green = palette[i].blue = j; in gdImageCreateFromPngCtx()
271 palette[i].red = palette[i].green = palette[i].blue = i; in gdImageCreateFromPngCtx()
340 im->red[i] = palette[i].red; in gdImageCreateFromPngCtx()
341 im->green[i] = palette[i].green; in gdImageCreateFromPngCtx()
342 im->blue[i] = palette[i].blue; in gdImageCreateFromPngCtx()
412 gdFree(palette); in gdImageCreateFromPngCtx()
474 png_color palette[gdMaxColors]; in gdImagePngCtxEx() local
649 palette[mapping[i]].red = im->red[i]; in gdImagePngCtxEx()
650 palette[mapping[i]].green = im->green[i]; in gdImagePngCtxEx()
651 palette[mapping[i]].blue = im->blue[i]; in gdImagePngCtxEx()
655 palette[i].red = im->red[i]; in gdImagePngCtxEx()
656 palette[i].green = im->green[i]; in gdImagePngCtxEx()
657 palette[i].blue = im->blue[i]; in gdImagePngCtxEx()
660 png_set_PLTE(png_ptr, info_ptr, palette, colors); in gdImagePngCtxEx()