diff --git a/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.cpp b/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.cpp index d22efdd2be..32a6c2a5cd 100644 --- a/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.cpp +++ b/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.cpp @@ -69,6 +69,9 @@ MOS_STATUS AvcBasicFeature::Init(void *setting) m_adaptiveRoundingInterEnable = (outValue.Get()) ? true : false; m_targetUsageOverride = (uint8_t)0; + + m_brcAdaptiveRegionBoostSupported = true; + #if (_DEBUG || _RELEASE_INTERNAL) outValue = 0; @@ -91,13 +94,16 @@ MOS_STATUS AvcBasicFeature::Init(void *setting) m_perMBStreamOutEnable = (outValue.Get()) ? true : false; + outValue = 0; + ReadUserSettingForDebug( m_userSettingPtr, outValue, "AVC VDEnc TCBRC ARB Disable", MediaUserSetting::Group::Sequence); - m_brcAdaptiveRegionBoostSupported = (outValue.Get()) ? false : true; + m_brcAdaptiveRegionBoostSupported = (outValue.Get()) ? false : m_brcAdaptiveRegionBoostSupported; + #endif // _DEBUG || _RELEASE_INTERNAL return MOS_STATUS_SUCCESS; diff --git a/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.h b/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.h index eca9ebb47a..ab8d7d83af 100644 --- a/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.h +++ b/media_softlet/agnostic/common/codec/hal/enc/avc/features/encode_avc_basic_feature.h @@ -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: