Lines Matching refs:new_palette
1106 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()
1190 if (new_palette.depth == 8) in png_handle_sPLT()
1207 pp = new_palette.entries; in png_handle_sPLT()
1208 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1211 if (new_palette.depth == 8) in png_handle_sPLT()
1230 new_palette.name = (png_charp)chunkdata; in png_handle_sPLT()
1232 png_set_sPLT(png_ptr, info_ptr, &new_palette, 1); in png_handle_sPLT()
1235 png_free(png_ptr, new_palette.entries); in png_handle_sPLT()