Home
last modified time | relevance | path

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

/external/pdfium/samples/fx_lpng/lpng_v163/
Dfx_pngrutil.c1573 png_sPLT_t new_palette; in png_handle_sPLT() local
1652 new_palette.depth = *entry_start++; in png_handle_sPLT()
1653 entry_size = (new_palette.depth == 8 ? 6 : 10); in png_handle_sPLT()
1675 new_palette.nentries = (png_int_32)(data_length / entry_size); in png_handle_sPLT()
1677 new_palette.entries = (png_sPLT_entryp)png_malloc_warn( in png_handle_sPLT()
1678 png_ptr, new_palette.nentries * (sizeof (png_sPLT_entry))); in png_handle_sPLT()
1680 if (new_palette.entries == NULL) in png_handle_sPLT()
1687 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1689 pp = new_palette.entries + i; in png_handle_sPLT()
1691 if (new_palette.depth == 8) in png_handle_sPLT()
[all …]
/external/libpng/
Dpngrutil.c1611 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()
[all …]