Changeset 193 in 3DVCSoftware for branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 19 Nov 2012, 21:15:40 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibCommon/TComSlice.cpp
r166 r193 112 112 , m_iViewOrderIdx ( 0 ) 113 113 #endif 114 #if VSP_CFG 115 , m_uiNumVspRefPics ( 0 ) 116 #endif 114 117 { 115 118 m_aiNumRefIdx[0] = m_aiNumRefIdx[1] = m_aiNumRefIdx[2] = 0; … … 146 149 #if VSP_SLICE_HEADER 147 150 m_bVspFlag = false; 151 #if VSP_CFG 152 memset( m_uiVspRefPos[0], 0, sizeof(UInt)*MAX_NUM_REF_PICS ); 153 memset( m_uiVspRefPos[1], 0, sizeof(UInt)*MAX_NUM_REF_PICS ); 154 #else 155 m_bVspDepthDisableFlag = false; 156 #endif 148 157 #endif 149 158 } … … 195 204 #if VSP_SLICE_HEADER 196 205 m_bVspFlag = false; 206 #if VSP_CFG 207 m_uiNumVspRefPics = 0; 208 memset( m_uiVspRefPos[0], 0, sizeof(UInt)*MAX_NUM_REF_PICS ); 209 memset( m_uiVspRefPos[1], 0, sizeof(UInt)*MAX_NUM_REF_PICS ); 210 #else 211 m_bVspDepthDisableFlag = false; 212 #endif 197 213 #endif 198 214 … … 544 560 } 545 561 562 #if VSP_CFG 563 UInt cIdxTmp; 564 for( cIdx = 0, cIdxTmp = 0; cIdx <= num_ref_idx_l0_active_minus1; cIdx ++ ) 565 #else 546 566 for( cIdx = 0; cIdx <= num_ref_idx_l0_active_minus1; cIdx ++ ) 567 #endif 547 568 { 548 569 #if VSP_N 570 #if VSP_CFG 571 Int iVspRefPos = getVspRefPos(REF_PIC_LIST_0, 0); 572 iVspRefPos = ( iVspRefPos > 0 ? iVspRefPos - 1 : -1 ); 573 if( pcVspPic && iVspRefPos != -1 && cIdx == (iVspRefPos >= num_ref_idx_l0_active_minus1 ? num_ref_idx_l0_active_minus1 : iVspRefPos) ) 574 #else 549 575 if( pcVspPic && cIdx == num_ref_idx_l0_active_minus1 ) 576 #endif 550 577 { 551 578 m_apcRefPicList[0][cIdx] = RefPicSetVspCurr[0]; … … 555 582 } 556 583 else 584 { 585 #if VSP_CFG 586 m_apcRefPicList[0][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL0() ? refPicListTemp0[ m_RefPicListModification.getRefPicSetIdxL0(cIdxTmp) ] : refPicListTemp0[cIdxTmp]; 587 cIdxTmp++; 588 #else 557 589 m_apcRefPicList[0][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL0() ? refPicListTemp0[ m_RefPicListModification.getRefPicSetIdxL0(cIdx) ] : refPicListTemp0[cIdx]; 590 #endif 591 } 558 592 #else 559 593 m_apcRefPicList[0][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL0() ? refPicListTemp0[ m_RefPicListModification.getRefPicSetIdxL0(cIdx) ] : refPicListTemp0[cIdx]; … … 567 601 else 568 602 { 603 #if VSP_CFG 604 for( cIdx = 0, cIdxTmp = 0; cIdx <= num_ref_idx_l1_active_minus1; cIdx ++ ) 605 #else 569 606 for( cIdx = 0; cIdx <= num_ref_idx_l1_active_minus1; cIdx ++ ) 607 #endif 570 608 { 571 609 #if VSP_N 610 #if VSP_CFG 611 Int iVspRefPos = getVspRefPos(REF_PIC_LIST_1, 0); 612 iVspRefPos = ( iVspRefPos > 0 ? iVspRefPos - 1 : -1 ); 613 if( pcVspPic && iVspRefPos != -1 && cIdx == (iVspRefPos >= num_ref_idx_l1_active_minus1 ? num_ref_idx_l1_active_minus1 : iVspRefPos) ) 614 #else 572 615 if( pcVspPic && cIdx == num_ref_idx_l1_active_minus1 ) 616 #endif 573 617 { 574 618 m_apcRefPicList[1][cIdx] = RefPicSetVspCurr[0]; … … 578 622 } 579 623 else 624 { 625 #if VSP_CFG 626 m_apcRefPicList[1][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL1() ? refPicListTemp1[ m_RefPicListModification.getRefPicSetIdxL1(cIdxTmp) ] : refPicListTemp1[cIdxTmp]; 627 cIdxTmp++; 628 #else 580 629 m_apcRefPicList[1][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL1() ? refPicListTemp1[ m_RefPicListModification.getRefPicSetIdxL1(cIdx) ] : refPicListTemp1[cIdx]; 630 #endif 631 } 581 632 #else 582 633 m_apcRefPicList[1][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL1() ? refPicListTemp1[ m_RefPicListModification.getRefPicSetIdxL1(cIdx) ] : refPicListTemp1[cIdx]; … … 1501 1552 #if HHI_DMM_WEDGE_INTRA || HHI_DMM_PRED_TEX 1502 1553 , m_bUseDMM (false) 1554 #endif 1555 #if OL_DEPTHLIMIT_A0044 1556 , m_bDepthPartitionLimiting (false) 1557 #endif 1558 #if VSP_N 1559 , m_bVspPresentFlag (false) 1560 #if VSP_CFG 1561 , m_bVspDepthPresentFlag (false) 1562 #endif 1503 1563 #endif 1504 1564 {
Note: See TracChangeset for help on using the changeset viewer.