Lines Matching defs:filter_costs
1060 png_free(png_ptr, png_ptr->filter_costs);
1198 png_doublep filter_costs)
1271 if (png_ptr->filter_costs == NULL)
1273 png_ptr->filter_costs = (png_uint_16p)png_malloc(png_ptr,
1282 png_ptr->filter_costs[i] = PNG_COST_FACTOR;
1295 if (filter_costs == NULL || filter_costs[i] < 0.0)
1298 png_ptr->filter_costs[i] = PNG_COST_FACTOR;
1300 else if (filter_costs[i] >= 1.0)
1303 (png_uint_16)((double)PNG_COST_FACTOR / filter_costs[i] + 0.5);
1304 png_ptr->filter_costs[i] =
1305 (png_uint_16)((double)PNG_COST_FACTOR * filter_costs[i] + 0.5);