Skip to content

Commit

Permalink
[Encode] RoI Surface parameters appropriate usage(CL#808559)
Browse files Browse the repository at this point in the history
RoI Surface parameters appropriate usage

Change-Id: Ic5a410f5520680e8562e46ceef394132228229a8
  • Loading branch information
Sekuru_Karthik authored and Sherry-Lin committed Oct 18, 2018
1 parent d40ce38 commit a9238ee
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,9 @@ MOS_STATUS CodechalVdencHevcState::SetupBRCROIStreamIn(PMOS_RESOURCE streamIn, P
{
//Check if the region is with in the borders
uint16_t top = (uint16_t)CodecHal_Clip3(0, (deltaQpBufHeight - 1), m_hevcPicParams->ROI[i].Top);
uint16_t bottom = (uint16_t)CodecHal_Clip3(0, (deltaQpBufHeight - 1), m_hevcPicParams->ROI[i].Bottom) + 1;
uint16_t bottom = (uint16_t)CodecHal_Clip3(0, (deltaQpBufHeight - 1), m_hevcPicParams->ROI[i].Bottom);
uint16_t left = (uint16_t)CodecHal_Clip3(0, (deltaQpBufWidth - 1), m_hevcPicParams->ROI[i].Left);
uint16_t right = (uint16_t)CodecHal_Clip3(0, (deltaQpBufWidth - 1), m_hevcPicParams->ROI[i].Right) + 1;
uint16_t right = (uint16_t)CodecHal_Clip3(0, (deltaQpBufWidth - 1), m_hevcPicParams->ROI[i].Right);

//Check if all the sides of ROI regions are aligned to 64CU
if ((top % 2 == 1) || (bottom % 2 == 1) || (left % 2 == 1) || (right % 2 == 1))
Expand Down

0 comments on commit a9238ee

Please sign in to comment.