Home
last modified time | relevance | path

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

/external/libpng/
Dpngrutil.c1184 png_sPLT_t new_palette; in png_handle_sPLT() local
1258 new_palette.depth = *entry_start++; in png_handle_sPLT()
1259 entry_size = (new_palette.depth == 8 ? 6 : 10); in png_handle_sPLT()
1271 new_palette.nentries = (png_int_32) ( data_length / entry_size); in png_handle_sPLT()
1272 if ((png_uint_32) new_palette.nentries > in png_handle_sPLT()
1278 new_palette.entries = (png_sPLT_entryp)png_malloc_warn( in png_handle_sPLT()
1279 png_ptr, new_palette.nentries * png_sizeof(png_sPLT_entry)); in png_handle_sPLT()
1280 if (new_palette.entries == NULL) in png_handle_sPLT()
1287 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1289 pp = new_palette.entries + i; in png_handle_sPLT()
[all …]
/external/qemu/distrib/libpng-1.2.19/
Dpngrutil.c1106 png_sPLT_t new_palette; in png_handle_sPLT() local
1158 new_palette.depth = *entry_start++; in png_handle_sPLT()
1159 entry_size = (new_palette.depth == 8 ? 6 : 10); in png_handle_sPLT()
1170 new_palette.nentries = (png_int_32) ( data_length / entry_size); in png_handle_sPLT()
1171 if ((png_uint_32) new_palette.nentries > (png_uint_32) (PNG_SIZE_MAX / in png_handle_sPLT()
1177 new_palette.entries = (png_sPLT_entryp)png_malloc_warn( in png_handle_sPLT()
1178 png_ptr, new_palette.nentries * png_sizeof(png_sPLT_entry)); in png_handle_sPLT()
1179 if (new_palette.entries == NULL) in png_handle_sPLT()
1186 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1188 png_sPLT_entryp pp = new_palette.entries + i; in png_handle_sPLT()
[all …]