Home
last modified time | relevance | path

Searched refs:cost_manager (Results 1 – 1 of 1) sorted by relevance

/external/webp/src/enc/
Dbackward_references_cost_enc.c579 CostManager* cost_manager = in BackwardReferencesHashChainDistanceOnly() local
580 (CostManager*)WebPSafeMalloc(1ULL, sizeof(*cost_manager)); in BackwardReferencesHashChainDistanceOnly()
586 if (cost_model == NULL || cost_manager == NULL) goto Error; in BackwardReferencesHashChainDistanceOnly()
598 if (!CostManagerInit(cost_manager, dist_array, pix_count, cost_model)) { in BackwardReferencesHashChainDistanceOnly()
607 0.f, cost_manager->costs_, dist_array); in BackwardReferencesHashChainDistanceOnly()
610 const float prev_cost = cost_manager->costs_[i - 1]; in BackwardReferencesHashChainDistanceOnly()
617 cost_manager->costs_, dist_array); in BackwardReferencesHashChainDistanceOnly()
625 PushInterval(cost_manager, prev_cost + offset_cost, i, len); in BackwardReferencesHashChainDistanceOnly()
662 UpdateCostAtIndex(cost_manager, j - 1, 0); in BackwardReferencesHashChainDistanceOnly()
663 UpdateCostAtIndex(cost_manager, j, 0); in BackwardReferencesHashChainDistanceOnly()
[all …]