/drivers/media/platform/ti-vpe/ |
D | sc.c | 62 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 …]
|
D | sc.h | 200 unsigned int dst_w); 205 unsigned int dst_w, unsigned int dst_h);
|
D | vpe.c | 853 unsigned int dst_w = d_q_data->c_rect.width; in set_srcdst_params() local 898 sc_set_hs_coeffs(ctx->dev->sc, ctx->sc_coeff_h.addr, src_w, dst_w); in set_srcdst_params() 903 src_w, src_h, dst_w, dst_h); in set_srcdst_params() 2081 unsigned int dst_w = d_q_data->c_rect.width; in check_srcdst_sizes() local 2084 if (src_w == dst_w && src_h == dst_h) in check_srcdst_sizes() 2090 dst_w <= SC_MAX_PIXEL_WIDTH) in check_srcdst_sizes()
|
/drivers/media/pci/ivtv/ |
D | ivtv-yuv.c | 229 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal() 235 reg_2834 = f->dst_w; in ivtv_yuv_handle_horizontal() 251 if ((f->tru_x - f->pan_x > -1) && (f->tru_x - f->pan_x <= 40) && (f->dst_w >= 680)) in ivtv_yuv_handle_horizontal() 253 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() 256 if (f->dst_w >= f->src_w) in ivtv_yuv_handle_horizontal() 262 if (f->dst_w < f->src_w) in ivtv_yuv_handle_horizontal() 268 reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; in ivtv_yuv_handle_horizontal() 270 if (f->dst_w >= f->src_w) { in ivtv_yuv_handle_horizontal() 272 master_width = (f->src_w * 0x00200000) / (f->dst_w); in ivtv_yuv_handle_horizontal() 273 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
|
/drivers/gpu/drm/zte/ |
D | zx_plane.c | 148 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() 173 zx_writel(rsz + RSZ_VL_LUMA_HOR, rsz_step_value(src_w, dst_w)); in zx_vl_rsz_setup() 175 zx_writel(rsz + RSZ_VL_CHROMA_HOR, rsz_step_value(src_chroma_w, dst_w)); in zx_vl_rsz_setup() 195 u32 dst_x, dst_y, dst_w, dst_h; in zx_vl_plane_atomic_update() local 212 dst_w = drm_rect_width(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 …]
|
/drivers/gpu/drm/sti/ |
D | sti_hqvdp.c | 480 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local 519 dst_w = c->hvsrc.output_picture_size & 0x0000FFFF; in hqvdp_dbg_dump_cmd() 521 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd() 534 if (dst_w > src_w) in hqvdp_dbg_dump_cmd() 535 seq_printf(s, " %d/1", dst_w / src_w); in hqvdp_dbg_dump_cmd() 537 seq_printf(s, " 1/%d", src_w / dst_w); in hqvdp_dbg_dump_cmd() 735 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument 741 lfw /= max(src_w, dst_w) * mode->clock / 1000; in sti_hqvdp_check_hw_scaling() 1028 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local 1039 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_hqvdp_atomic_check() [all …]
|
D | sti_vid.c | 146 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()
|
D | sti_gdp.c | 626 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local 639 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); 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 748 dst_w = clamp_val(state->crtc_w, 0, mode->hdisplay - dst_x); in sti_gdp_atomic_update() 784 dst_w = sti_gdp_get_dst(gdp->dev, dst_w, src_w); in sti_gdp_atomic_update() 789 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_gdp_atomic_update() 794 src_w = dst_w; in sti_gdp_atomic_update()
|
D | sti_cursor.c | 192 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local 203 dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); 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()
|
/drivers/gpu/drm/meson/ |
D | meson_plane.c | 115 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local 201 dst_w = state->crtc_w; in meson_plane_atomic_update() 217 hf_phase_step = ((src_w << 18) / dst_w) << 6; in meson_plane_atomic_update() 228 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update() 267 if (src_w != dst_w) { 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()
|
/drivers/gpu/drm/sun4i/ |
D | sun8i_ui_layer.c | 80 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local 93 dst_w = drm_rect_width(&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() 151 sun8i_ui_scaler_setup(mixer, channel, src_w, src_h, dst_w, 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()
|
D | sun8i_vi_layer.c | 74 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local 90 dst_w = drm_rect_width(&state->dst); in sun8i_vi_layer_update_coord() 116 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord() 149 do_div(ability, mode->vdisplay * fps * max(src_w, dst_w)); in sun8i_vi_layer_update_coord() 170 hscale = (src_w << 16) / dst_w; in sun8i_vi_layer_update_coord() 173 sun8i_vi_scaler_setup(mixer, channel, src_w, src_h, dst_w, 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()
|
D | sun8i_ui_scaler.c | 149 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()
|
D | sun8i_vi_scaler.c | 927 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()
|
D | sun8i_ui_scaler.h | 40 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
D | sun8i_vi_scaler.h | 74 u32 src_w, u32 src_h, u32 dst_w, u32 dst_h,
|
/drivers/media/platform/rockchip/rga/ |
D | rga-hw.c | 166 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 185 dst_w = ctx->out.crop.width; in rga_cmd_set_trans_info() 259 if (dst_w == src_h) in rga_cmd_set_trans_info() 265 scale_dst_h = dst_w; in rga_cmd_set_trans_info() 268 scale_dst_w = dst_w; in rga_cmd_set_trans_info() 310 dst_act_info.data.act_width = dst_w - 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()
|
/drivers/gpu/drm/ |
D | drm_rect.c | 164 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale() local 165 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() 167 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale()
|
/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 311 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument 328 if (dst_w > 3840) { in scl_vop_cal_scl_fac() 335 scl_cal_scale2(src_w, dst_w)); in scl_vop_cal_scl_fac() 340 scl_cal_scale2(cbcr_src_w, dst_w)); in scl_vop_cal_scl_fac() 347 yrgb_hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in scl_vop_cal_scl_fac() 351 cbcr_hor_scl_mode = scl_get_scl_mode(cbcr_src_w, dst_w); in scl_vop_cal_scl_fac() 354 lb_mode = scl_vop_cal_lb_mode(dst_w, true); in scl_vop_cal_scl_fac() 359 lb_mode = scl_vop_cal_lb_mode(dst_w, false); in scl_vop_cal_scl_fac() 381 val = scl_vop_cal_scale(yrgb_hor_scl_mode, src_w, dst_w, in scl_vop_cal_scl_fac() 398 dst_w, true, 0, NULL); in scl_vop_cal_scl_fac()
|
/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()
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 747 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 754 dst_w = dst->h; in gsc_set_prescaler() 757 dst_w = dst->w; in gsc_set_prescaler() 761 ret = gsc_get_ratio_shift(ctx, src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler() 776 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() 784 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler() 786 sc->up_h = (dst_w >= src_w) ? true : false; in fimc_set_prescaler()
|
/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_plane.c | 442 uint32_t src_w, uint32_t src_h, uint32_t dst_w, uint32_t dst_h, in _dpu_plane_setup_scaler3() argument 453 mult_frac((1 << PHASE_STEP_SHIFT), src_w, dst_w); in _dpu_plane_setup_scaler3() 488 && (src_w == dst_w)) in _dpu_plane_setup_scaler3() 491 scale_cfg->dst_width = dst_w; in _dpu_plane_setup_scaler3()
|
/drivers/media/platform/mtk-mdp/ |
D | mtk_mdp_m2m.c | 847 int src_h, int dst_w, int dst_h, int rot) in mtk_mdp_check_scaler_ratio() argument 853 tmp_h = dst_w; in mtk_mdp_check_scaler_ratio() 855 tmp_w = dst_w; in mtk_mdp_check_scaler_ratio()
|