Lines Matching refs:palette
211 * for paletted images instead of supplying a palette index. Note that
265 /* Dither RGB files down to 8 bit palette or reduce palettes
271 png_colorp palette;
273 /* This reduces the image to the application supplied palette */
274 if (/* we have our own palette */)
282 /* This reduces the image to the palette supplied in the file */
283 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette))
289 png_set_dither(png_ptr, palette, num_palette,
328 /* Optional call to gamma correct and add the background to the palette
330 * update the palette for you (ie you selected such a transform above).
558 png_colorp palette;
632 /* set the palette if there is one. REQUIRED for indexed-color images */
633 palette = (png_colorp)png_malloc(png_ptr, PNG_MAX_PALETTE_LENGTH
635 /* ... set palette colors ... */
636 png_set_PLTE(png_ptr, info_ptr, palette, PNG_MAX_PALETTE_LENGTH);
637 /* You must not free palette here, because png_set_PLTE only makes a link to
638 the palette that you malloced. Wait until you are about to destroy
784 /* If you png_malloced a palette, free it here (don't free info_ptr->palette,
786 libpng mallocs info_ptr->palette, libpng will free it). If you
789 png_free(png_ptr, palette);
790 palette=NULL;