Searched refs:new_palette (Results 1 – 2 of 2) sorted by relevance
1645 png_sPLT_t new_palette; in png_handle_sPLT() local1724 new_palette.depth = *entry_start++; in png_handle_sPLT()1725 entry_size = (new_palette.depth == 8 ? 6 : 10); in png_handle_sPLT()1747 new_palette.nentries = (png_int_32)(data_length / (unsigned int)entry_size); in png_handle_sPLT()1749 new_palette.entries = (png_sPLT_entryp)png_malloc_warn(png_ptr, in png_handle_sPLT()1750 (png_alloc_size_t) new_palette.nentries * (sizeof (png_sPLT_entry))); in png_handle_sPLT()1752 if (new_palette.entries == NULL) in png_handle_sPLT()1759 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()1761 pp = new_palette.entries + i; in png_handle_sPLT()1763 if (new_palette.depth == 8) in png_handle_sPLT()[all …]
1631 png_sPLT_t new_palette; in png_handle_sPLT() local1710 new_palette.depth = *entry_start++; in png_handle_sPLT()1711 entry_size = (new_palette.depth == 8 ? 6 : 10); in png_handle_sPLT()1733 new_palette.nentries = (png_int_32)(data_length / entry_size); in png_handle_sPLT()1735 new_palette.entries = (png_sPLT_entryp)png_malloc_warn( in png_handle_sPLT()1736 png_ptr, new_palette.nentries * (sizeof (png_sPLT_entry))); in png_handle_sPLT()1738 if (new_palette.entries == NULL) in png_handle_sPLT()1745 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()1747 pp = new_palette.entries + i; in png_handle_sPLT()1749 if (new_palette.depth == 8) in png_handle_sPLT()[all …]