carta
drm_rect_calc_hscale_relaxed(9)

drm_rect_calc_hscale_relaxed9

Calculate the horizontal scaling factor

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).

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 horizontal scaling factor.

Authors

Jesse Barnes <[email protected]>
Intel Corporation,

Initial version

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

Driver internals

Daniel Vetter <[email protected]>
Intel Corporation,

Contributions all over the place

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.