Lines Matching refs:new_palette
1611 png_sPLT_t new_palette; in png_handle_sPLT() local
1690 new_palette.depth = *entry_start++; in png_handle_sPLT()
1691 entry_size = (new_palette.depth == 8 ? 6 : 10); in png_handle_sPLT()
1713 new_palette.nentries = (png_int_32)(data_length / entry_size); in png_handle_sPLT()
1715 new_palette.entries = (png_sPLT_entryp)png_malloc_warn( in png_handle_sPLT()
1716 png_ptr, new_palette.nentries * (sizeof (png_sPLT_entry))); in png_handle_sPLT()
1718 if (new_palette.entries == NULL) in png_handle_sPLT()
1725 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1727 pp = new_palette.entries + i; in png_handle_sPLT()
1729 if (new_palette.depth == 8) in png_handle_sPLT()
1748 pp = new_palette.entries; in png_handle_sPLT()
1750 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1753 if (new_palette.depth == 8) in png_handle_sPLT()
1774 new_palette.name = (png_charp)buffer; in png_handle_sPLT()
1776 png_set_sPLT(png_ptr, info_ptr, &new_palette, 1); in png_handle_sPLT()
1778 png_free(png_ptr, new_palette.entries); in png_handle_sPLT()