Ticket #327: amp_at_smallest_cu_bug.patch
File amp_at_smallest_cu_bug.patch, 1.3 KB (added by bheng, 13 years ago) |
---|
-
TLibDecoder/TDecTop.cpp
280 280 } 281 281 pps->setMinCuDQPSize( sps->getMaxCUWidth() >> ( pps->getMaxCuDQPDepth()) ); 282 282 283 for (Int i = 0; i < sps->getMaxCUDepth() - 1; i++)283 for (Int i = 0; i < sps->getMaxCUDepth() - g_uiAddCUDepth; i++) 284 284 { 285 285 sps->setAMPAcc( i, sps->getUseAMP() ); 286 286 } 287 287 288 for (Int i = sps->getMaxCUDepth() - 1; i < sps->getMaxCUDepth(); i++)288 for (Int i = sps->getMaxCUDepth() - g_uiAddCUDepth; i < sps->getMaxCUDepth(); i++) 289 289 { 290 290 sps->setAMPAcc( i, 0 ); 291 291 } -
TLibEncoder/TEncTop.cpp
536 536 } 537 537 #endif 538 538 539 for (i = 0; i < g_uiMaxCUDepth- 1; i++ )539 for (i = 0; i < g_uiMaxCUDepth-g_uiAddCUDepth; i++ ) 540 540 { 541 541 m_cSPS.setAMPAcc( i, m_useAMP ); 542 542 //m_cSPS.setAMPAcc( i, 1 ); … … 544 544 545 545 m_cSPS.setUseAMP ( m_useAMP ); 546 546 547 for (i = g_uiMaxCUDepth- 1; i < g_uiMaxCUDepth; i++ )547 for (i = g_uiMaxCUDepth-g_uiAddCUDepth; i < g_uiMaxCUDepth; i++ ) 548 548 { 549 549 m_cSPS.setAMPAcc(i, 0); 550 550 }