Lines Matching refs:prep

400     MppEncPrepCfg *prep = &cfg->prep;  in setup_hal_bufs()  local
403 RK_S32 aligned_w = MPP_ALIGN(prep->width, alignment_w); in setup_hal_bufs()
404 RK_S32 aligned_h = MPP_ALIGN(prep->height, alignment_h) + 16; in setup_hal_bufs()
476 MppEncPrepCfg *prep = &ctx->cfg->prep; in hal_h264e_vepu510_prepare() local
480 if (prep->change_res) { in hal_h264e_vepu510_prepare()
488 prep->change_res = 0; in hal_h264e_vepu510_prepare()
699 static MPP_RET setup_vepu510_prep(HalVepu510RegSet *regs, MppEncPrepCfg *prep) in setup_vepu510_prep() argument
703 MppFrameFormat fmt = prep->format; in setup_vepu510_prep()
715 reg_frm->common.enc_rsl.pic_wd8_m1 = MPP_ALIGN(prep->width, 16) / 8 - 1; in setup_vepu510_prep()
716 reg_frm->common.src_fill.pic_wfill = MPP_ALIGN(prep->width, 16) - prep->width; in setup_vepu510_prep()
717 reg_frm->common.enc_rsl.pic_hd8_m1 = MPP_ALIGN(prep->height, 16) / 8 - 1; in setup_vepu510_prep()
718 reg_frm->common.src_fill.pic_hfill = MPP_ALIGN(prep->height, 16) - prep->height; in setup_vepu510_prep()
731 } else if (prep->hor_stride) { in setup_vepu510_prep()
735 y_stride = prep->hor_stride * 4; in setup_vepu510_prep()
739 y_stride = prep->hor_stride * 4 * 3 / 2; in setup_vepu510_prep()
743 y_stride = prep->hor_stride * 4 * 2; in setup_vepu510_prep()
747 y_stride = prep->hor_stride * 4 * 3; in setup_vepu510_prep()
755 y_stride = prep->hor_stride; in setup_vepu510_prep()
759 y_stride = prep->width * 4; in setup_vepu510_prep()
761 y_stride = prep->width * 3; in setup_vepu510_prep()
765 y_stride = prep->width * 2; in setup_vepu510_prep()
767 y_stride = prep->width; in setup_vepu510_prep()
785 const VepuRgb2YuvCfg *cfg_coeffs = get_rgb2yuv_cfg(prep->range, prep->color); in setup_vepu510_prep()
787 hal_h264e_dbg_flow("input color range %d colorspace %d", prep->range, prep->color); in setup_vepu510_prep()
827 reg_frm->common.src_proc.src_mirr = prep->mirroring > 0; in setup_vepu510_prep()
828 reg_frm->common.src_proc.src_rot = prep->rotation; in setup_vepu510_prep()
849 RK_S32 width_align = MPP_ALIGN(ctx->cfg->prep.width, 16); in vepu510_h264e_save_pass1_patch()
850 RK_S32 height_align = MPP_ALIGN(ctx->cfg->prep.height, 16); in vepu510_h264e_save_pass1_patch()
876 MppEncPrepCfg *prep = &ctx->cfg->prep; in vepu510_h264e_use_pass1_patch() local
889 y_stride = MPP_ALIGN(prep->width, 16); in vepu510_h264e_use_pass1_patch()
1575 RK_U32 mb_w = MPP_ALIGN(enc_cfg->prep.width, 16) / 16; in setup_vepu510_split()
1576 RK_U32 mb_h = MPP_ALIGN(enc_cfg->prep.height, 16) / 16; in setup_vepu510_split()
2178 ret = setup_vepu510_prep(regs, &ctx->cfg->prep); in hal_h264e_vepu510_gen_regs()
2212 ctx->cfg->prep.width, ctx->cfg->prep.height); in hal_h264e_vepu510_gen_regs()