Lines Matching defs:src
51 * @src: source window rectangle
57 * Clip rectangle @dst by rectangle @clip. Clip rectangle @src by the
64 int drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst,
72 int64_t tmp = src->x1 + (int64_t) diff * hscale;
73 src->x1 = clamp_int64_t(tmp);
77 int64_t tmp = src->y1 + (int64_t) diff * vscale;
78 src->y1 = clamp_int64_t(tmp);
82 int64_t tmp = src->x2 - (int64_t) diff * hscale;
83 src->x2 = clamp_int64_t(tmp);
87 int64_t tmp = src->y2 - (int64_t) diff * vscale;
88 src->y2 = clamp_int64_t(tmp);
94 static int drm_calc_scale(int src, int dst)
98 if (src < 0 || dst < 0)
104 scale = src / dst;
111 * @src: source window rectangle
117 * (@src width) / (@dst width).
122 int drm_rect_calc_hscale(const struct drm_rect *src,
126 int src_w = drm_rect_width(src);
141 * @src: source window rectangle
147 * (@src height) / (@dst height).
152 int drm_rect_calc_vscale(const struct drm_rect *src,
156 int src_h = drm_rect_height(src);
171 * @src: source window rectangle
177 * (@src width) / (@dst width).
183 * decrease the height of rectangle @src to compensate.
188 int drm_rect_calc_hscale_relaxed(struct drm_rect *src,
192 int src_w = drm_rect_width(src);
210 drm_rect_adjust_size(src, max_src_w - src_w, 0);
220 * @src: source window rectangle
226 * (@src height) / (@dst height).
232 * decrease the height of rectangle @src to compensate.
237 int drm_rect_calc_vscale_relaxed(struct drm_rect *src,
241 int src_h = drm_rect_height(src);
259 drm_rect_adjust_size(src, 0, max_src_h - src_h);