Searched refs:src_params (Results 1 – 3 of 3) sorted by relevance
23 static MPP_RET vdpp_params_to_reg(struct vdpp_params* src_params, struct vdpp_api_ctx *ctx) in vdpp_params_to_reg() argument26 struct zme_params *zme_params = &src_params->zme_params; in vdpp_params_to_reg()35 dst_reg->common.reg1.sw_vdpp_src_yuv_swap = src_params->src_yuv_swap; in vdpp_params_to_reg()36 dst_reg->common.reg1.sw_vdpp_dst_fmt = src_params->dst_fmt; in vdpp_params_to_reg()37 dst_reg->common.reg1.sw_vdpp_dst_yuv_swap = src_params->dst_yuv_swap; in vdpp_params_to_reg()38 dst_reg->common.reg1.sw_vdpp_dbmsr_en = src_params->dmsr_params.dmsr_enable; in vdpp_params_to_reg()65 …RK_U32 src_right_redundant = src_params->src_width % 16 == 0 ? 0 : 16 - src_params->src_width % 16; in vdpp_params_to_reg()66 … RK_U32 src_down_redundant = src_params->src_height % 8 == 0 ? 0 : 8 - src_params->src_height % 8; in vdpp_params_to_reg()67 …RK_U32 dst_right_redundant = src_params->dst_width % 16 == 0 ? 0 : 16 - src_params->dst_width % 16; in vdpp_params_to_reg()69 …dst_reg->common.reg12.sw_vdpp_src_vir_y_stride = (src_params->src_width + src_right_redundant + 3)… in vdpp_params_to_reg()[all …]
287 static void update_dci_ctl(struct vdpp2_params* src_params) in update_dci_ctl() argument291 if (MPP_FRAME_FMT_IS_YUV(src_params->src_fmt)) { in update_dci_ctl()292 dci_format = vdpp_src_yuv_cfg[src_params->src_fmt - MPP_FRAME_FMT_YUV].format; in update_dci_ctl()293 dci_alpha_swap = vdpp_src_yuv_cfg[src_params->src_fmt - MPP_FRAME_FMT_YUV].alpha_swap; in update_dci_ctl()294 dci_rbuv_swap = vdpp_src_yuv_cfg[src_params->src_fmt - MPP_FRAME_FMT_YUV].rbuv_swap; in update_dci_ctl()295 } else if (MPP_FRAME_FMT_IS_RGB(src_params->src_fmt)) { in update_dci_ctl()296 dci_format = vdpp_src_rgb_cfg[src_params->src_fmt - MPP_FRAME_FMT_RGB].format; in update_dci_ctl()297 dci_alpha_swap = vdpp_src_rgb_cfg[src_params->src_fmt - MPP_FRAME_FMT_RGB].alpha_swap; in update_dci_ctl()298 dci_rbuv_swap = vdpp_src_rgb_cfg[src_params->src_fmt - MPP_FRAME_FMT_RGB].rbuv_swap; in update_dci_ctl()300 mpp_err("warning: invalid input format %d", src_params->src_fmt); in update_dci_ctl()[all …]
479 static MPP_RET calc_scl_factor(struct zme_params* src_params, scl_info *p_scl_info, RK_U8 bypass_en) in calc_scl_factor() argument589 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[0]; in calc_scl_factor()591 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[1]; in calc_scl_factor()593 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[2]; in calc_scl_factor()595 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[3]; in calc_scl_factor()597 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[4]; in calc_scl_factor()599 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[5]; in calc_scl_factor()601 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[6]; in calc_scl_factor()603 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[7]; in calc_scl_factor()605 p_scl_info->xscl_zme_coe = src_params->zme_tap8_coeff[8]; in calc_scl_factor()[all …]