Lines Matching full:new_palette
1190 png_sPLT_t new_palette;
1264 new_palette.depth = *entry_start++;
1265 entry_size = (new_palette.depth == 8 ? 6 : 10);
1277 new_palette.nentries = (png_int_32) ( data_length / entry_size);
1278 if ((png_uint_32) new_palette.nentries >
1284 new_palette.entries = (png_sPLT_entryp)png_malloc_warn(
1285 png_ptr, new_palette.nentries * png_sizeof(png_sPLT_entry));
1286 if (new_palette.entries == NULL)
1293 for (i = 0; i < new_palette.nentries; i++)
1295 pp = new_palette.entries + i;
1297 if (new_palette.depth == 8)
1314 pp = new_palette.entries;
1315 for (i = 0; i < new_palette.nentries; i++)
1318 if (new_palette.depth == 8)
1337 new_palette.name = png_ptr->chunkdata;
1339 png_set_sPLT(png_ptr, info_ptr, &new_palette, 1);
1343 png_free(png_ptr, new_palette.entries);