Lines Matching defs:palette
405 /* read and check the palette */
409 png_color palette[PNG_MAX_PALETTE_LENGTH];
449 png_warning(png_ptr, "Invalid palette chunk");
455 png_error(png_ptr, "Invalid palette chunk");
462 for (i = 0, pal_ptr = palette; i < num; i++, pal_ptr++)
478 palette[i].red = buf[0];
479 palette[i].green = buf[1];
480 palette[i].blue = buf[2];
521 png_set_PLTE(png_ptr, info_ptr, palette, num);
1388 (png_uint_16)png_ptr->palette[buf[0]].red;
1390 (png_uint_16)png_ptr->palette[buf[0]].green;
1392 (png_uint_16)png_ptr->palette[buf[0]].blue;