Searched refs:expected_ratio (Results 1 – 1 of 1) sorted by relevance
254 double cur_ratio, expected_ratio; in getMatchingDimension() local257 expected_ratio = (double)exp_dim.width / (double)exp_dim.height; in getMatchingDimension()258 if (fabs(cur_ratio - expected_ratio) > ASPECT_RATIO_TOLERANCE) { in getMatchingDimension()259 if (cur_ratio < expected_ratio) { in getMatchingDimension()260 expected_dim.height = (int32_t)((double)cur_dim.width / expected_ratio); in getMatchingDimension()262 expected_dim.width = (int32_t)((double)cur_dim.height * expected_ratio); in getMatchingDimension()268 expected_ratio, cur_ratio, exp_dim.width, exp_dim.height); in getMatchingDimension()