Lines Matching refs:new_palette
1099 png_sPLT_t new_palette;
1151 new_palette.depth = *entry_start++;
1152 entry_size = (new_palette.depth == 8 ? 6 : 10);
1163 new_palette.nentries = (png_uint_32) (data_length / entry_size);
1164 if ((png_uint_32) new_palette.nentries > (png_uint_32) (PNG_SIZE_MAX /
1170 new_palette.entries = (png_sPLT_entryp)png_malloc_warn(
1171 png_ptr, new_palette.nentries * png_sizeof(png_sPLT_entry));
1172 if (new_palette.entries == NULL)
1179 for (i = 0; i < new_palette.nentries; i++)
1181 png_sPLT_entryp pp = new_palette.entries + i;
1183 if (new_palette.depth == 8)
1200 pp = new_palette.entries;
1201 for (i = 0; i < new_palette.nentries; i++)
1204 if (new_palette.depth == 8)
1223 new_palette.name = (png_charp)chunkdata;
1225 png_set_sPLT(png_ptr, info_ptr, &new_palette, 1);
1228 png_free(png_ptr, new_palette.entries);