| /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);
|
| /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()
|
| /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/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 | 747 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 755 dst_h = dst->w; in gsc_set_prescaler() 758 dst_h = dst->h; in gsc_set_prescaler() 767 ret = gsc_get_ratio_shift(ctx, src_h, dst_h, &sc->pre_vratio); in gsc_set_prescaler() 777 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/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()
|