Home
last modified time | relevance | path

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

12

/Linux-v5.4/drivers/media/platform/ti-vpe/
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 …]
Dsc.h202 unsigned int dst_h);
205 unsigned int dst_w, unsigned int dst_h);
Dvpe.c849 unsigned int dst_h = d_q_data->c_rect.height; in set_srcdst_params() local
894 sc_set_vs_coeffs(ctx->dev->sc, ctx->sc_coeff_v.addr, src_h, dst_h); in set_srcdst_params()
898 src_w, src_h, dst_w, dst_h); in set_srcdst_params()
2064 unsigned int dst_h = d_q_data->c_rect.height; in check_srcdst_sizes() local
2066 if (src_w == dst_w && src_h == dst_h) in check_srcdst_sizes()
2071 dst_h <= SC_MAX_PIXEL_HEIGHT && in check_srcdst_sizes()
/Linux-v5.4/drivers/media/pci/ivtv/
Divtv-yuv.c395 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical()
425 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical()
427 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical()
430 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical()
432 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical()
434 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
435 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
437 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical()
438 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical()
439 if ((f->src_h * 0x00400000) - (master_height * f->dst_h) >= f->dst_h / 2) in ivtv_yuv_handle_vertical()
[all …]
/Linux-v5.4/drivers/gpu/drm/zte/
Dzx_plane.c148 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h) in zx_vl_rsz_setup() argument
157 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h - 1) | RSZ_HOR(dst_w - 1)); in zx_vl_rsz_setup()
174 zx_writel(rsz + RSZ_VL_LUMA_VER, rsz_step_value(src_h, dst_h)); in zx_vl_rsz_setup()
176 zx_writel(rsz + RSZ_VL_CHROMA_VER, rsz_step_value(src_chroma_h, dst_h)); in zx_vl_rsz_setup()
195 u32 dst_x, dst_y, dst_w, dst_h; in zx_vl_plane_atomic_update() local
213 dst_h = drm_rect_height(dst); in zx_vl_plane_atomic_update()
234 GL_POS_X(dst_x + dst_w) | GL_POS_Y(dst_y + dst_h)); in zx_vl_plane_atomic_update()
249 zx_vl_rsz_setup(zplane, format, src_w, src_h, dst_w, dst_h); in zx_vl_plane_atomic_update()
339 u32 dst_w, u32 dst_h) in zx_gl_rsz_setup() argument
344 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h - 1) | RSZ_HOR(dst_w - 1)); in zx_gl_rsz_setup()
[all …]
/Linux-v5.4/drivers/gpu/drm/sti/
Dsti_hqvdp.c480 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local
520 dst_h = c->hvsrc.output_picture_size >> 16; in hqvdp_dbg_dump_cmd()
521 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd()
540 if (dst_h > src_h) in hqvdp_dbg_dump_cmd()
541 seq_printf(s, " %d/1", dst_h / src_h); in hqvdp_dbg_dump_cmd()
543 seq_printf(s, " 1/%d", src_h / dst_h); in hqvdp_dbg_dump_cmd()
735 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument
743 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling()
1028 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local
1040 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_hqvdp_atomic_check()
[all …]
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()
Dsti_gdp.c626 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local
640 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_check()
690 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check()
705 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local
749 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update()
785 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update()
787 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
Dsti_cursor.c192 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local
204 dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); in sti_cursor_atomic_check()
249 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_check()
/Linux-v5.4/drivers/gpu/drm/meson/
Dmeson_plane.c115 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local
202 dst_h = state->crtc_h; in meson_plane_atomic_update()
214 dst_h /= 2; in meson_plane_atomic_update()
218 vf_phase_step = (src_h << 20) / dst_h; in meson_plane_atomic_update()
228 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update()
245 if (src_h != dst_h) { in meson_plane_atomic_update()
298 priv->viu.osb_blend0_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
299 priv->viu.osb_blend1_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
/Linux-v5.4/drivers/gpu/drm/sun4i/
Dsun8i_vi_layer.c74 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local
91 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord()
116 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord()
151 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord()
156 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord()
171 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord()
174 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
202 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_vi_layer_update_coord()
Dsun8i_ui_layer.c80 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local
94 dst_h = drm_rect_height(&state->dst); in sun8i_ui_layer_update_coord()
100 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord()
107 dst_w, dst_h); in sun8i_ui_layer_update_coord()
152 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
162 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_ui_layer_update_coord()
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()
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()
Dsun8i_ui_scaler.h40 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
Dsun8i_vi_scaler.h74 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
/Linux-v5.4/drivers/media/platform/rockchip/rga/
Drga-hw.c166 unsigned int src_h, src_w, src_x, src_y, dst_h, dst_w, dst_x, dst_y; in rga_cmd_set_trans_info() local
184 dst_h = ctx->out.crop.height; in rga_cmd_set_trans_info()
261 if (abs(src_w - dst_h) < 16) in rga_cmd_set_trans_info()
266 scale_dst_w = dst_h; in rga_cmd_set_trans_info()
269 scale_dst_h = dst_h; in rga_cmd_set_trans_info()
309 dst_act_info.data.act_height = dst_h - 1; in rga_cmd_set_trans_info()
321 offsets = rga_get_addr_offset(&ctx->out, dst_x, dst_y, dst_w, dst_h); in rga_cmd_set_trans_info()
/Linux-v5.4/drivers/gpu/drm/rockchip/
Drockchip_drm_vop.h320 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument
327 if (act_height == dst_h) in scl_get_bili_dn_vskip()
328 return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; in scl_get_bili_dn_vskip()
330 return GET_SCL_FT_BILI_DN(act_height, dst_h); in scl_get_bili_dn_vskip()
Drockchip_drm_vop.c312 uint32_t dst_h, const struct drm_format_info *info) in scl_vop_cal_scl_fac() argument
337 scl_cal_scale2(src_h, dst_h)); in scl_vop_cal_scl_fac()
342 scl_cal_scale2(cbcr_src_h, dst_h)); in scl_vop_cal_scl_fac()
348 yrgb_ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in scl_vop_cal_scl_fac()
352 cbcr_ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in scl_vop_cal_scl_fac()
384 val = scl_vop_cal_scale(yrgb_ver_scl_mode, src_h, dst_h, in scl_vop_cal_scl_fac()
401 dst_h, false, vsu_mode, &vskiplines); in scl_vop_cal_scl_fac()
/Linux-v5.4/drivers/gpu/drm/
Ddrm_rect.c199 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale() local
200 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale()
202 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale()
/Linux-v5.4/drivers/media/platform/sti/bdisp/
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-v5.4/drivers/gpu/drm/amd/amdgpu/
Damdgpu_display.c692 u32 src_h = 1, dst_h = 1; in amdgpu_display_crtc_scaling_mode_fixup() local
719 dst_h = amdgpu_crtc->native_mode.hdisplay; in amdgpu_display_crtc_scaling_mode_fixup()
739 dst_h = crtc->mode.hdisplay - (amdgpu_crtc->h_border * 2); in amdgpu_display_crtc_scaling_mode_fixup()
748 b.full = dfixed_const(dst_h); in amdgpu_display_crtc_scaling_mode_fixup()
/Linux-v5.4/drivers/gpu/drm/exynos/
Dexynos_drm_gsc.c747 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()
Dexynos_drm_fimc.c745 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local
758 dst_h = dst->w; in fimc_set_prescaler()
761 dst_h = dst->h; in fimc_set_prescaler()
771 vfactor = fls(src_h / dst_h / 2); in fimc_set_prescaler()
785 sc->vratio = (src_h << 14) / (dst_h << vfactor); in fimc_set_prescaler()
787 sc->up_v = (dst_h >= src_h) ? true : false; in fimc_set_prescaler()
/Linux-v5.4/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c442 uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, in _dpu_plane_setup_scaler3() argument
455 mult_frac((1 << PHASE_STEP_SHIFT), src_h, dst_h); in _dpu_plane_setup_scaler3()
487 if (!(DPU_FORMAT_IS_YUV(fmt)) && (src_h == dst_h) in _dpu_plane_setup_scaler3()
492 scale_cfg->dst_height = dst_h; in _dpu_plane_setup_scaler3()

12