Lines Matching refs:cur_diff
541 float cur_diff; in GetBestPredictorForTile() local
567 cur_diff = PredictionCostSpatialHistogram(accumulated, histo); in GetBestPredictorForTile()
568 if (cur_diff < best_diff) { in GetBestPredictorForTile()
569 best_diff = cur_diff; in GetBestPredictorForTile()
882 float cur_diff; in GetBestColorTransformForTile() local
915 cur_diff = PredictionCostCrossColor(&accumulated_red_histo[0], &histo[0]); in GetBestColorTransformForTile()
917 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
920 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
923 cur_diff -= 3; in GetBestColorTransformForTile()
925 if (cur_diff < best_diff) { in GetBestColorTransformForTile()
926 best_diff = cur_diff; in GetBestColorTransformForTile()
945 cur_diff = in GetBestColorTransformForTile()
948 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
951 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
954 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
957 cur_diff -= 3; // favor keeping the areas locally similar in GetBestColorTransformForTile()
960 cur_diff -= 3; in GetBestColorTransformForTile()
963 cur_diff -= 3; in GetBestColorTransformForTile()
965 if (cur_diff < best_diff) { in GetBestColorTransformForTile()
966 best_diff = cur_diff; in GetBestColorTransformForTile()