Lines Matching refs:cu_qp
743 WORD32 cu_qp = i4_input_QP + ps_ctxt->ps_rc_quant_ctxt->i1_qp_offset; in ihevce_compute_cu_level_QP() local
770 cu_qp = (ps_ctxt->ps_rc_quant_ctxt in ihevce_compute_cu_level_QP()
776 cu_qp = ((cu_qp * i4_activity_for_qp) + (1 << (QP_LEVEL_MOD_ACT_FACTOR - 1))) >> in ihevce_compute_cu_level_QP()
781 if(cu_qp > ps_ctxt->ps_rc_quant_ctxt->i2_max_qscale) in ihevce_compute_cu_level_QP()
782 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_max_qscale; in ihevce_compute_cu_level_QP()
783 else if(cu_qp < ps_ctxt->ps_rc_quant_ctxt->i2_min_qscale) in ihevce_compute_cu_level_QP()
784 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_min_qscale; in ihevce_compute_cu_level_QP()
786 cu_qp = ps_ctxt->ps_rc_quant_ctxt->pi4_qscale_to_qp[cu_qp]; in ihevce_compute_cu_level_QP()
788 if((1 == i4_reduce_qp) && (cu_qp > 1)) in ihevce_compute_cu_level_QP()
789 cu_qp--; in ihevce_compute_cu_level_QP()
792 if(cu_qp > i4_max_qp_allowed) in ihevce_compute_cu_level_QP()
793 cu_qp = i4_max_qp_allowed; in ihevce_compute_cu_level_QP()
794 else if(cu_qp < i4_min_qp_allowed) in ihevce_compute_cu_level_QP()
795 cu_qp = i4_min_qp_allowed; in ihevce_compute_cu_level_QP()
798 if(cu_qp > ps_ctxt->ps_rc_quant_ctxt->i2_max_qp) in ihevce_compute_cu_level_QP()
799 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_max_qp; in ihevce_compute_cu_level_QP()
800 else if(cu_qp < ps_ctxt->ps_rc_quant_ctxt->i2_min_qp) in ihevce_compute_cu_level_QP()
801 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_min_qp; in ihevce_compute_cu_level_QP()
804 ps_ctxt->i4_cu_qp = cu_qp; in ihevce_compute_cu_level_QP()
806 ihevce_compute_quant_rel_param(ps_ctxt, cu_qp); in ihevce_compute_cu_level_QP()
812 cu_qp = (ps_ctxt->ps_rc_quant_ctxt in ihevce_compute_cu_level_QP()
820 cu_qp = ((cu_qp * i4_activity_for_lamda) + (1 << (QP_LEVEL_MOD_ACT_FACTOR - 1))) >> in ihevce_compute_cu_level_QP()
824 if(cu_qp > ps_ctxt->ps_rc_quant_ctxt->i2_max_qscale) in ihevce_compute_cu_level_QP()
825 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_max_qscale; in ihevce_compute_cu_level_QP()
826 else if(cu_qp < ps_ctxt->ps_rc_quant_ctxt->i2_min_qscale) in ihevce_compute_cu_level_QP()
827 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_min_qscale; in ihevce_compute_cu_level_QP()
829 cu_qp = ps_ctxt->ps_rc_quant_ctxt->pi4_qscale_to_qp[cu_qp]; in ihevce_compute_cu_level_QP()
832 if(cu_qp > i4_max_qp_allowed) in ihevce_compute_cu_level_QP()
833 cu_qp = i4_max_qp_allowed; in ihevce_compute_cu_level_QP()
834 else if(cu_qp < i4_min_qp_allowed) in ihevce_compute_cu_level_QP()
835 cu_qp = i4_min_qp_allowed; in ihevce_compute_cu_level_QP()
838 if(cu_qp > ps_ctxt->ps_rc_quant_ctxt->i2_max_qp) in ihevce_compute_cu_level_QP()
839 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_max_qp; in ihevce_compute_cu_level_QP()
840 else if(cu_qp < ps_ctxt->ps_rc_quant_ctxt->i2_min_qp) in ihevce_compute_cu_level_QP()
841 cu_qp = ps_ctxt->ps_rc_quant_ctxt->i2_min_qp; in ihevce_compute_cu_level_QP()
844 ps_ctxt, MODULATE_LAMDA_WHEN_SPATIAL_MOD_ON ? cu_qp : ps_ctxt->i4_frame_qp); in ihevce_compute_cu_level_QP()