Lines Matching refs:cur_diff
346 float cur_diff; in GetBestPredictorForTile() local
385 cur_diff = PredictionCostSpatialHistogram( in GetBestPredictorForTile()
388 if (mode == left_mode) cur_diff -= kSpatialPredictorBias; in GetBestPredictorForTile()
389 if (mode == above_mode) cur_diff -= kSpatialPredictorBias; in GetBestPredictorForTile()
391 if (cur_diff < best_diff) { in GetBestPredictorForTile()
395 best_diff = cur_diff; in GetBestPredictorForTile()
545 float cur_diff; in GetPredictionCostCrossColorRed() local
550 cur_diff = PredictionCostCrossColor(accumulated_red_histo, histo); in GetPredictionCostCrossColorRed()
552 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorRed()
555 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorRed()
558 cur_diff -= 3; in GetPredictionCostCrossColorRed()
560 return cur_diff; in GetPredictionCostCrossColorRed()
581 const float cur_diff = GetPredictionCostCrossColorRed( in GetBestGreenToRed() local
584 if (cur_diff < best_diff) { in GetBestGreenToRed()
585 best_diff = cur_diff; in GetBestGreenToRed()
598 float cur_diff; in GetPredictionCostCrossColorBlue() local
603 cur_diff = PredictionCostCrossColor(accumulated_blue_histo, histo); in GetPredictionCostCrossColorBlue()
605 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorBlue()
608 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorBlue()
611 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorBlue()
614 cur_diff -= 3; // favor keeping the areas locally similar in GetPredictionCostCrossColorBlue()
617 cur_diff -= 3; in GetPredictionCostCrossColorBlue()
620 cur_diff -= 3; in GetPredictionCostCrossColorBlue()
622 return cur_diff; in GetPredictionCostCrossColorBlue()
651 const float cur_diff = GetPredictionCostCrossColorBlue( in GetBestGreenRedToBlue() local
654 if (cur_diff < best_diff) { in GetBestGreenRedToBlue()
655 best_diff = cur_diff; in GetBestGreenRedToBlue()