Lines Matching refs:hscale
70 int hscale, int vscale) in drm_rect_clip_scaled() argument
76 int64_t tmp = src->x1 + (int64_t) diff * hscale; in drm_rect_clip_scaled()
86 int64_t tmp = src->x2 - (int64_t) diff * hscale; in drm_rect_clip_scaled()
133 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() local
135 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale()
136 return hscale; in drm_rect_calc_hscale()
138 if (hscale < min_hscale || hscale > max_hscale) in drm_rect_calc_hscale()
141 return hscale; in drm_rect_calc_hscale()
201 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale_relaxed() local
203 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale_relaxed()
204 return hscale; in drm_rect_calc_hscale_relaxed()
206 if (hscale < min_hscale) { in drm_rect_calc_hscale_relaxed()
214 if (hscale > max_hscale) { in drm_rect_calc_hscale_relaxed()
222 return hscale; in drm_rect_calc_hscale_relaxed()