Home
last modified time | relevance | path

Searched refs:dst_h (Results 1 – 25 of 27) sorted by relevance

12

/linux/drivers/media/platform/ti/vpe/
H A Dsc.c111 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 Dsc.h202 unsigned int dst_h);
205 unsigned int dst_w, unsigned int dst_h);
/linux/drivers/media/pci/ivtv/
H A Divtv-yuv.c396 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical()
426 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical()
428 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical()
431 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical()
433 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical()
435 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
436 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
438 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical()
439 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical()
440 if ((f->src_h * 0x00400000) - (master_height * f->dst_h) >= f->dst_h / 2) in ivtv_yuv_handle_vertical()
[all …]
/linux/drivers/gpu/drm/sti/
H A Dsti_hqvdp.c482 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local
522 dst_h = c->hvsrc.output_picture_size >> 16; in hqvdp_dbg_dump_cmd()
523 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd()
542 if (dst_h > src_h) in hqvdp_dbg_dump_cmd()
543 seq_printf(s, " %d/1", dst_h / src_h); in hqvdp_dbg_dump_cmd()
545 seq_printf(s, " 1/%d", src_h / dst_h); in hqvdp_dbg_dump_cmd()
737 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument
745 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling()
1032 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local
1047 dst_h = clamp_val(new_plane_state->crtc_h, 0, mode->vdisplay - dst_y); in sti_hqvdp_atomic_check()
[all …]
H A Dsti_vid.c147 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/meson/
H A Dmeson_plane.c148 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local
267 dst_h = new_state->crtc_h; in meson_plane_atomic_update()
279 dst_h /= 2; in meson_plane_atomic_update()
283 vf_phase_step = (src_h << 20) / dst_h; in meson_plane_atomic_update()
293 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update()
310 if (src_h != dst_h) { in meson_plane_atomic_update()
363 priv->viu.osb_blend0_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
364 priv->viu.osb_blend1_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
/linux/drivers/gpu/drm/sun4i/
H A Dsun8i_vi_layer.c57 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local
74 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord()
99 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord()
134 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord()
139 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord()
154 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord()
157 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
185 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_vi_layer_update_coord()
H A Dsun8i_ui_layer.c53 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local
67 dst_h = drm_rect_height(&state->dst); in sun8i_ui_layer_update_coord()
73 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord()
95 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
105 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_ui_layer_update_coord()
H A Dsun8i_ui_scaler.c149 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_ui_scaler_setup() argument
167 outsize = SUN8I_UI_SCALER_SIZE(dst_w, dst_h); in sun8i_ui_scaler_setup()
H A Dsun8i_vi_scaler.c927 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_vi_scaler_setup() argument
943 outsize = SUN8I_VI_SCALER_SIZE(dst_w, dst_h); in sun8i_vi_scaler_setup()
H A Dsun8i_ui_scaler.h40 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
H A Dsun8i_vi_scaler.h74 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop.h370 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 Drockchip_drm_vop.c383 uint32_t dst_h, const struct drm_format_info *info) in scl_vop_cal_scl_fac() argument
408 scl_cal_scale2(src_h, dst_h)); in scl_vop_cal_scl_fac()
413 scl_cal_scale2(cbcr_src_h, dst_h)); in scl_vop_cal_scl_fac()
419 yrgb_ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in scl_vop_cal_scl_fac()
423 cbcr_ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in scl_vop_cal_scl_fac()
455 val = scl_vop_cal_scale(yrgb_ver_scl_mode, src_h, dst_h, in scl_vop_cal_scl_fac()
472 dst_h, false, vsu_mode, &vskiplines); in scl_vop_cal_scl_fac()
H A Drockchip_drm_vop2.c765 u32 dst_h, u32 pixel_format) in vop2_setup_scale() argument
778 if (src_h >= (4 * dst_h)) { in vop2_setup_scale()
781 } else if (src_h >= (2 * dst_h)) { in vop2_setup_scale()
787 ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in vop2_setup_scale()
813 val = vop2_scale_factor(src_h, dst_h); in vop2_setup_scale()
835 if (cbcr_src_h >= (4 * dst_h)) { in vop2_setup_scale()
838 } else if (cbcr_src_h >= (2 * dst_h)) { in vop2_setup_scale()
844 ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in vop2_setup_scale()
849 val = vop2_scale_factor(cbcr_src_h, dst_h); in vop2_setup_scale()
/linux/drivers/gpu/drm/
H A Ddrm_rect.c208 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/i915/display/
H A Dskl_scaler.c105 int src_w, int src_h, int dst_w, int dst_h, in skl_update_scaler() argument
125 if (src_w != dst_w || src_h != dst_h) in skl_update_scaler()
202 dst_w < min_dst_w || dst_h < min_dst_h || in skl_update_scaler()
204 dst_w > max_dst_w || dst_h > max_dst_h) { in skl_update_scaler()
209 dst_w, dst_h); in skl_update_scaler()
233 crtc->pipe, scaler_user, src_w, src_h, dst_w, dst_h, in skl_update_scaler()
H A Dintel_atomic_plane.c163 unsigned int src_w, src_h, dst_w, dst_h; in intel_adjusted_rate() local
168 dst_h = drm_rect_height(dst); in intel_adjusted_rate()
172 dst_h = min(src_h, dst_h); in intel_adjusted_rate()
175 dst_w * dst_h); in intel_adjusted_rate()
386 int dst_h = drm_rect_height(&plane_state->uapi.dst); in intel_plane_is_scaled() local
388 return src_w != dst_w || src_h != dst_h; in intel_plane_is_scaled()
/linux/drivers/gpu/drm/imx/dcss/
H A Ddcss-plane.c280 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local
306 dst_h = drm_rect_height(&dst); in dcss_plane_atomic_update()
332 dst_w, dst_h, in dcss_plane_atomic_update()
336 dst.x1, dst.y1, dst_w, dst_h); in dcss_plane_atomic_update()
/linux/drivers/media/platform/st/sti/bdisp/
H A Dbdisp-hw.c630 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/exynos/
H A Dexynos_drm_gsc.c748 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 Dexynos_drm_fimc.c744 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/tegra/
H A Dplane.c228 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/radeon/
H A Dradeon_display.c1691 u32 src_h = 1, dst_h = 1; in radeon_crtc_scaling_mode_fixup() local
1718 dst_h = radeon_crtc->native_mode.hdisplay; in radeon_crtc_scaling_mode_fixup()
1739 dst_h = crtc->mode.hdisplay - (radeon_crtc->h_border * 2); in radeon_crtc_scaling_mode_fixup()
1761 b.full = dfixed_const(dst_h); in radeon_crtc_scaling_mode_fixup()
/linux/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_display.c1447 u32 src_h = 1, dst_h = 1; in amdgpu_display_crtc_scaling_mode_fixup() local
1473 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup()
1493 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_display_crtc_scaling_mode_fixup()
1503 b.full = dfixed_const(dst_h); in amdgpu_display_crtc_scaling_mode_fixup()

12