drm_rect_calc_vscale_relaxed9
Calculate the vertical scaling factor
Arguments
src
source window rectangle
dst
destination window rectangle
min_vscale
minimum allowed vertical scaling factor
max_vscale
maximum allowed vertical scaling factor
Overview
Calculate the vertical scaling factor as (src height) / (dst height).
If the calculated scaling factor is below min_vscale, decrease the height of rectangle dst to compensate.
If the calculated scaling factor is above max_vscale, decrease the height of rectangle src to compensate.
Returns
The vertical scaling factor.