| /linux/drivers/media/platform/ti/vpe/ |
| H A D | sc.c | 62 unsigned int dst_w) in sc_set_hs_coeffs() argument 70 if (dst_w > src_w) { in sc_set_hs_coeffs() 73 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 74 dst_w <<= 1; /* first level decimation */ in sc_set_hs_coeffs() 75 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 76 dst_w <<= 1; /* second level decimation */ in sc_set_hs_coeffs() 78 if (dst_w == src_w) { in sc_set_hs_coeffs() 81 sixteenths = (dst_w << 4) / src_w; in sc_set_hs_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() [all …]
|
| H A D | sc.h | 200 unsigned int dst_w); 205 unsigned int dst_w, unsigned int dst_h);
|
| H A D | vpe.c | 869 unsigned int dst_w = d_q_data->c_rect.width; in set_srcdst_params() local 916 sc_set_hs_coeffs(ctx->dev->sc, ctx->sc_coeff_h.addr, src_w, dst_w); in set_srcdst_params() 921 src_w, src_h, dst_w, dst_h); in set_srcdst_params() 2106 unsigned int dst_w = d_q_data->c_rect.width; in check_srcdst_sizes() local 2109 if (src_w == dst_w && src_h == dst_h) in check_srcdst_sizes() 2115 dst_w <= SC_MAX_PIXEL_WIDTH) in check_srcdst_sizes()
|
| /linux/drivers/gpu/drm/sti/ |
| H A D | sti_vid.c | 146 int dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_vid_commit() local 153 dst_w = ALIGN(dst_w, 2); in sti_vid_commit() 164 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_vid_commit()
|
| /linux/drivers/gpu/drm/ |
| H A D | drm_rect.c | 173 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale() local 174 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() 176 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale()
|
| /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 306 dst_w = drm_rect_width(&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 634 dst_w = ctx->dst.crop.width; in bdisp_hw_get_hv_inc() 637 if (bdisp_hw_get_inc(src_w, dst_w, h_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/rockchip/ |
| H A D | rockchip_drm_vop.c | 383 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument 400 if (dst_w > 4096) { in scl_vop_cal_scl_fac() 407 scl_cal_scale2(src_w, dst_w)); in scl_vop_cal_scl_fac() 412 scl_cal_scale2(cbcr_src_w, dst_w)); in scl_vop_cal_scl_fac() 419 yrgb_hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in scl_vop_cal_scl_fac() 423 cbcr_hor_scl_mode = scl_get_scl_mode(cbcr_src_w, dst_w); in scl_vop_cal_scl_fac() 426 lb_mode = scl_vop_cal_lb_mode(dst_w, true); in scl_vop_cal_scl_fac() 431 lb_mode = scl_vop_cal_lb_mode(dst_w, false); in scl_vop_cal_scl_fac() 453 val = scl_vop_cal_scale(yrgb_hor_scl_mode, src_w, dst_w, in scl_vop_cal_scl_fac() 470 dst_w, true, 0, NULL); in scl_vop_cal_scl_fac()
|
| /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 243 dst_w = drm_rect_width(&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()
|
| H A D | dc.c | 2335 unsigned int dst_w = drm_rect_width(&state->dst); in tegra_plane_is_cursor() local 2343 if (src_w != dst_w || fmt->num_planes != 1 || src_w * fmt->cpp[0] > 256) in tegra_plane_is_cursor()
|
| /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 755 dst_w = dst->h; in gsc_set_prescaler() 758 dst_w = dst->w; in gsc_set_prescaler() 762 ret = gsc_get_ratio_shift(ctx, src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler() 777 sc->main_hratio = (src_w << 16) / dst_w; 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 756 dst_w = dst->h; in fimc_set_prescaler() 759 dst_w = dst->w; in fimc_set_prescaler() 764 hfactor = fls(src_w / dst_w / 2); in fimc_set_prescaler() 783 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler() 785 sc->up_h = (dst_w >= src_w); 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 214 dst_w = drm_rect_width(dst); in intel_adjusted_rate() 218 dst_w = min(src_w, dst_w); in intel_adjusted_rate() 222 dst_w * dst_h); in intel_adjusted_rate() 489 int dst_w = drm_rect_width(&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 820 tmp_h = dst_w; in mtk_mdp_check_scaler_ratio() 822 tmp_w = dst_w; in mtk_mdp_check_scaler_ratio()
|