drm_rect_calc_vscale(9)

drm_rect_calc_vscale9

Calculate the vertical scaling factor

Usage

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

Overview

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

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.