- Timestamp:
- 2 Apr 2013, 17:28:46 (12 years ago)
- Location:
- branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncGOP.cpp
r99 r107 524 524 pcSlice->setNumRefIdx(REF_PIC_LIST_1,min(m_pcCfg->getGOPEntry(iGOPid).m_numRefPicsActive,pcSlice->getRPS()->getNumberOfPictures())); 525 525 526 #if REF_LIST_BUGFIX 527 if(m_layerId > 0) 528 { 529 if( pcSlice->getNalUnitType() >= NAL_UNIT_CODED_SLICE_BLA && pcSlice->getNalUnitType() <= NAL_UNIT_CODED_SLICE_CRA ) 530 { 531 pcSlice->setNumRefIdx(REF_PIC_LIST_0, pcSlice->getNumILRRefIdx()); 532 pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumILRRefIdx()); 533 } 534 else 535 { 536 pcSlice->setNumRefIdx(REF_PIC_LIST_0, pcSlice->getNumRefIdx(REF_PIC_LIST_0)+pcSlice->getNumILRRefIdx()); 537 pcSlice->setNumRefIdx(REF_PIC_LIST_1, pcSlice->getNumRefIdx(REF_PIC_LIST_1)+pcSlice->getNumILRRefIdx()); 538 } 539 } 540 #endif 541 526 542 #if ADAPTIVE_QP_SELECTION 527 543 pcSlice->setTrQuant( m_pcEncTop->getTrQuant() ); … … 557 573 558 574 // Set reference list 575 #if REF_LIST_BUGFIX 576 if(m_layerId == 0) 577 { 578 pcSlice->setRefPicList( rcListPic); 579 } 580 #else 559 581 pcSlice->setRefPicList ( rcListPic ); 582 #endif 560 583 #if REF_IDX_FRAMEWORK 561 584 if(m_layerId > 0) … … 569 592 } 570 593 #endif 594 #if REF_LIST_BUGFIX 595 pcSlice->setRefPicListModificationSvc(); 596 pcSlice->setRefPicListSvc( rcListPic, m_pcEncTop->getIlpList() ); 597 #else 571 598 pcSlice->addRefPicList ( m_pcEncTop->getIlpList(), 1); 599 #endif 572 600 573 601 #if REF_IDX_MFM -
branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncTop.cpp
r75 r107 809 809 } 810 810 } 811 #if REF_LIST_BUGFIX 812 if (!m_layerId) 813 { 814 m_cPPS.setListsModificationPresentFlag(false); 815 } 816 else 817 { 818 m_cPPS.setListsModificationPresentFlag(true); 819 } 820 #endif 811 821 #if SVC_EXTENSION 812 822 m_cPPS.setPPSId ( m_iPPSIdCnt );
Note: See TracChangeset for help on using the changeset viewer.