From a9238ee033f4625a51cc7b6e7a97ade363a25342 Mon Sep 17 00:00:00 2001 From: Sekuru_Karthik Date: Thu, 18 Oct 2018 02:10:05 +0800 Subject: [PATCH] [Encode] RoI Surface parameters appropriate usage(CL#808559) RoI Surface parameters appropriate usage Change-Id: Ic5a410f5520680e8562e46ceef394132228229a8 --- .../agnostic/common/codec/hal/codechal_vdenc_hevc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/media_driver/agnostic/common/codec/hal/codechal_vdenc_hevc.cpp b/media_driver/agnostic/common/codec/hal/codechal_vdenc_hevc.cpp index a37cfd79a9b..c6f6b38b4aa 100644 --- a/media_driver/agnostic/common/codec/hal/codechal_vdenc_hevc.cpp +++ b/media_driver/agnostic/common/codec/hal/codechal_vdenc_hevc.cpp @@ -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))