Lines Matching refs:cur_diff
398 float cur_diff; in GetBestPredictorForTile() local
424 cur_diff = PredictionCostSpatialHistogram(accumulated, histo); in GetBestPredictorForTile()
425 if (cur_diff < best_diff) { in GetBestPredictorForTile()
426 best_diff = cur_diff; in GetBestPredictorForTile()
699 float cur_diff; in GetBestColorTransformForTile() local
736 cur_diff = PredictionCostCrossColor(&accumulated_red_histo[0], &histo[0]); in GetBestColorTransformForTile()
738 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
741 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
744 cur_diff -= 3; in GetBestColorTransformForTile()
746 if (cur_diff < best_diff) { in GetBestColorTransformForTile()
747 best_diff = cur_diff; in GetBestColorTransformForTile()
773 cur_diff = in GetBestColorTransformForTile()
776 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
779 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
782 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
785 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
788 cur_diff -= 3; in GetBestColorTransformForTile()
791 cur_diff -= 3; in GetBestColorTransformForTile()
793 if (cur_diff < best_diff) { in GetBestColorTransformForTile()
794 best_diff = cur_diff; in GetBestColorTransformForTile()