drm_rect_calc_vscale(9) calculate the vertical scaling factor

SYNOPSIS

int drm_rect_calc_vscale(const struct drm_rect * src, const struct drm_rect * dst, int min_vscale, int max_vscale);

ARGUMENTS

src

source window rectangle

dst

destination window rectangle

min_vscale

minimum allowed vertical scaling factor

max_vscale

maximum allowed vertical scaling factor

DESCRIPTION

Calculate the vertical scaling factor as (src height) / (dst height).

RETURNS

The vertical scaling factor, or errno of out of limits.

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

Laurent Pinchart <[email protected]>
Ideas on board SPRL,         
        

Driver internals

COPYRIGHT