Searched refs:x_factor (Results 1 – 2 of 2) sorted by relevance
551 float x_factor = orig_xres * xpy * scr_height; in get_max_dimensions() local555 if (x_factor < y_factor * (1.f - ASPECT_RATIO_TOLERANCE)) in get_max_dimensions()556 *adj_xres = (__u32) (x_factor * *adj_xres / y_factor + 0.5); in get_max_dimensions()557 else if (x_factor * (1.f - ASPECT_RATIO_TOLERANCE) > y_factor) in get_max_dimensions()558 *adj_yres = (__u32) (y_factor * *adj_yres / x_factor + 0.5); in get_max_dimensions()
740 float x_factor = orig_xres * xpy * scr_height; in get_max_dimensions() local744 if (x_factor < y_factor * (1.f - ASPECT_RATIO_TOLERANCE)) in get_max_dimensions()745 *adj_xres = (__u32) (x_factor * *adj_xres / y_factor + 0.5); in get_max_dimensions()746 else if (x_factor * (1.f - ASPECT_RATIO_TOLERANCE) > y_factor) in get_max_dimensions()747 *adj_yres = (__u32) (y_factor * *adj_yres / x_factor + 0.5); in get_max_dimensions()