Searched refs:filter_costs (Results 1 – 10 of 10) sorted by relevance
988 png_free(png_ptr, png_ptr->filter_costs); in png_write_destroy()1239 if (png_ptr->filter_costs == NULL) in png_init_filter_heuristics()1241 png_ptr->filter_costs = (png_uint_16p)png_malloc(png_ptr, in png_init_filter_heuristics()1251 png_ptr->filter_costs[i] = PNG_COST_FACTOR; in png_init_filter_heuristics()1277 png_const_doublep filter_costs) in png_set_filter_heuristics() argument1316 for (i = 0; i < PNG_FILTER_VALUE_LAST; i++) if (filter_costs[i] >= 1.0) in png_set_filter_heuristics()1319 (png_uint_16)(PNG_COST_FACTOR / filter_costs[i] + .5); in png_set_filter_heuristics()1321 png_ptr->filter_costs[i] = in png_set_filter_heuristics()1322 (png_uint_16)(PNG_COST_FACTOR * filter_costs[i] + .5); in png_set_filter_heuristics()1332 png_const_fixed_point_p filter_costs) in png_set_filter_heuristics_fixed() argument[all …]
2522 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_NONE]) >> in png_write_find_filter()2525 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_NONE]) >> in png_write_find_filter()2754 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_UP]) >> in png_write_find_filter()2757 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_UP]) >> in png_write_find_filter()2875 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_AVG]) >> in png_write_find_filter()2878 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_AVG]) >> in png_write_find_filter()3050 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_PAETH]) >> in png_write_find_filter()3053 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_PAETH]) >> in png_write_find_filter()
246 png_uint_16p filter_costs; /* relative filter calculation cost */ member
1670 png_const_doublep filter_costs));1674 filter_weights, png_const_fixed_point_p filter_costs));
877 png_free(png_ptr, png_ptr->filter_costs); in png_write_destroy()1136 if (png_ptr->filter_costs == NULL) in png_init_filter_heuristics()1138 png_ptr->filter_costs = (png_uint_16p)png_malloc(png_ptr, in png_init_filter_heuristics()1148 png_ptr->filter_costs[i] = PNG_COST_FACTOR; in png_init_filter_heuristics()1174 png_const_doublep filter_costs) in png_set_filter_heuristics() argument1213 for (i = 0; i < PNG_FILTER_VALUE_LAST; i++) if (filter_costs[i] >= 1.0) in png_set_filter_heuristics()1216 (png_uint_16)(PNG_COST_FACTOR / filter_costs[i] + .5); in png_set_filter_heuristics()1218 png_ptr->filter_costs[i] = in png_set_filter_heuristics()1219 (png_uint_16)(PNG_COST_FACTOR * filter_costs[i] + .5); in png_set_filter_heuristics()1229 png_const_fixed_point_p filter_costs) in png_set_filter_heuristics_fixed() argument[all …]
2417 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_NONE]) >> in png_write_find_filter()2420 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_NONE]) >> in png_write_find_filter()2649 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_UP]) >> in png_write_find_filter()2652 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_UP]) >> in png_write_find_filter()2770 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_AVG]) >> in png_write_find_filter()2773 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_AVG]) >> in png_write_find_filter()2945 sumlo = (sumlo * png_ptr->filter_costs[PNG_FILTER_VALUE_PAETH]) >> in png_write_find_filter()2948 sumhi = (sumhi * png_ptr->filter_costs[PNG_FILTER_VALUE_PAETH]) >> in png_write_find_filter()
356 png_uint_16p filter_costs; /* relative filter calculation cost */ member
1944 png_const_doublep filter_costs))1948 png_const_fixed_point_p filter_costs))
1120 png_const_doublep filter_costs) in png_set_filter_heuristics() argument1126 PNG_UNUSED(filter_costs) in png_set_filter_heuristics()1134 png_const_fixed_point_p filter_costs) in png_set_filter_heuristics_fixed() argument1140 PNG_UNUSED(filter_costs) in png_set_filter_heuristics_fixed()
1522 png_const_doublep filter_costs))1526 png_const_fixed_point_p filter_costs))