Opened 10 years ago

Closed 10 years ago

#1337 closed defect (fixed)

incorrect address calculation in ACT

Reported by: libin Owned by:
Priority: minor Milestone: HM+SCC-3.0
Component: HM SCC Version: SCC-2.0 (RExt-8.0)
Keywords: Cc: jct-vc@…

Description

When SCM_R0147_RGB_YUV_RD_ENC (missing one _ after SCM, otherwise, all the following words will be underlined) is defined, the reconstructed pixels will be converted into the second color space (e.g. YCgCo) and stored for future use. In the current implementation, the pixels after color conversion will be stored in pcTmpYuvPred first, and then be copied into the picture buffer.
However, the pcTmpYuvPred always has the width==64 and height==64, not the actual CU size. The width and height of pcTmpYuvPred will be used to calculate the pixel address. Thus, incorrect width and height may lead to incorrect address calculation (for boundary non-full CTU).

It is suggested to replace the following lines in TEncCu::xCopyYuv2Pic()

TComYuv* pcTmpYuvPred = m_pcPredSearch->getTmpYuvPred();
for( UInt ch = 0; ch < MAX_NUM_COMPONENT; ch++ )

m_ppcRecoYuvBest[uiSrcDepth]->copyPartToPartComponentMxN( ComponentID(ch), pcTmpYuvPred, cuCompRect);

pcTmpYuvPred->DefaultConvertPix( cuCompRect.x0, cuCompRect.y0, cuCompRect.width );
pcTmpYuvPred->copyToPicYuv( rpcPic->getPicYuvCSC(), uiCUAddr, uiAbsPartIdx, uiDepth - uiSrcDepth, uiPartIdx);

with

for( UInt ch = 0; ch < MAX_NUM_COMPONENT; ch++ )

m_ppcRecoYuvBest[uiSrcDepth]->copyPartToPartComponentMxN( ComponentID(ch), m_ppcRecoYuvTemp[uiSrcDepth], cuCompRect);

m_ppcRecoYuvTemp[uiSrcDepth]->DefaultConvertPix( cuCompRect.x0, cuCompRect.y0, cuCompRect.width );
m_ppcRecoYuvTemp[uiSrcDepth]->copyToPicYuv( rpcPic->getPicYuvCSC(), uiCUAddr, uiAbsPartIdx, uiDepth - uiSrcDepth, uiPartIdx);

Change History (2)

comment:1 Changed 10 years ago by DefaultCC Plugin

  • Cc jct-vc@… added

comment:2 Changed 10 years ago by libin

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r4157.

Note: See TracTickets for help on using tickets.

This list contains all users that will be notified about changes made to this ticket.

These roles will be notified: Reporter, Owner, Subscriber, Participant

  • Bin Li(Reporter, Participant)
  • jct-vc@…(Subscriber)
  • karl.sharman@…(Always)
  • Karsten Suehring(Always)