Lines Matching refs:new_palette
1184 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()
1291 if (new_palette.depth == 8) in png_handle_sPLT()
1308 pp = new_palette.entries; in png_handle_sPLT()
1309 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1312 if (new_palette.depth == 8) in png_handle_sPLT()
1331 new_palette.name = png_ptr->chunkdata; in png_handle_sPLT()
1333 png_set_sPLT(png_ptr, info_ptr, &new_palette, 1); in png_handle_sPLT()
1337 png_free(png_ptr, new_palette.entries); in png_handle_sPLT()