Lines Matching refs:prep

424     MppEncPrepCfg *prep = &cfg->prep;  in setup_hal_bufs()  local
427 RK_S32 aligned_w = MPP_ALIGN(prep->width, alignment_w); in setup_hal_bufs()
428 RK_S32 aligned_h = MPP_ALIGN(prep->height, alignment_h) + 16; in setup_hal_bufs()
498 MppEncPrepCfg *prep = &ctx->cfg->prep; in hal_h264e_vepu580_prepare() local
502 if (prep->change_res) { in hal_h264e_vepu580_prepare()
510 prep->change_res = 0; in hal_h264e_vepu580_prepare()
702 static MPP_RET setup_vepu580_prep(HalVepu580RegSet *regs, MppEncPrepCfg *prep, in setup_vepu580_prep() argument
706 MppFrameFormat fmt = prep->format; in setup_vepu580_prep()
718 regs->reg_base.enc_rsl.pic_wd8_m1 = MPP_ALIGN(prep->width, 16) / 8 - 1; in setup_vepu580_prep()
719 regs->reg_base.src_fill.pic_wfill = MPP_ALIGN(prep->width, 16) - prep->width; in setup_vepu580_prep()
720 regs->reg_base.enc_rsl.pic_hd8_m1 = MPP_ALIGN(prep->height, 16) / 8 - 1; in setup_vepu580_prep()
721 regs->reg_base.src_fill.pic_hfill = MPP_ALIGN(prep->height, 16) - prep->height; in setup_vepu580_prep()
733 regs->reg_base.src_fmt.src_range = (prep->range == MPP_FRAME_RANGE_JPEG) ? 1 : 0; in setup_vepu580_prep()
738 y_stride = MPP_ALIGN(prep->width, 16); in setup_vepu580_prep()
739 } else if (prep->hor_stride) { in setup_vepu580_prep()
740 y_stride = prep->hor_stride; in setup_vepu580_prep()
743 y_stride = prep->width * 4; in setup_vepu580_prep()
745 y_stride = prep->width * 3; in setup_vepu580_prep()
749 y_stride = prep->width * 2; in setup_vepu580_prep()
751 y_stride = prep->width; in setup_vepu580_prep()
769 const VepuRgb2YuvCfg *cfg_coeffs = get_rgb2yuv_cfg(prep->range, prep->color); in setup_vepu580_prep()
771 hal_h264e_dbg_flow("input color range %d colorspace %d", prep->range, prep->color); in setup_vepu580_prep()
812 regs->reg_base.src_proc.src_mirr = prep->mirroring > 0; in setup_vepu580_prep()
813 regs->reg_base.src_proc.src_rot = prep->rotation; in setup_vepu580_prep()
828 RK_S32 width_align = MPP_ALIGN(ctx->cfg->prep.width, 64); in vepu580_h264e_save_pass1_patch()
829 RK_S32 height_align = MPP_ALIGN(ctx->cfg->prep.height, 16); in vepu580_h264e_save_pass1_patch()
855 MppEncPrepCfg *prep = &ctx->cfg->prep; in vepu580_h264e_use_pass1_patch() local
856 RK_S32 hor_stride = MPP_ALIGN(prep->width, 64); in vepu580_h264e_use_pass1_patch()
857 RK_S32 ver_stride = MPP_ALIGN(prep->height, 16); in vepu580_h264e_use_pass1_patch()
1581 RK_U32 mb_w = MPP_ALIGN(ctx->cfg->prep.width, 64) / 16; in setup_vepu580_roi()
1582 RK_U32 mb_h = MPP_ALIGN(ctx->cfg->prep.height, 64) / 16; in setup_vepu580_roi()
1701 RK_U32 mb_w = MPP_ALIGN(enc_cfg->prep.width, 16) / 16; in setup_vepu580_split()
1702 RK_U32 mb_h = MPP_ALIGN(enc_cfg->prep.height, 16) / 16; in setup_vepu580_split()
2134 ret = setup_vepu580_prep(regs, &ctx->cfg->prep, task); in hal_h264e_vepu580_gen_regs()