Home
last modified time | relevance | path

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

12

/OK3568_Linux_fs/kernel/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()
242 row_acc_inc = ((src_h - 1) << 16) / (dst_h - 1); in sc_config_scaler()
[all …]
H A Dsc.h202 unsigned int dst_h);
205 unsigned int dst_w, unsigned int dst_h);
/OK3568_Linux_fs/kernel/drivers/media/pci/ivtv/
H A Divtv-yuv.c390 f->tru_h, f->src_h, f->dst_h, f->src_y, f->dst_y); in ivtv_yuv_handle_vertical()
420 reg_2918 = (f->dst_h << 16) | (f->src_h + src_minor_y); in ivtv_yuv_handle_vertical()
422 reg_2918 = (f->dst_h << 16) | ((f->src_h + src_minor_y) << 1); in ivtv_yuv_handle_vertical()
425 reg_291c = (f->dst_h << 16) | ((f->src_h + src_minor_uv) >> 1); in ivtv_yuv_handle_vertical()
427 reg_291c = (f->dst_h << 16) | (f->src_h + src_minor_uv); in ivtv_yuv_handle_vertical()
429 reg_2964_base = (src_minor_y * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
430 reg_2968_base = (src_minor_uv * ((f->dst_h << 16) / f->src_h)) >> 14; in ivtv_yuv_handle_vertical()
432 if (f->dst_h / 2 >= f->src_h && !f->interlaced_y) { in ivtv_yuv_handle_vertical()
433 master_height = (f->src_h * 0x00400000) / f->dst_h; in ivtv_yuv_handle_vertical()
434 if ((f->src_h * 0x00400000) - (master_height * f->dst_h) >= f->dst_h / 2) in ivtv_yuv_handle_vertical()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/zte/
H A Dzx_plane.c148 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()
174 zx_writel(rsz + RSZ_VL_LUMA_VER, rsz_step_value(src_h, dst_h)); in zx_vl_rsz_setup()
176 zx_writel(rsz + RSZ_VL_CHROMA_VER, rsz_step_value(src_chroma_h, dst_h)); in zx_vl_rsz_setup()
195 u32 dst_x, dst_y, dst_w, dst_h; in zx_vl_plane_atomic_update() local
213 dst_h = drm_rect_height(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 …]
/OK3568_Linux_fs/external/mpp/mpp/vproc/rga/test/
H A Drga_test.cpp33 RK_U32 dst_h; member
129 cmd->dst_h = atoi(next); in rga_test_parse_options()
163 RK_U32 dst_h; in main() local
175 cmd.dst_w, cmd.dst_h, cmd.dst_fmt, in main()
181 dst_h = cmd.dst_h; in main()
183 dst_size = dst_w * dst_h * 4; in main()
251 mpp_frame_set_height(dst_frm, dst_h); in main()
253 mpp_frame_set_ver_stride(dst_frm, MPP_ALIGN(dst_h, 16)); in main()
290 mpp_frame_set_height(src_frm, dst_h / 2); in main()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/sti/
H A Dsti_hqvdp.c480 int src_w, src_h, dst_w, dst_h; in hqvdp_dbg_dump_cmd() local
520 dst_h = c->hvsrc.output_picture_size >> 16; in hqvdp_dbg_dump_cmd()
521 seq_printf(s, "\t%dx%d", dst_w, dst_h); in hqvdp_dbg_dump_cmd()
540 if (dst_h > src_h) in hqvdp_dbg_dump_cmd()
541 seq_printf(s, " %d/1", dst_h / src_h); in hqvdp_dbg_dump_cmd()
543 seq_printf(s, " 1/%d", src_h / dst_h); in hqvdp_dbg_dump_cmd()
735 int dst_w, int dst_h) in sti_hqvdp_check_hw_scaling() argument
743 inv_zy = DIV_ROUND_UP(src_h, dst_h); in sti_hqvdp_check_hw_scaling()
1028 int dst_x, dst_y, dst_w, dst_h; in sti_hqvdp_atomic_check() local
1040 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_hqvdp_atomic_check()
[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.c627 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_check() local
641 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_check()
691 dst_w, dst_h, dst_x, dst_y, in sti_gdp_atomic_check()
706 int dst_x, dst_y, dst_w, dst_h; in sti_gdp_atomic_update() local
750 dst_h = clamp_val(state->crtc_h, 0, mode->vdisplay - dst_y); in sti_gdp_atomic_update()
786 dst_h = sti_gdp_get_dst(gdp->dev, dst_h, src_h); in sti_gdp_atomic_update()
788 yds = sti_vtg_get_line_number(*mode, dst_y + dst_h - 1); in sti_gdp_atomic_update()
H A Dsti_cursor.c192 int dst_x, dst_y, dst_w, dst_h; in sti_cursor_atomic_check() local
204 dst_h = clamp_val(state->crtc_h, 0, mode->crtc_vdisplay - dst_y); 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()
/OK3568_Linux_fs/external/mpp/mpp/vproc/rga/
H A Drga.cpp294 RK_U32 dst_h = mpp_frame_get_height(dst); in rga_copy() local
313 if (dst_w == 0 || dst_h == 0) { in rga_copy()
315 dst_h = src_h; in rga_copy()
320 dst_fd, dst_w, dst_h, dst_fmt); in rga_copy()
332 request->dst.vir_h = dst_h; in rga_copy()
337 request->clip.ymax = dst_h - 1; in rga_copy()
339 request->dst.act_h = dst_h; in rga_copy()
/OK3568_Linux_fs/external/camera_engine_rkaiq/rkisp_demo/demo/
H A DdrmDsp.c86 …arm_camera_yuv420_scale_arm(char *srcbuf, char *dstbuf,int src_w, int src_h,int dst_w, int dst_h) { in arm_camera_yuv420_scale_arm() argument
100 if((src_w*100/src_h) != (dst_w*100/dst_h)){ in arm_camera_yuv420_scale_arm()
101 ratio = ((src_w*100/dst_w) >= (src_h*100/dst_h))?(src_h*100/dst_h):(src_w*100/dst_w); in arm_camera_yuv420_scale_arm()
103 cropH = ratio*dst_h/100; in arm_camera_yuv420_scale_arm()
126 pdUV = pdY + dst_w*dst_h; in arm_camera_yuv420_scale_arm()
128 dstH = dst_h; in arm_camera_yuv420_scale_arm()
H A Ddisplay.c185 int dst_h = disp->height; in drm_commit() local
198 rga_set_rect(&dst.rect, 0, 0, dst_w, dst_h, dst_w, dst_h, dst_fmt); in drm_commit()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/meson/
H A Dmeson_plane.c142 int src_w, src_h, dst_w, dst_h; in meson_plane_atomic_update() local
261 dst_h = state->crtc_h; in meson_plane_atomic_update()
273 dst_h /= 2; in meson_plane_atomic_update()
277 vf_phase_step = (src_h << 20) / dst_h; in meson_plane_atomic_update()
287 if (src_h != dst_h || src_w != dst_w) { in meson_plane_atomic_update()
304 if (src_h != dst_h) { in meson_plane_atomic_update()
357 priv->viu.osb_blend0_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
358 priv->viu.osb_blend1_size = dst_h << 16 | dst_w; in meson_plane_atomic_update()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/sun4i/
H A Dsun8i_vi_layer.c75 u32 src_w, src_h, dst_w, dst_h; in sun8i_vi_layer_update_coord() local
92 dst_h = drm_rect_height(&state->dst); in sun8i_vi_layer_update_coord()
117 outsize = SUN8I_MIXER_SIZE(dst_w, dst_h); in sun8i_vi_layer_update_coord()
152 required = src_h * 100 / dst_h; in sun8i_vi_layer_update_coord()
157 vn = (u32)ability * dst_h / 100; in sun8i_vi_layer_update_coord()
172 vscale = (src_h << 16) / dst_h; in sun8i_vi_layer_update_coord()
175 dst_h, hscale, vscale, hphase, vphase, in sun8i_vi_layer_update_coord()
203 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.c80 u32 src_w, src_h, dst_w, dst_h; in sun8i_ui_layer_update_coord() local
94 dst_h = drm_rect_height(&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()
152 dst_h, hscale, vscale, hphase, vphase); 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()
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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/external/rknpu2/examples/rknn_yolov5_demo/include/
H A Drga_func.h24 …t(rga_context *rga_ctx, int src_fd, int src_w, int src_h, uint64_t dst_phys, int dst_w, int dst_h);
26 …(rga_context *rga_ctx, void *src_virt, int src_w, int src_h, void *dst_virt, int dst_w, int dst_h);
/OK3568_Linux_fs/external/mpp/mpp/vproc/iep/test/
H A Diep_test.cpp48 RK_S32 dst_h; member
265 config_iep_img(&info->dst, cfg->dst_w, cfg->dst_h, cfg->dst_fmt, info->phy_dst0); in iep_process_thread()
378 if (cfg->dst_h <= 0) { in check_input_cmd()
379 mpp_err("non-positive input height %d\n", cfg->dst_h); in check_input_cmd()
471 cfg.dst_h = atoi(optarg); in main()
520 info.dst_size = get_image_size(cfg.dst_w, cfg.dst_h, cfg.dst_fmt); in main()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_atomic_plane.c139 unsigned int src_w, src_h, dst_w, dst_h; in intel_plane_pixel_rate() local
145 dst_h = drm_rect_height(&plane_state->uapi.dst); in intel_plane_pixel_rate()
149 dst_h = min(src_h, dst_h); in intel_plane_pixel_rate()
152 dst_w * dst_h); in intel_plane_pixel_rate()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/rockchip/
H A Drockchip_drm_self_test.c176 commit_info.dst_h = commit_info.src_h; in rockchip_drm_self_test_commit()
208 commit_info.dst_h = commit_info.src_h; in rockchip_drm_self_test_commit()
214 commit_info.dst_h = vdisplay; in rockchip_drm_self_test_commit()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/imx/dcss/
H A Ddcss-plane.c273 u32 src_w, src_h, dst_w, dst_h; in dcss_plane_atomic_update() local
299 dst_h = drm_rect_height(&dst); in dcss_plane_atomic_update()
321 dst_w, dst_h, in dcss_plane_atomic_update()
325 dst.x1, dst.y1, dst_w, dst_h); in dcss_plane_atomic_update()
/OK3568_Linux_fs/u-boot/drivers/video/drm/
H A Drockchip_vop.c536 uint32_t dst_h, uint32_t pixel_format) in scl_vop_cal_scl_fac() argument
558 scl_cal_scale2(src_h, dst_h)); in scl_vop_cal_scl_fac()
563 scl_cal_scale2(src_h, dst_h)); in scl_vop_cal_scl_fac()
569 yrgb_ver_scl_mode = scl_get_scl_mode(src_h, dst_h); in scl_vop_cal_scl_fac()
573 cbcr_ver_scl_mode = scl_get_scl_mode(cbcr_src_h, dst_h); in scl_vop_cal_scl_fac()
605 val = scl_vop_cal_scale(yrgb_ver_scl_mode, src_h, dst_h, in scl_vop_cal_scl_fac()
622 dst_h, false, vsu_mode, &vskiplines); in scl_vop_cal_scl_fac()

12