Home
last modified time | relevance | path

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

12

/openbmc/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()
247 src_h, dst_h, row_acc_inc); in sc_config_scaler()
[all …]
H A Dsc.h202 unsigned int dst_h);
205 unsigned int dst_w, unsigned int dst_h);
/openbmc/linux/drivers/media/pci/ivtv/
H A Divtv-yuv.c440 if ((f->src_h * 0x00400000) - (master_height * f->dst_h) >= f->dst_h / 2) in ivtv_yuv_handle_vertical()
497 if (f->src_h == f->dst_h) { in ivtv_yuv_handle_vertical()
689 f->dst_h = f->src_h / 4; in ivtv_yuv_window_setup()
690 f->dst_h += f->dst_h & 1; in ivtv_yuv_window_setup()
707 f->dst_h -= osd_crop; in ivtv_yuv_window_setup()
715 f->dst_h -= osd_crop; in ivtv_yuv_window_setup()
754 f->dst_h &= ~1; in ivtv_yuv_window_setup()
761 f->dst_h &= ~1; in ivtv_yuv_window_setup()
773 f->dst_h = f->src_h / 4; in ivtv_yuv_window_setup()
774 f->dst_h += f->dst_h & 1; in ivtv_yuv_window_setup()
[all …]
/openbmc/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
542 if (dst_h > src_h) in hqvdp_dbg_dump_cmd()
737 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument
1032 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local
1053 dst_w, dst_h)) { in sti_hqvdp_atomic_check()
1068 dst_h = ALIGN(dst_h, 2); in sti_hqvdp_atomic_check()
1073 (dst_h > MAX_HEIGHT) || (dst_h < MIN_HEIGHT)) { in sti_hqvdp_atomic_check()
1076 dst_w, dst_h); in sti_hqvdp_atomic_check()
1107 dst_w, dst_h, dst_x, dst_y, in sti_hqvdp_atomic_check()
1125 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_update() local
[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()
H A Dsti_gdp.c631 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local
645 dst_h = clamp_val(new_plane_state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_check()
697 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check()
715 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local
759 dst_h = clamp_val(newstate->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update()
795 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update()
797 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
H A Dsti_cursor.c195 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local
208 dst_h = clamp_val(new_plane_state->crtc_h, 0, in sti_cursor_atomic_check()
254 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_check()
/openbmc/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()
/openbmc/linux/drivers/media/platform/rockchip/rga/
H A 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()
264 if (abs(src_w - dst_h) < 16) in rga_cmd_set_trans_info()
269 scale_dst_w = dst_h; in rga_cmd_set_trans_info()
272 scale_dst_h = dst_h; in rga_cmd_set_trans_info()
312 dst_act_info.data.act_height = dst_h - 1; in rga_cmd_set_trans_info()
324 offsets = rga_get_addr_offset(&ctx->out, dst_x, dst_y, dst_w, dst_h); in rga_cmd_set_trans_info()
/openbmc/linux/drivers/gpu/drm/sun4i/
H A Dsun8i_vi_layer.c106 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local
123 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord()
148 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord()
183 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord()
188 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord()
203 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord()
206 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
234 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.c102 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local
116 dst_h = drm_rect_height(&state->dst); in sun8i_ui_layer_update_coord()
122 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord()
144 dst_h, hscale, vscale, hphase, vphase); in sun8i_ui_layer_update_coord()
154 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,
/openbmc/linux/drivers/gpu/drm/rockchip/
H A Drockchip_drm_vop.h381 static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, in scl_get_bili_dn_vskip() argument
388 if (act_height == dst_h) in scl_get_bili_dn_vskip()
389 return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; in scl_get_bili_dn_vskip()
391 return GET_SCL_FT_BILI_DN(act_height, dst_h); in scl_get_bili_dn_vskip()
H A Drockchip_drm_vop2.c607 u32 dst_h, u32 pixel_format) in vop2_setup_scale() argument
620 if (src_h >= (4 * dst_h)) { in vop2_setup_scale()
623 } else if (src_h >= (2 * dst_h)) { in vop2_setup_scale()
629 ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in vop2_setup_scale()
655 val = vop2_scale_factor(src_h, dst_h); in vop2_setup_scale()
677 if (cbcr_src_h >= (4 * dst_h)) { in vop2_setup_scale()
680 } else if (cbcr_src_h >= (2 * dst_h)) { in vop2_setup_scale()
686 ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in vop2_setup_scale()
691 val = vop2_scale_factor(cbcr_src_h, dst_h); in vop2_setup_scale()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_rect.c209 int dst_h = drm_rect_height(dst); in drm_rect_calc_vscale() local
210 int vscale = drm_calc_scale(src_h, dst_h); in drm_rect_calc_vscale()
212 if (vscale < 0 || dst_h == 0) in drm_rect_calc_vscale()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/i915/display/
H A Dskl_scaler.c104 int src_w, int src_h, int dst_w, int dst_h, in skl_update_scaler() argument
124 if (src_w != dst_w || src_h != dst_h) in skl_update_scaler()
201 dst_w < min_dst_w || dst_h < min_dst_h || in skl_update_scaler()
203 dst_w > max_dst_w || dst_h > max_dst_h) { in skl_update_scaler()
208 dst_w, dst_h); in skl_update_scaler()
231 crtc->pipe, scaler_user, src_w, src_h, dst_w, dst_h, in skl_update_scaler()
H A Dintel_atomic_plane.c148 unsigned int src_w, src_h, dst_w, dst_h; in intel_adjusted_rate() local
153 dst_h = drm_rect_height(dst); in intel_adjusted_rate()
157 dst_h = min(src_h, dst_h); in intel_adjusted_rate()
160 dst_w * dst_h); in intel_adjusted_rate()
408 int dst_h = drm_rect_height(&plane_state->uapi.dst); in intel_plane_is_scaled() local
410 return src_w != dst_w || src_h != dst_h; in intel_plane_is_scaled()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/gpu/drm/exynos/
H A 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()
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()

12