Lines Matching full:new_palette
1604 png_sPLT_t new_palette;
1683 new_palette.depth = *entry_start++;
1684 entry_size = (new_palette.depth == 8 ? 6 : 10);
1706 new_palette.nentries = (png_int_32)(data_length / entry_size);
1708 new_palette.entries = (png_sPLT_entryp)png_malloc_warn(
1709 png_ptr, new_palette.nentries * (sizeof (png_sPLT_entry)));
1711 if (new_palette.entries == NULL)
1718 for (i = 0; i < new_palette.nentries; i++)
1720 pp = new_palette.entries + i;
1722 if (new_palette.depth == 8)
1741 pp = new_palette.entries;
1743 for (i = 0; i < new_palette.nentries; i++)
1746 if (new_palette.depth == 8)
1767 new_palette.name = (png_charp)buffer;
1769 png_set_sPLT(png_ptr, info_ptr, &new_palette, 1);
1771 png_free(png_ptr, new_palette.entries);