drm_rect_calc_hscale9
Calculate the horizontal scaling factor
Usage
int drm_rect_calc_hscale(const struct drm_rect * src, const struct drm_rect * dst, int min_hscale, int max_hscale);
Arguments
src
source window rectangle
dst
destination window rectangle
min_hscale
minimum allowed horizontal scaling factor
max_hscale
maximum allowed horizontal scaling factor
Overview
Calculate the horizontal scaling factor as (src width) / (dst width).
Returns
The horizontal scaling factor, or errno of out of limits.