Skip to content

Commit

Permalink
[Encode] HuC Release for V20240509
Browse files Browse the repository at this point in the history
HuC Release for V20240509/V20240511 and enable AVC Native ROI for BRC.
  • Loading branch information
sujun96 authored and intel-mediadev committed May 22, 2024
1 parent bd956d9 commit 90a02f6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,16 @@ bool AvcVdencRoiInterface::ProcessRoiDeltaQp()
m_picParam->NumROIDistinctDeltaQp = (int8_t)numQp;

int32_t lastROIIdx = MOS_CLAMP_MIN_MAX(numQp - 1, 0, m_maxNumRoi - 1);

#if _MEDIA_RESERVED
return (!(numQp > m_maxNumNativeRoi || m_picParam->ROIDistinctDeltaQp[0] < -8 || m_picParam->ROIDistinctDeltaQp[lastROIIdx] > 7));
#else
bool bIsNativeROI = (!(numQp > m_maxNumNativeRoi || m_picParam->ROIDistinctDeltaQp[0] < -8 || m_picParam->ROIDistinctDeltaQp[lastROIIdx] > 7));
bool bIsNativeROIAllowed = !m_brcFeature->IsVdencBrcEnabled() || m_brcFeature->IsMbBrcEnabled(); // BRC native ROI require MBBRC on

// return whether is native ROI or not
return bIsNativeROI && bIsNativeROIAllowed;
#endif // _MEDIA_RESERVED
}

MOS_STATUS AvcVdencRoiInterface::SetupROI()
Expand Down

0 comments on commit 90a02f6

Please sign in to comment.