Home
last modified time | relevance | path

Searched refs:new_palette (Results 1 – 2 of 2) sorted by relevance

/external/libpng/
Dpngrutil.c1645 png_sPLT_t new_palette; in png_handle_sPLT() local
1724 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 …]
/external/pdfium/third_party/libpng16/
Dpngrutil.c1631 png_sPLT_t new_palette; in png_handle_sPLT() local
1710 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 …]