Skip to content

Commit

Permalink
Force to set CQP rate control on dGPU
Browse files Browse the repository at this point in the history
dGPU only support CQP rate-control.
whatever framework set, force to set CQP.

Tracked-On: OAM-113684
Signed-off-by: Shaofeng Tang <[email protected]>
  • Loading branch information
Shao-Feng committed Dec 21, 2023
1 parent fb1565b commit 0da55a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions c2_components/src/mfx_c2_encoder_component.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1892,6 +1892,10 @@ void MfxC2EncoderComponent::DoUpdateMfxParam(const std::vector<C2Param*> &params
break;
}
MFX_DEBUG_TRACE_STREAM("set m_bitrateMode->value = " << m_bitrateMode->value);
if (isdGPU()) {
// dGPU only support CQP
mfx_set_RateControlMethod(MFX_RATECONTROL_CQP, &m_mfxVideoParamsConfig);
}
if(MFX_ERR_NONE != sts) {
failures->push_back(MakeC2SettingResult(C2ParamField(param), C2SettingResult::BAD_VALUE));
}
Expand Down

0 comments on commit 0da55a4

Please sign in to comment.