Changeset 166 in 3DVCSoftware for branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 1 Nov 2012, 19:22:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibCommon/TComSlice.cpp
r101 r166 114 114 { 115 115 m_aiNumRefIdx[0] = m_aiNumRefIdx[1] = m_aiNumRefIdx[2] = 0; 116 117 #if FORCE_REF_VSP 118 m_iRefIdxVsp[0] = m_iRefIdxVsp[1] = NOT_VALID; 119 #endif 116 120 117 121 initEqualRef(); … … 139 143 resetWpScalingLC(m_weightPredTableLC); 140 144 initWpAcDcParam(); 145 146 #if VSP_SLICE_HEADER 147 m_bVspFlag = false; 148 #endif 141 149 } 142 150 … … 185 193 m_numEntryPointOffsets = 0; 186 194 #endif 195 #if VSP_SLICE_HEADER 196 m_bVspFlag = false; 197 #endif 198 187 199 } 188 200 … … 407 419 } 408 420 421 #if VSP_N 422 Void TComSlice::setRefPicListMvc( TComList<TComPic*>& rcListPic, std::vector<TComPic*>& rapcInterViewRefPics, TComPic* pcVspPic ) 423 #else 409 424 Void TComSlice::setRefPicListMvc( TComList<TComPic*>& rcListPic, std::vector<TComPic*>& rapcInterViewRefPics ) 425 #endif 410 426 { 411 427 if( m_eSliceType == I_SLICE ) … … 422 438 TComPic* RefPicSetLtCurr [16]; 423 439 TComPic* RefPicSetIvCurr [16]; 440 #if VSP_N 441 TComPic* RefPicSetVspCurr [16] = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL}; //for Linux comp 442 #endif 424 443 425 444 UInt NumPocStCurr0 = 0; … … 427 446 UInt NumPocLtCurr = 0; 428 447 UInt NumPocIvCurr = 0; 448 #if VSP_N 449 UInt NumPocVspCurr = 0; 450 #endif 429 451 430 452 Int i; … … 474 496 NumPocIvCurr++; 475 497 } 498 #if VSP_N 499 if( pcVspPic ) 500 { 501 pcRefPic = pcVspPic; 502 pcRefPic->setIsLongTerm( 0 ); 503 pcRefPic->getPicYuvRec()->extendPicBorder(); 504 RefPicSetVspCurr[NumPocVspCurr] = pcRefPic; 505 NumPocVspCurr++; 506 } 507 #endif 476 508 477 509 // ref_pic_list_init … … 481 513 482 514 assert( (NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr + NumPocIvCurr) == getNumPocTotalCurrMvc() ); 515 #if VSP_N 516 Int numRpsCurrTempList0 = max( (num_ref_idx_l0_active_minus1 + 1), (NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr + NumPocIvCurr + NumPocVspCurr) ); 517 Int numRpsCurrTempList1 = max( (num_ref_idx_l1_active_minus1 + 1), (NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr + NumPocIvCurr + NumPocVspCurr) ); 518 #else 483 519 Int numRpsCurrTempList0 = max( (num_ref_idx_l0_active_minus1 + 1), (NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr + NumPocIvCurr) ); 484 520 Int numRpsCurrTempList1 = max( (num_ref_idx_l1_active_minus1 + 1), (NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr + NumPocIvCurr) ); 521 #endif 485 522 486 523 assert( numRpsCurrTempList0 <= 16 ); … … 509 546 for( cIdx = 0; cIdx <= num_ref_idx_l0_active_minus1; cIdx ++ ) 510 547 { 548 #if VSP_N 549 if( pcVspPic && cIdx == num_ref_idx_l0_active_minus1 ) 550 { 551 m_apcRefPicList[0][cIdx] = RefPicSetVspCurr[0]; 552 #if FORCE_REF_VSP 553 m_iRefIdxVsp[0] = cIdx; 554 #endif 555 } 556 else 557 m_apcRefPicList[0][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL0() ? refPicListTemp0[ m_RefPicListModification.getRefPicSetIdxL0(cIdx) ] : refPicListTemp0[cIdx]; 558 #else 511 559 m_apcRefPicList[0][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL0() ? refPicListTemp0[ m_RefPicListModification.getRefPicSetIdxL0(cIdx) ] : refPicListTemp0[cIdx]; 560 #endif 512 561 } 513 562 if( m_eSliceType == P_SLICE ) … … 520 569 for( cIdx = 0; cIdx <= num_ref_idx_l1_active_minus1; cIdx ++ ) 521 570 { 571 #if VSP_N 572 if( pcVspPic && cIdx == num_ref_idx_l1_active_minus1 ) 573 { 574 m_apcRefPicList[1][cIdx] = RefPicSetVspCurr[0]; 575 #if FORCE_REF_VSP 576 m_iRefIdxVsp[1] = cIdx; 577 #endif 578 } 579 else 580 m_apcRefPicList[1][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL1() ? refPicListTemp1[ m_RefPicListModification.getRefPicSetIdxL1(cIdx) ] : refPicListTemp1[cIdx]; 581 #else 522 582 m_apcRefPicList[1][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL1() ? refPicListTemp1[ m_RefPicListModification.getRefPicSetIdxL1(cIdx) ] : refPicListTemp1[cIdx]; 583 #endif 523 584 } 524 585 }
Note: See TracChangeset for help on using the changeset viewer.