drm_rect_clip_scaled(9) perform a scaled clip operation

SYNOPSIS

bool drm_rect_clip_scaled(struct drm_rect * src, struct drm_rect * dst, const struct drm_rect * clip, int hscale, int vscale);

ARGUMENTS

src

source window rectangle

dst

destination window rectangle

clip

clip rectangle

hscale

horizontal scaling factor

vscale

vertical scaling factor

DESCRIPTION

Clip rectangle dst by rectangle clip. Clip rectangle src by the same amounts multiplied by hscale and vscale.

RETURNS

true if rectangle dst is still visible after being clipped, false otherwise

AUTHORS

Jesse Barnes <[email protected]>
Intel Corporation,         
        

Initial version

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

Driver internals

COPYRIGHT