Lines Matching full:palette
413 * for paletted images instead of supplying a palette index. Note that
469 /* Quantize RGB files down to 8 bit palette or reduce palettes
475 png_colorp palette;
477 /* This reduces the image to the application supplied palette */
478 if (/* We have our own palette */)
486 /* This reduces the image to the palette supplied in the file */
487 else if (png_get_PLTE(png_ptr, info_ptr, &palette, &num_palette))
493 png_set_quantize(png_ptr, palette, num_palette,
538 /* Optional call to gamma correct and add the background to the palette
540 * update the palette for you (ie you selected such a transform above).
769 png_colorp palette;
847 /* Set the palette if there is one. REQUIRED for indexed-color images */
848 palette = (png_colorp)png_malloc(png_ptr, PNG_MAX_PALETTE_LENGTH
850 /* ... Set palette colors ... */
851 png_set_PLTE(png_ptr, info_ptr, palette, PNG_MAX_PALETTE_LENGTH);
852 /* You must not free palette here, because png_set_PLTE only makes a link to
853 * the palette that you malloced. Wait until you are about to destroy
1030 /* If you png_malloced a palette, free it here (don't free info_ptr->palette,
1032 * libpng mallocs info_ptr->palette, libpng will free it). If you
1036 png_free(png_ptr, palette);
1037 palette = NULL;