| /linux/drivers/media/platform/ti/vpe/ |
| H A D | sc.c | 111 unsigned int dst_h) in sc_set_vs_coeffs() argument 119 if (dst_h > src_h) { in sc_set_vs_coeffs() 121 } else if (dst_h == src_h) { in sc_set_vs_coeffs() 124 sixteenths = (dst_h << 4) / src_h; in sc_set_vs_coeffs() 149 unsigned int dst_w, unsigned int dst_h) in sc_config_scaler() argument 178 if (src_w == dst_w && src_h == dst_h) { in sc_config_scaler() 213 if (dst_h < (src_h >> 2)) { in sc_config_scaler() 222 factor = (u16) ((dst_h << 10) / src_h); in sc_config_scaler() 238 src_h, dst_h, factor, row_acc_init_rav, in sc_config_scaler() 242 row_acc_inc = ((src_h - 1) << 16) / (dst_h - 1); in sc_config_scaler() [all …]
|
| H A D | sc.h | 202 unsigned int dst_h); 205 unsigned int dst_w, unsigned int dst_h);
|
| H A D | vpe.c | 870 unsigned int dst_h = d_q_data->c_rect.height; in set_srcdst_params() local 917 sc_set_vs_coeffs(ctx->dev->sc, ctx->sc_coeff_v.addr, src_h, dst_h); in set_srcdst_params() 921 src_w, src_h, dst_w, dst_h); in set_srcdst_params() 2107 unsigned int dst_h = d_q_data->c_rect.height; in check_srcdst_sizes() local 2109 if (src_w == dst_w && src_h == dst_h) in check_srcdst_sizes() 2114 dst_h <= SC_MAX_PIXEL_HEIGHT && in check_srcdst_sizes()
|
| /linux/drivers/gpu/drm/sti/ |
| H A D | sti_vid.c | 147 int dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_vid_commit() local 154 dst_h = ALIGN(dst_h, 2); in sti_vid_commit() 162 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_vid_commit()
|
| /linux/drivers/gpu/drm/rockchip/ |
| H A D | rockchip_drm_vop.h | 370 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument 377 if (act_height == dst_h) in scl_get_bili_dn_vskip() 378 return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; in scl_get_bili_dn_vskip() 380 return GET_SCL_FT_BILI_DN(act_height, dst_h); in scl_get_bili_dn_vskip()
|
| H A D | rockchip_drm_vop.c | 384 uint32_t dst_h, const struct drm_format_info *info) in scl_vop_cal_scl_fac() argument 409 scl_cal_scale2(src_h, dst_h)); in scl_vop_cal_scl_fac() 414 scl_cal_scale2(cbcr_src_h, dst_h)); in scl_vop_cal_scl_fac() 420 yrgb_ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in scl_vop_cal_scl_fac() 424 cbcr_ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in scl_vop_cal_scl_fac() 456 val = scl_vop_cal_scale(yrgb_ver_scl_mode, src_h, dst_h, in scl_vop_cal_scl_fac() 473 dst_h, false, vsu_mode, &vskiplines); in scl_vop_cal_scl_fac()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_rect.c | 208 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale() local 209 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale() 211 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale()
|
| /linux/drivers/gpu/drm/imx/dcss/ |
| H A D | dcss-plane.c | 281 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local 307 dst_h = drm_rect_height(&dst); in dcss_plane_atomic_update() 333 dst_w, dst_h, in dcss_plane_atomic_update() 337 dst.x1, dst.y1, dst_w, dst_h); in dcss_plane_atomic_update()
|
| /linux/drivers/media/platform/st/sti/bdisp/ |
| H A D | bdisp-hw.c | 630 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local 635 dst_h = ctx->dst.crop.height; in bdisp_hw_get_hv_inc() 638 bdisp_hw_get_inc(src_h, dst_h, v_inc)) { in bdisp_hw_get_hv_inc() 641 src_w, src_h, dst_w, dst_h); in bdisp_hw_get_hv_inc()
|
| /linux/drivers/gpu/drm/tegra/ |
| H A D | plane.c | 228 unsigned int i, bpp, dst_w, dst_h, src_w, src_h, mul; in tegra_plane_calculate_memory_bandwidth() local 244 dst_h = drm_rect_height(&state->dst); in tegra_plane_calculate_memory_bandwidth() 270 avg_bandwidth = min(src_w, dst_w) * min(src_h, dst_h); in tegra_plane_calculate_memory_bandwidth()
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_gsc.c | 748 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 756 dst_h = dst->w; in gsc_set_prescaler() 759 dst_h = dst->h; in gsc_set_prescaler() 768 ret = gsc_get_ratio_shift(ctx, src_h, dst_h, &sc->pre_vratio); in gsc_set_prescaler() 778 sc->main_vratio = (src_h << 16) / dst_h; in gsc_set_prescaler()
|
| H A D | exynos_drm_fimc.c | 744 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 757 dst_h = dst->w; in fimc_set_prescaler() 760 dst_h = dst->h; in fimc_set_prescaler() 770 vfactor = fls(src_h / dst_h / 2); in fimc_set_prescaler() 784 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler() 786 sc->up_v = (dst_h >= src_h); in fimc_set_prescaler()
|
| /linux/drivers/gpu/drm/i915/display/ |
| H A D | intel_plane.c | 210 unsigned int src_w, src_h, dst_w, dst_h; in intel_adjusted_rate() local 215 dst_h = drm_rect_height(dst); in intel_adjusted_rate() 219 dst_h = min(src_h, dst_h); in intel_adjusted_rate() 222 dst_w * dst_h); in intel_adjusted_rate() 490 int dst_h = drm_rect_height(&plane_state->uapi.dst); in intel_plane_is_scaled() local 492 return src_w != dst_w || src_h != dst_h; in intel_plane_is_scaled()
|
| /linux/drivers/media/platform/mediatek/mdp/ |
| H A D | mtk_mdp_m2m.c | 814 int src_h, int dst_w, int dst_h, int rot) in mtk_mdp_check_scaler_ratio() argument 819 tmp_w = dst_h; in mtk_mdp_check_scaler_ratio() 823 tmp_h = dst_h; in mtk_mdp_check_scaler_ratio()
|