/linux-4.4.14/drivers/media/platform/ti-vpe/ |
D | sc.c | 61 unsigned int dst_w) in sc_set_hs_coeffs() argument 69 if (dst_w > src_w) { in sc_set_hs_coeffs() 72 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 73 dst_w <<= 1; /* first level decimation */ in sc_set_hs_coeffs() 74 if ((dst_w << 1) < src_w) in sc_set_hs_coeffs() 75 dst_w <<= 1; /* second level decimation */ in sc_set_hs_coeffs() 77 if (dst_w == src_w) { in sc_set_hs_coeffs() 80 sixteenths = (dst_w << 4) / src_w; in sc_set_hs_coeffs() 155 unsigned int dst_w, unsigned int dst_h) in sc_config_scaler() argument 184 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 | 813 unsigned int dst_w = d_q_data->c_rect.width; in set_srcdst_params() local 857 sc_set_hs_coeffs(ctx->dev->sc, ctx->sc_coeff_h.addr, src_w, dst_w); in set_srcdst_params() 862 src_w, src_h, dst_w, dst_h); in set_srcdst_params()
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtv-yuv.c | 242 f->tru_w, f->src_w, f->dst_w, f->src_x, f->dst_x); in ivtv_yuv_handle_horizontal() 248 reg_2834 = f->dst_w; in ivtv_yuv_handle_horizontal() 264 if ((f->tru_x - f->pan_x > -1) && (f->tru_x - f->pan_x <= 40) && (f->dst_w >= 680)) in ivtv_yuv_handle_horizontal() 266 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() 269 if (f->dst_w >= f->src_w) in ivtv_yuv_handle_horizontal() 275 if (f->dst_w < f->src_w) in ivtv_yuv_handle_horizontal() 281 reg_2870_offset = (f->src_x * ((f->dst_w << 21) / f->src_w)) >> 19; in ivtv_yuv_handle_horizontal() 283 if (f->dst_w >= f->src_w) { in ivtv_yuv_handle_horizontal() 285 master_width = (f->src_w * 0x00200000) / (f->dst_w); in ivtv_yuv_handle_horizontal() 286 if (master_width * f->dst_w != f->src_w * 0x00200000) in ivtv_yuv_handle_horizontal() [all …]
|
D | ivtv-driver.h | 402 u32 dst_w; member
|
/linux-4.4.14/drivers/gpu/drm/ |
D | drm_rect.c | 132 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale() local 133 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale() 135 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale() 200 int dst_w = drm_rect_width(dst); in drm_rect_calc_hscale_relaxed() local 201 int hscale = drm_calc_scale(src_w, dst_w); in drm_rect_calc_hscale_relaxed() 203 if (hscale < 0 || dst_w == 0) in drm_rect_calc_hscale_relaxed() 209 drm_rect_adjust_size(dst, max_dst_w - dst_w, 0); in drm_rect_calc_hscale_relaxed() 215 int max_src_w = dst_w * max_hscale; in drm_rect_calc_hscale_relaxed()
|
/linux-4.4.14/drivers/gpu/drm/sti/ |
D | sti_vid.c | 53 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_vid_commit() local 59 dst_w = ALIGN(dst_w, 2); in sti_vid_commit() 70 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_vid_commit()
|
D | sti_hqvdp.c | 500 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument 506 lfw /= max(src_w, dst_w) * mode->clock / 1000; in sti_hqvdp_check_hw_scaling() 790 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_hqvdp_atomic_update() local 808 dst_w, dst_h, dst_x, dst_y, in sti_hqvdp_atomic_update() 820 dst_w, dst_h)) { in sti_hqvdp_atomic_update() 860 dst_w = ALIGN(dst_w, 2); in sti_hqvdp_atomic_update() 865 (dst_w > MAX_WIDTH) || (dst_w < MIN_WIDTH) || in sti_hqvdp_atomic_update() 869 dst_w, dst_h); in sti_hqvdp_atomic_update() 875 cmd->hvsrc.output_picture_size = dst_h << 16 | dst_w; in sti_hqvdp_atomic_update() 897 scale_h = SCALE_FACTOR * dst_w / src_w; in sti_hqvdp_atomic_update()
|
D | sti_gdp.c | 395 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local 416 dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_gdp_atomic_update() 429 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_update() 477 xds = sti_vtg_get_pixel_number(*mode, dst_x + dst_w - 1); in sti_gdp_atomic_update()
|
D | sti_cursor.c | 125 int dst_w = clamp_val(state->crtc_w, 0, mode->crtc_hdisplay - dst_x); in sti_cursor_atomic_update() local 138 DRM_DEBUG_KMS("(%dx%d)@(%d,%d)\n", dst_w, dst_h, dst_x, dst_y); in sti_cursor_atomic_update()
|
/linux-4.4.14/drivers/media/platform/sti/bdisp/ |
D | bdisp-hw.c | 335 u32 src_w, src_h, dst_w, dst_h; in bdisp_hw_get_hv_inc() local 339 dst_w = ctx->dst.crop.width; in bdisp_hw_get_hv_inc() 342 if (bdisp_hw_get_inc(src_w, dst_w, h_inc) || in bdisp_hw_get_hv_inc() 346 src_w, src_h, dst_w, dst_h); in bdisp_hw_get_hv_inc()
|
/linux-4.4.14/drivers/gpu/drm/rockchip/ |
D | rockchip_drm_vop.c | 519 uint32_t src_w, uint32_t src_h, uint32_t dst_w, in scl_vop_cal_scl_fac() argument 535 if (dst_w > 3840) { in scl_vop_cal_scl_fac() 540 yrgb_hor_scl_mode = scl_get_scl_mode(src_w, dst_w); in scl_vop_cal_scl_fac() 544 cbcr_hor_scl_mode = scl_get_scl_mode(cbcr_src_w, dst_w); in scl_vop_cal_scl_fac() 547 lb_mode = scl_vop_cal_lb_mode(dst_w, true); in scl_vop_cal_scl_fac() 552 lb_mode = scl_vop_cal_lb_mode(dst_w, false); in scl_vop_cal_scl_fac() 574 val = scl_vop_cal_scale(yrgb_hor_scl_mode, src_w, dst_w, in scl_vop_cal_scl_fac() 591 dst_w, true, 0, NULL); in scl_vop_cal_scl_fac()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | intel_overlay.c | 474 short dst_w; member 605 if (params->dst_w > 1) in update_scaling_factors() 607 /(params->dst_w); in update_scaling_factors() 788 iowrite32((params->dst_h << 16) | params->dst_w, ®s->DWINSZ); in intel_overlay_do_put_image() 941 tmp = ((rec->src_scan_w << 16) / rec->dst_w) >> 16; in check_overlay_scaling() 1184 params->dst_w = put_image_rec->dst_width; in intel_overlay_put_image()
|
D | intel_display.c | 3106 int dst_x = 0, dst_y = 0, dst_w = 0, dst_h = 0; in skylake_update_primary_plane() local 3143 dst_w = drm_rect_width(&plane_state->dst); in skylake_update_primary_plane() 3175 WARN_ON(!dst_w || !dst_h); in skylake_update_primary_plane() 3181 I915_WRITE(SKL_PS_WIN_SZ(pipe, scaler_id), (dst_w << 16) | dst_h); in skylake_update_primary_plane() 4374 int src_w, int src_h, int dst_w, int dst_h) in skl_update_scaler() argument 4383 (src_h != dst_w || src_w != dst_h): in skl_update_scaler() 4384 (src_w != dst_w || src_h != dst_h); in skl_update_scaler() 4412 dst_w < SKL_MIN_DST_W || dst_h < SKL_MIN_DST_H || in skl_update_scaler() 4415 dst_w > SKL_MAX_DST_W || dst_h > SKL_MAX_DST_H) { in skl_update_scaler() 4418 intel_crtc->pipe, scaler_user, src_w, src_h, dst_w, dst_h); in skl_update_scaler() [all …]
|
/linux-4.4.14/drivers/gpu/drm/exynos/ |
D | exynos_drm_gsc.c | 920 u32 src_w, src_h, dst_w, dst_h; in gsc_set_prescaler() local 927 dst_w = dst->h; in gsc_set_prescaler() 930 dst_w = dst->w; in gsc_set_prescaler() 934 ret = gsc_get_ratio_shift(src_w, dst_w, &sc->pre_hratio); in gsc_set_prescaler() 949 sc->main_hratio = (src_w << 16) / dst_w; in gsc_set_prescaler()
|
D | exynos_drm_fimc.c | 950 u32 src_w, src_h, dst_w, dst_h; in fimc_set_prescaler() local 962 dst_w = dst->h; in fimc_set_prescaler() 965 dst_w = dst->w; in fimc_set_prescaler() 970 hfactor = fls(src_w / dst_w / 2); in fimc_set_prescaler() 988 sc->hratio = (src_w << 14) / (dst_w << hfactor); in fimc_set_prescaler() 990 sc->up_h = (dst_w >= src_w) ? true : false; in fimc_set_prescaler()
|