Home | History | Annotate | Download | only in libpng

Lines Matching refs:filter_costs

1148    png_free(png_ptr, png_ptr->filter_costs);
1302 png_doublep filter_costs)
1378 if (png_ptr->filter_costs == NULL)
1380 png_ptr->filter_costs = (png_uint_16p)png_malloc(png_ptr,
1389 png_ptr->filter_costs[i] = PNG_COST_FACTOR;
1402 if (filter_costs == NULL || filter_costs[i] < 0.0)
1405 png_ptr->filter_costs[i] = PNG_COST_FACTOR;
1407 else if (filter_costs[i] >= 1.0)
1410 (png_uint_16)((double)PNG_COST_FACTOR / filter_costs[i] + 0.5);
1411 png_ptr->filter_costs[i] =
1412 (png_uint_16)((double)PNG_COST_FACTOR * filter_costs[i] + 0.5);