Home
last modified time | relevance | path

Searched refs:dst_w (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/media/platform/ti/vpe/
H A Dsc.c62 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 Dsc.h200 unsigned int dst_w);
205 unsigned int dst_w, unsigned int dst_h);
/linux/drivers/media/pci/ivtv/
H A Divtv-yuv.c230 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal()
236 reg_2834 = f->dst_w; in ivtv_yuv_handle_horizontal()
252 if ((f->tru_x - f->pan_x > -1) && (f->tru_x - f->pan_x <= 40) && (f->dst_w >= 680)) in ivtv_yuv_handle_horizontal()
254 else if ((f->tru_x - f->pan_x < 0) && (f->tru_x - f->pan_x >= -20) && (f->dst_w >= 660)) in ivtv_yuv_handle_horizontal()
257 if (f->dst_w >= f->src_w) in ivtv_yuv_handle_horizontal()
263 if (f->dst_w < f->src_w) in ivtv_yuv_handle_horizontal()
269 reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; in ivtv_yuv_handle_horizontal()
271 if (f->dst_w >= f->src_w) { in ivtv_yuv_handle_horizontal()
273 master_width = (f->src_w * 0x00200000) / (f->dst_w); in ivtv_yuv_handle_horizontal()
274 if (master_width * f->dst_w != f->src_w * 0x00200000) in ivtv_yuv_handle_horizontal()
[all …]
H A Divtv-driver.h400 u32 dst_w; member
/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
521 dst_w = c->hvsrc.output_picture_size & 0x0000FFFF; in hqvdp_dbg_dump_cmd()
523 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd()
536 if (dst_w > src_w) in hqvdp_dbg_dump_cmd()
537 seq_printf(s, " %d/1", dst_w / src_w); in hqvdp_dbg_dump_cmd()
539 seq_printf(s, " 1/%d", src_w / dst_w); in hqvdp_dbg_dump_cmd()
737 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument
743 lfw /= max(src_w, dst_w) * mode->clock / 1000; in sti_hqvdp_check_hw_scaling()
1032 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local
1046 dst_w = clamp_val(new_plane_state->crtc_w, 0, mode->hdisplay - dst_x); in sti_hqvdp_atomic_check()
[all …]
H A Dsti_vid.c146 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/meson/
H A Dmeson_plane.c148 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local
266 dst_w = new_state->crtc_w; in meson_plane_atomic_update()
282 hf_phase_step = ((src_w << 18) / dst_w) << 6; in meson_plane_atomic_update()
293 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update()
332 if (src_w != dst_w) { 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_ui_layer.c53 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local
66 dst_w = drm_rect_width(&state->dst); in sun8i_ui_layer_update_coord()
73 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord()
94 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, 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_vi_layer.c57 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local
73 dst_w = drm_rect_width(&state->dst); in sun8i_vi_layer_update_coord()
99 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord()
132 do_div(ability, mode->vdisplay * fps * max(src_w, dst_w)); in sun8i_vi_layer_update_coord()
153 hscale = (src_w << 16) / dst_w; in sun8i_vi_layer_update_coord()
156 sun8i_vi_scaler_setup(mixer, channel, src_w, src_h, dst_w, 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_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/
H A Ddrm_rect.c173 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/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
167 dst_w = drm_rect_width(dst); in intel_adjusted_rate()
171 dst_w = min(src_w, dst_w); in intel_adjusted_rate()
175 dst_w * dst_h); in intel_adjusted_rate()
385 int dst_w = drm_rect_width(&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()
H A Dintel_sprite.c578 unsigned int src_w, dst_w, pixel_rate; in ivb_sprite_min_cdclk() local
591 dst_w = drm_rect_width(&plane_state->uapi.dst); in ivb_sprite_min_cdclk()
593 if (src_w != dst_w) in ivb_sprite_min_cdclk()
599 dst_w = min(src_w, dst_w); in ivb_sprite_min_cdclk()
602 den * dst_w); in ivb_sprite_min_cdclk()
/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
305 dst_w = drm_rect_width(&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
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 Drockchip_drm_vop.c382 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument
399 if (dst_w > 4096) { in scl_vop_cal_scl_fac()
406 scl_cal_scale2(src_w, dst_w)); in scl_vop_cal_scl_fac()
411 scl_cal_scale2(cbcr_src_w, dst_w)); in scl_vop_cal_scl_fac()
418 yrgb_hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in scl_vop_cal_scl_fac()
422 cbcr_hor_scl_mode = scl_get_scl_mode(cbcr_src_w, dst_w); in scl_vop_cal_scl_fac()
425 lb_mode = scl_vop_cal_lb_mode(dst_w, true); in scl_vop_cal_scl_fac()
430 lb_mode = scl_vop_cal_lb_mode(dst_w, false); in scl_vop_cal_scl_fac()
452 val = scl_vop_cal_scale(yrgb_hor_scl_mode, src_w, dst_w, in scl_vop_cal_scl_fac()
469 dst_w, true, 0, NULL); in scl_vop_cal_scl_fac()
H A Drockchip_drm_vop2.c764 u32 src_w, u32 src_h, u32 dst_w, in vop2_setup_scale() argument
786 hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in vop2_setup_scale()
804 if ((hor_scl_mode == SCALE_DOWN) && (dst_w & 0x1)) { in vop2_setup_scale()
806 win->data->name, dst_w); in vop2_setup_scale()
807 dst_w++; in vop2_setup_scale()
811 val = vop2_scale_factor(src_w, dst_w); in vop2_setup_scale()
843 hor_scl_mode = scl_get_scl_mode(cbcr_src_w, dst_w); in vop2_setup_scale()
846 val = vop2_scale_factor(cbcr_src_w, dst_w); in vop2_setup_scale()
/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
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 Dexynos_drm_fimc.c744 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/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
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()
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_plane.c426 uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, in _dpu_plane_setup_scaler3() argument
444 mult_frac((1 << PHASE_STEP_SHIFT), src_w, dst_w); in _dpu_plane_setup_scaler3()
481 && (src_w == dst_w)) in _dpu_plane_setup_scaler3()
484 scale_cfg->dst_width = dst_w; in _dpu_plane_setup_scaler3()

12