Lines Matching refs:cost_model
649 const CostModel* const cost_model, in AddSingleLiteralWithCostModel() argument
659 cost_val += GetCacheCost(cost_model, ix) * mul0; in AddSingleLiteralWithCostModel()
663 cost_val += GetLiteralCost(cost_model, color) * mul1; in AddSingleLiteralWithCostModel()
805 const CostModel* const cost_model) { in CostManagerInit() argument
825 manager->cost_cache_[i] = GetLengthCost(cost_model, i); in CostManagerInit()
936 if (cost_model->distance_[i] != 0) { in CostManagerInit()
938 offset_cost_min = cost_model->distance_[i]; in CostManagerInit()
939 } else if (cost_model->distance_[i] < offset_cost_min) { in CostManagerInit()
940 offset_cost_min = cost_model->distance_[i]; in CostManagerInit()
1254 CostModel* const cost_model = in BackwardReferencesHashChainDistanceOnly() local
1262 if (cost_model == NULL || cost_manager == NULL) goto Error; in BackwardReferencesHashChainDistanceOnly()
1264 cost_model->literal_ = (double*)(cost_model + 1); in BackwardReferencesHashChainDistanceOnly()
1270 if (!CostModelBuild(cost_model, cache_bits, refs)) { in BackwardReferencesHashChainDistanceOnly()
1274 if (!CostManagerInit(cost_manager, dist_array, pix_count, cost_model)) { in BackwardReferencesHashChainDistanceOnly()
1282 AddSingleLiteralWithCostModel(argb + 0, &hashers, cost_model, 0, in BackwardReferencesHashChainDistanceOnly()
1293 const double offset_cost = GetDistanceCost(cost_model, code); in BackwardReferencesHashChainDistanceOnly()
1353 AddSingleLiteralWithCostModel(argb + i, &hashers, cost_model, i, in BackwardReferencesHashChainDistanceOnly()
1383 prev_cost + offset_cost + GetLengthCost(cost_model, 1); in BackwardReferencesHashChainDistanceOnly()
1394 AddSingleLiteralWithCostModel(argb + i, &hashers, cost_model, i, in BackwardReferencesHashChainDistanceOnly()
1403 argb + i, &hashers, cost_model, i, use_color_cache, in BackwardReferencesHashChainDistanceOnly()
1411 WebPSafeFree(cost_model); in BackwardReferencesHashChainDistanceOnly()