/Linux-v4.19/drivers/media/platform/ti-vpe/ |
D | sc.c | 65 unsigned int dst_w) in sc_set_hs_coeffs() argument 73 if (dst_w > src_w) { in sc_set_hs_coeffs() 76 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 77 dst_w <<= 1; /* first level decimation */ in sc_set_hs_coeffs() 78 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 79 dst_w <<= 1; /* second level decimation */ in sc_set_hs_coeffs() 81 if (dst_w == src_w) { in sc_set_hs_coeffs() 84 sixteenths = (dst_w << 4) / src_w; in sc_set_hs_coeffs() 152 unsigned int dst_w, unsigned int dst_h) in sc_config_scaler() argument 181 if (src_w == dst_w && src_h == dst_h) { in sc_config_scaler() [all …]
|
D | sc.h | 203 unsigned int dst_w); 208 unsigned int dst_w, unsigned int dst_h);
|
D | vpe.c | 862 unsigned int dst_w = d_q_data->c_rect.width; in set_srcdst_params() local 907 sc_set_hs_coeffs(ctx->dev->sc, ctx->sc_coeff_h.addr, src_w, dst_w); in set_srcdst_params() 912 src_w, src_h, dst_w, dst_h); in set_srcdst_params() 2080 unsigned int dst_w = d_q_data->c_rect.width; in check_srcdst_sizes() local 2083 if (src_w == dst_w && src_h == dst_h) in check_srcdst_sizes() 2089 dst_w <= SC_MAX_PIXEL_WIDTH) in check_srcdst_sizes()
|
/Linux-v4.19/drivers/media/pci/ivtv/ |
D | ivtv-yuv.c | 241 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal() 247 reg_2834 = f->dst_w; in ivtv_yuv_handle_horizontal() 263 if ((f->tru_x - f->pan_x > -1) && (f->tru_x - f->pan_x <= 40) && (f->dst_w >= 680)) in ivtv_yuv_handle_horizontal() 265 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() 268 if (f->dst_w >= f->src_w) in ivtv_yuv_handle_horizontal() 274 if (f->dst_w < f->src_w) in ivtv_yuv_handle_horizontal() 280 reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; in ivtv_yuv_handle_horizontal() 282 if (f->dst_w >= f->src_w) { in ivtv_yuv_handle_horizontal() 284 master_width = (f->src_w * 0x00200000) / (f->dst_w); in ivtv_yuv_handle_horizontal() 285 if (master_width * f->dst_w != f->src_w * 0x00200000) in ivtv_yuv_handle_horizontal() [all …]
|
D | ivtv-driver.h | 404 u32 dst_w; member
|
/Linux-v4.19/drivers/gpu/drm/zte/ |
D | zx_plane.c | 152 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h) in zx_vl_rsz_setup() argument 161 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h - 1) | RSZ_HOR(dst_w - 1)); in zx_vl_rsz_setup() 177 zx_writel(rsz + RSZ_VL_LUMA_HOR, rsz_step_value(src_w, dst_w)); in zx_vl_rsz_setup() 179 zx_writel(rsz + RSZ_VL_CHROMA_HOR, rsz_step_value(src_chroma_w, dst_w)); in zx_vl_rsz_setup() 199 u32 dst_x, dst_y, dst_w, dst_h; in zx_vl_plane_atomic_update() local 217 dst_w = drm_rect_width(dst); in zx_vl_plane_atomic_update() 240 GL_POS_X(dst_x + dst_w) | GL_POS_Y(dst_y + dst_h)); in zx_vl_plane_atomic_update() 255 zx_vl_rsz_setup(zplane, format, src_w, src_h, dst_w, dst_h); in zx_vl_plane_atomic_update() 345 u32 dst_w, u32 dst_h) in zx_gl_rsz_setup() argument 350 zx_writel(rsz + RSZ_DEST_CFG, RSZ_VER(dst_h - 1) | RSZ_HOR(dst_w - 1)); in zx_gl_rsz_setup() [all …]
|
/Linux-v4.19/drivers/gpu/drm/ |
D | drm_rect.c | 162 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale() local 163 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() 165 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale() 238 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale_relaxed() local 239 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale_relaxed() 241 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale_relaxed() 247 drm_rect_adjust_size(dst, max_dst_w - dst_w, 0); in drm_rect_calc_hscale_relaxed() 253 int max_src_w = dst_w * max_hscale; in drm_rect_calc_hscale_relaxed()
|
/Linux-v4.19/drivers/gpu/drm/sti/ |
D | sti_hqvdp.c | 474 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local 513 dst_w = c->hvsrc.output_picture_size & 0x0000FFFF; in hqvdp_dbg_dump_cmd() 515 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd() 528 if (dst_w > src_w) in hqvdp_dbg_dump_cmd() 529 seq_printf(s, " %d/1", dst_w / src_w); in hqvdp_dbg_dump_cmd() 531 seq_printf(s, " 1/%d", src_w / dst_w); in hqvdp_dbg_dump_cmd() 729 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument 735 lfw /= max(src_w, dst_w) * mode->clock / 1000; in sti_hqvdp_check_hw_scaling() 1022 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local 1033 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_hqvdp_atomic_check() [all …]
|
D | sti_vid.c | 144 int dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_vid_commit() local 151 dst_w = ALIGN(dst_w, 2); in sti_vid_commit() 162 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_vid_commit()
|
D | sti_gdp.c | 622 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local 635 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_gdp_atomic_check() 686 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check() 701 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local 744 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_gdp_atomic_update() 780 dst_w = sti_gdp_get_dst(gdp->dev, dst_w, src_w); in sti_gdp_atomic_update() 785 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_gdp_atomic_update() 790 src_w = dst_w; in sti_gdp_atomic_update()
|
D | sti_cursor.c | 190 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local 201 dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_cursor_atomic_check() 247 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_check()
|
/Linux-v4.19/drivers/gpu/drm/sun4i/ |
D | sun8i_ui_layer.c | 79 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local 88 dst_w = drm_rect_width(&state->dst); in sun8i_ui_layer_update_coord() 95 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_ui_layer_update_coord() 102 dst_w, dst_h); in sun8i_ui_layer_update_coord() 146 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_ui_layer_update_coord() 157 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_ui_layer_update_coord()
|
D | sun8i_vi_layer.c | 74 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local 84 dst_w = drm_rect_width(&state->dst); in sun8i_vi_layer_update_coord() 110 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 138 sun8i_vi_scaler_setup(mixer, channel, src_w, src_h, dst_w, in sun8i_vi_layer_update_coord() 150 DRM_DEBUG_DRIVER("Layer destination size W: %d H: %d\n", dst_w, dst_h); in sun8i_vi_layer_update_coord()
|
D | sun8i_ui_scaler.c | 134 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_ui_scaler_setup() argument 150 outsize = SUN8I_UI_SCALER_SIZE(dst_w, dst_h); in sun8i_ui_scaler_setup()
|
D | sun8i_vi_scaler.c | 914 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h, in sun8i_vi_scaler_setup() argument 927 outsize = SUN8I_VI_SCALER_SIZE(dst_w, dst_h); in sun8i_vi_scaler_setup()
|
D | sun8i_ui_scaler.h | 46 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
D | sun8i_vi_scaler.h | 54 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
/Linux-v4.19/drivers/media/platform/rockchip/rga/ |
D | rga-hw.c | 174 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 193 dst_w = ctx->out.crop.width; in rga_cmd_set_trans_info() 267 if (dst_w == src_h) in rga_cmd_set_trans_info() 273 scale_dst_h = dst_w; in rga_cmd_set_trans_info() 276 scale_dst_w = dst_w; in rga_cmd_set_trans_info() 318 dst_act_info.data.act_width = dst_w - 1; in rga_cmd_set_trans_info() 329 offsets = rga_get_addr_offset(&ctx->out, dst_x, dst_y, dst_w, dst_h); in rga_cmd_set_trans_info()
|
/Linux-v4.19/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 281 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument 303 if (dst_w > 3840) { in scl_vop_cal_scl_fac() 310 scl_cal_scale2(src_w, dst_w)); in scl_vop_cal_scl_fac() 315 scl_cal_scale2(cbcr_src_w, dst_w)); in scl_vop_cal_scl_fac() 322 yrgb_hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in scl_vop_cal_scl_fac() 326 cbcr_hor_scl_mode = scl_get_scl_mode(cbcr_src_w, dst_w); in scl_vop_cal_scl_fac() 329 lb_mode = scl_vop_cal_lb_mode(dst_w, true); in scl_vop_cal_scl_fac() 334 lb_mode = scl_vop_cal_lb_mode(dst_w, false); in scl_vop_cal_scl_fac() 356 val = scl_vop_cal_scale(yrgb_hor_scl_mode, src_w, dst_w, in scl_vop_cal_scl_fac() 373 dst_w, true, 0, NULL); in scl_vop_cal_scl_fac()
|
/Linux-v4.19/drivers/media/platform/sti/bdisp/ |
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-v4.19/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 743 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 750 dst_w = dst->h; in gsc_set_prescaler() 753 dst_w = dst->w; in gsc_set_prescaler() 757 ret = gsc_get_ratio_shift(src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler() 772 sc->main_hratio = (src_w << 16) / dst_w; in gsc_set_prescaler()
|
D | exynos_drm_fimc.c | 745 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 757 dst_w = dst->h; in fimc_set_prescaler() 760 dst_w = dst->w; in fimc_set_prescaler() 765 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) ? true : false; in fimc_set_prescaler()
|
/Linux-v4.19/drivers/gpu/drm/i915/ |
D | intel_overlay.c | 494 short dst_w; member 631 if (params->dst_w > 1) in update_scaling_factors() 633 /(params->dst_w); in update_scaling_factors() 810 iowrite32((params->dst_h << 16) | params->dst_w, ®s->DWINSZ); in intel_overlay_do_put_image() 949 tmp = ((rec->src_scan_w << 16) / rec->dst_w) >> 16; in check_overlay_scaling() 1163 params->dst_w = put_image_rec->dst_width; in intel_overlay_put_image_ioctl()
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_plane.c | 616 uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, in _dpu_plane_setup_scaler3() argument 636 mult_frac((1 << PHASE_STEP_SHIFT), src_w, dst_w); in _dpu_plane_setup_scaler3() 671 && (src_w == dst_w)) in _dpu_plane_setup_scaler3() 674 scale_cfg->dst_width = dst_w; in _dpu_plane_setup_scaler3()
|
/Linux-v4.19/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 861 int src_h, int dst_w, int dst_h, int rot) in mtk_mdp_check_scaler_ratio() argument 867 tmp_h = dst_w; in mtk_mdp_check_scaler_ratio() 869 tmp_w = dst_w; in mtk_mdp_check_scaler_ratio()
|