Lines Matching defs:filter_weights
1058 png_free(png_ptr, png_ptr->filter_weights);
1197 int num_weights, png_doublep filter_weights,
1214 if (num_weights < 0 || filter_weights == NULL ||
1237 if (png_ptr->filter_weights == NULL)
1239 png_ptr->filter_weights = (png_uint_16p)png_malloc(png_ptr,
1247 png_ptr->filter_weights[i] = PNG_WEIGHT_FACTOR;
1253 if (filter_weights[i] < 0.0)
1256 png_ptr->filter_weights[i] = PNG_WEIGHT_FACTOR;
1261 (png_uint_16)((double)PNG_WEIGHT_FACTOR*filter_weights[i]+0.5);
1262 png_ptr->filter_weights[i] =
1263 (png_uint_16)((double)PNG_WEIGHT_FACTOR/filter_weights[i]+0.5);