---
name: "drm_rect_clip_scaled"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/drm_rect_clip_scaled"
---

# drm\_rect\_clip\_scaled(9)

perform a scaled clip operation

## NAME

drm\_rect\_clip\_scaled - 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** \<jesse.barnes@intel.com\>\
 Intel Corporation,

Initial version

**Laurent Pinchart** \<laurent.pinchart@ideasonboard.com\>\
 Ideas on board SPRL,

Driver internals

**Daniel Vetter** \<daniel.vetter@ffwll.ch\>\
 Intel Corporation,

Contributions all over the place

## COPYRIGHT
