Lines Matching refs:qp

54         RK_U32 qp = 36;  in set_filter()  local
57 RK_S32 tmp = (qp * 64) / 128 + 8; in set_filter()
64 sps->filter_level = inter_level_tbl[qp]; in set_filter()
133 RK_S32 qp = ctx->rc->qp_hdr; in set_segmentation() local
136 pps->qp_sgm[1] = MPP_CLIP3(0, 127, qp - hw_cfg->roi1_delta_qp); in set_segmentation()
139 pps->qp_sgm[2] = MPP_CLIP3(0, 127, qp - hw_cfg->roi2_delta_qp); in set_segmentation()
204 static void set_intra_pred_penalties(Vp8eHwCfg *hw_cfg, RK_U32 qp) in set_intra_pred_penalties() argument
209 tmp = qp * 2 + 8; in set_intra_pred_penalties()
215 tmp = qp * 2 + 64; in set_intra_pred_penalties()
222 hw_cfg->intra_16_favor = qp * 1024 / 128; in set_intra_pred_penalties()
436 RK_S32 qp; in set_new_frame() local
501 qp = ctx->rc->qp_hdr; in set_new_frame()
508 tmp = qp * 2 - 40; in set_new_frame()
520 hw_cfg->skip_penalty = (qp >= 100) ? (3 * qp / 4) : 0; /* Zero/nearest/near */ in set_new_frame()
522 hw_cfg->golden_penalty = MPP_MAX(0, 5 * qp / 4 - 10); in set_new_frame()
524 hw_cfg->split_penalty[0] = MPP_MIN(1023, vp8_split_penalty_tbl[qp] / 2); in set_new_frame()
526 hw_cfg->split_penalty[1] = MPP_MIN(1023, (2 * vp8_split_penalty_tbl[qp] + 40) / 4); in set_new_frame()
528 hw_cfg->split_penalty[3] = MPP_MIN(511, (8 * vp8_split_penalty_tbl[qp] + 500) / 16); in set_new_frame()
536 hw_cfg->dmv_qpel_penalty[i] = MPP_MIN(255, (y + x + 1) / 2 * weight_tbl[qp] >> 8); in set_new_frame()
540 qp = ctx->ppss.pps->qp_sgm[i]; in set_new_frame()
541 hw_cfg->y1_quant_dc[i] = ctx->qp_y1[qp].quant[0]; in set_new_frame()
542 hw_cfg->y1_quant_ac[i] = ctx->qp_y1[qp].quant[1]; in set_new_frame()
543 hw_cfg->y2_quant_dc[i] = ctx->qp_y2[qp].quant[0]; in set_new_frame()
544 hw_cfg->y2_quant_ac[i] = ctx->qp_y2[qp].quant[1]; in set_new_frame()
545 hw_cfg->ch_quant_dc[i] = ctx->qp_ch[qp].quant[0]; in set_new_frame()
546 hw_cfg->ch_quant_ac[i] = ctx->qp_ch[qp].quant[1]; in set_new_frame()
547 hw_cfg->y1_zbin_dc[i] = ctx->qp_y1[qp].zbin[0]; in set_new_frame()
548 hw_cfg->y1_zbin_ac[i] = ctx->qp_y1[qp].zbin[1]; in set_new_frame()
549 hw_cfg->y2_zbin_dc[i] = ctx->qp_y2[qp].zbin[0]; in set_new_frame()
550 hw_cfg->y2_zbin_ac[i] = ctx->qp_y2[qp].zbin[1]; in set_new_frame()
551 hw_cfg->ch_zbin_dc[i] = ctx->qp_ch[qp].zbin[0]; in set_new_frame()
552 hw_cfg->ch_zbin_ac[i] = ctx->qp_ch[qp].zbin[1]; in set_new_frame()
553 hw_cfg->y1_round_dc[i] = ctx->qp_y1[qp].round[0]; in set_new_frame()
554 hw_cfg->y1_round_ac[i] = ctx->qp_y1[qp].round[1]; in set_new_frame()
555 hw_cfg->y2_round_dc[i] = ctx->qp_y2[qp].round[0]; in set_new_frame()
556 hw_cfg->y2_round_ac[i] = ctx->qp_y2[qp].round[1]; in set_new_frame()
557 hw_cfg->ch_round_dc[i] = ctx->qp_ch[qp].round[0]; in set_new_frame()
558 hw_cfg->ch_round_ac[i] = ctx->qp_ch[qp].round[1]; in set_new_frame()
559 hw_cfg->y1_dequant_dc[i] = ctx->qp_y1[qp].dequant[0]; in set_new_frame()
560 hw_cfg->y1_dequant_ac[i] = ctx->qp_y1[qp].dequant[1]; in set_new_frame()
561 hw_cfg->y2_dequant_dc[i] = ctx->qp_y2[qp].dequant[0]; in set_new_frame()
562 hw_cfg->y2_dequant_ac[i] = ctx->qp_y2[qp].dequant[1]; in set_new_frame()
563 hw_cfg->ch_dequant_dc[i] = ctx->qp_ch[qp].dequant[0]; in set_new_frame()
564 hw_cfg->ch_dequant_ac[i] = ctx->qp_ch[qp].dequant[1]; in set_new_frame()
593 set_intra_pred_penalties(hw_cfg, qp); in set_new_frame()
1482 Vp8eQp * qp = &ctx->qp_y1[i]; in hal_vp8e_init_qp_table() local
1491 qp->quant[j] = MPP_MIN((1 << 16) / tmp, 0x3FFF); in hal_vp8e_init_qp_table()
1492 qp->zbin[j] = ((q_zbin_factors_tbl[i] * tmp) + 64) >> 7; in hal_vp8e_init_qp_table()
1493 qp->round[j] = (q_rounding_factors_tbl[i] * tmp) >> 7; in hal_vp8e_init_qp_table()
1494 qp->dequant[j] = tmp; in hal_vp8e_init_qp_table()
1497 qp = &ctx->qp_y2[i]; in hal_vp8e_init_qp_table()
1508 qp->quant[j] = MPP_MIN((1 << 16) / tmp, 0x3FFF); in hal_vp8e_init_qp_table()
1509 qp->zbin[j] = ((q_zbin_factors_tbl[i] * tmp) + 64) >> 7; in hal_vp8e_init_qp_table()
1510 qp->round[j] = (q_rounding_factors_tbl[i] * tmp) >> 7; in hal_vp8e_init_qp_table()
1511 qp->dequant[j] = tmp; in hal_vp8e_init_qp_table()
1514 qp = &ctx->qp_ch[i]; in hal_vp8e_init_qp_table()
1523 qp->quant[j] = MPP_MIN((1 << 16) / tmp, 0x3FFF); in hal_vp8e_init_qp_table()
1524 qp->zbin[j] = ((q_zbin_factors_tbl[i] * tmp) + 64) >> 7; in hal_vp8e_init_qp_table()
1525 qp->round[j] = (q_rounding_factors_tbl[i] * tmp) >> 7; in hal_vp8e_init_qp_table()
1526 qp->dequant[j] = tmp; in hal_vp8e_init_qp_table()