Lines Matching refs:palette
127 png_colorp palette; in gdImageCreateFromPngCtx() local
246 png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette); in gdImageCreateFromPngCtx()
270 if ((palette = (png_colorp) gdMalloc (256 * sizeof (png_color))) == NULL) { in gdImageCreateFromPngCtx()
281 palette[i].red = palette[i].green = palette[i].blue = j; in gdImageCreateFromPngCtx()
286 palette[i].red = palette[i].green = palette[i].blue = i; in gdImageCreateFromPngCtx()
355 im->red[i] = palette[i].red; in gdImageCreateFromPngCtx()
356 im->green[i] = palette[i].green; in gdImageCreateFromPngCtx()
357 im->blue[i] = palette[i].blue; in gdImageCreateFromPngCtx()
427 gdFree(palette); in gdImageCreateFromPngCtx()
489 png_color palette[gdMaxColors]; in gdImagePngCtxEx() local
670 palette[mapping[i]].red = im->red[i]; in gdImagePngCtxEx()
671 palette[mapping[i]].green = im->green[i]; in gdImagePngCtxEx()
672 palette[mapping[i]].blue = im->blue[i]; in gdImagePngCtxEx()
676 palette[i].red = im->red[i]; in gdImagePngCtxEx()
677 palette[i].green = im->green[i]; in gdImagePngCtxEx()
678 palette[i].blue = im->blue[i]; in gdImagePngCtxEx()
681 png_set_PLTE(png_ptr, info_ptr, palette, colors); in gdImagePngCtxEx()