Skip to content

Commit

Permalink
[Encode] Moved TCBRC ARB support to Feature Init
Browse files Browse the repository at this point in the history
Moved initialization into Init() funciton instead of class field
  • Loading branch information
DenWolf authored and intel-mediadev committed Jul 11, 2023
1 parent c2a594a commit 3aa6fc9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ MOS_STATUS AvcBasicFeature::Init(void *setting)
m_adaptiveRoundingInterEnable = (outValue.Get<int32_t>()) ? true : false;

m_targetUsageOverride = (uint8_t)0;

m_brcAdaptiveRegionBoostSupported = true;

#if (_DEBUG || _RELEASE_INTERNAL)

outValue = 0;
Expand All @@ -91,13 +94,16 @@ MOS_STATUS AvcBasicFeature::Init(void *setting)

m_perMBStreamOutEnable = (outValue.Get<int32_t>()) ? true : false;

outValue = 0;

ReadUserSettingForDebug(
m_userSettingPtr,
outValue,
"AVC VDEnc TCBRC ARB Disable",
MediaUserSetting::Group::Sequence);

m_brcAdaptiveRegionBoostSupported = (outValue.Get<int32_t>()) ? false : true;
m_brcAdaptiveRegionBoostSupported = (outValue.Get<int32_t>()) ? false : m_brcAdaptiveRegionBoostSupported;

#endif // _DEBUG || _RELEASE_INTERNAL

return MOS_STATUS_SUCCESS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class AvcBasicFeature : public EncodeBasicFeature,

// TCBRC related flags
bool m_forcedTCBRC = false; //!< TCBRC forced instead of LowDelayBRC
bool m_brcAdaptiveRegionBoostSupported = true; //!< Adaptive Region Boost supported flag
bool m_brcAdaptiveRegionBoostSupported = false; //!< Adaptive Region Boost supported flag
bool m_brcAdaptiveRegionBoostEnabled = false; //!< Adaptive Region Boost enabled flag

protected:
Expand Down

0 comments on commit 3aa6fc9

Please sign in to comment.