carta
drm_rect_intersect(9)

drm_rect_intersect9

Intersect two rectangles

Usage

bool drm_rect_intersect(struct drm_rect * r1, const struct drm_rect * r2);

Arguments

r1

first rectangle

r2

second rectangle

Overview

Calculate the intersection of rectangles r1 and r2. r1 will be overwritten with the intersection.

Returns

true if rectangle r1 is still visible after the operation, false otherwise.

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.