Lines Matching defs:palette
627 /* Read and check the palette */
631 png_color palette[PNG_MAX_PALETTE_LENGTH];
674 png_warning(png_ptr, "Invalid palette chunk");
681 png_error(png_ptr, "Invalid palette chunk");
688 for (i = 0, pal_ptr = palette; i < num; i++, pal_ptr++)
704 palette[i].red = buf[0];
705 palette[i].green = buf[1];
706 palette[i].blue = buf[2];
752 png_set_PLTE(png_ptr, info_ptr, palette, num);
1669 background.red = (png_uint_16)png_ptr->palette[buf[0]].red;
1670 background.green = (png_uint_16)png_ptr->palette[buf[0]].green;
1671 background.blue = (png_uint_16)png_ptr->palette[buf[0]].blue;