Changeset 1279 in 3DVCSoftware for branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 15 Jul 2015, 14:57:32 (9 years ago)
- Location:
- branches/HTM-14.1-update-dev1
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev1
-
branches/HTM-14.1-update-dev1/source/Lib/TLibCommon/TComSlice.cpp
r1258 r1279 140 140 , m_pocMsbValRequiredFlag (false) 141 141 #endif 142 #if H_3D_IC142 #if NH_3D_IC 143 143 , m_bApplyIC (false) 144 144 , m_icSkipParseFlag (false) … … 278 278 m_iSliceChromaQpDelta[component] = 0; 279 279 } 280 #if H_3D_IV_MERGE280 #if NH_3D_IV_MERGE 281 281 m_maxNumMergeCand = MRG_MAX_NUM_CANDS_MEM; 282 282 #else … … 289 289 m_cabacInitFlag = false; 290 290 m_enableTMVPFlag = true; 291 #if H_3D_TMVP291 #if NH_3D_TMVP 292 292 m_aiAlterRefIdx[0] = -1; 293 293 m_aiAlterRefIdx[1] = -1; … … 824 824 } 825 825 } 826 #if H_3D827 #if H_3D_TMVP826 #if NH_3D 827 #if NH_3D_TMVP 828 828 Void TComSlice::generateAlterRefforTMVP() 829 829 { … … 1171 1171 m_bApplyDIS = pSrc->m_bApplyDIS; 1172 1172 #endif 1173 #if H_3D_IC1173 #if NH_3D_IC 1174 1174 m_bApplyIC = pSrc->m_bApplyIC; 1175 1175 m_icSkipParseFlag = pSrc->m_icSkipParseFlag; … … 1996 1996 m_dimensionId[i][j] = 0; 1997 1997 } 1998 #if H_3D_ARP1998 #if NH_3D_ARP 1999 1999 #endif 2000 2000 } … … 3571 3571 #endif 3572 3572 } 3573 #if H_3D3574 Void TComSlice::setDefaultRefView( 3575 { 3576 setDefaultRefViewIdx( -1);3577 setDefaultRefViewIdxAvailableFlag( false);3573 #if NH_3D_NBDV 3574 Void TComSlice::setDefaultRefView() 3575 { 3576 setDefaultRefViewIdx(-1); 3577 setDefaultRefViewIdxAvailableFlag(false); 3578 3578 3579 3579 Int valid = 0; 3580 3580 Int DefaultRefViewIdx = -1; 3581 for( UInt curViewIdx = 0; curViewIdx < getViewIndex() && valid == 0; curViewIdx++ ) 3582 { 3583 for( Int iRefListId = 0; ( iRefListId < (isInterB() ? 2 : 1) ) && !isIntra() && valid == 0; iRefListId++ ) 3584 { 3585 RefPicList eRefPicList = RefPicList( iRefListId ); 3586 Int iNumRefPics = getNumRefIdx( eRefPicList ); 3587 for( Int i = 0; i < iNumRefPics; i++ ) 3581 3582 for(UInt curViewIdx = 0; curViewIdx < getViewIndex() && valid == 0; curViewIdx++) 3583 { 3584 for(Int iRefListId = 0; (iRefListId < (isInterB() ? 2 : 1)) && !isIntra() && valid == 0; iRefListId++) 3585 { 3586 RefPicList eRefPicList = RefPicList(iRefListId); 3587 Int iNumRefPics = getNumRefIdx(eRefPicList); 3588 3589 for(Int i = 0; i < iNumRefPics; i++) 3588 3590 { 3589 if(getPOC() == getRefPic( eRefPicList, i )->getPOC() && curViewIdx == getRefPic( eRefPicList, i)->getViewIndex())3591 if(getPOC() == getRefPic(eRefPicList, i)->getPOC() && curViewIdx == getRefPic(eRefPicList, i)->getViewIndex()) 3590 3592 { 3591 3593 valid = 1; … … 3596 3598 } 3597 3599 } 3598 if( valid ) 3599 { 3600 setDefaultRefViewIdx( DefaultRefViewIdx ); 3601 setDefaultRefViewIdxAvailableFlag( true ); 3602 } 3603 } 3604 #endif 3605 3606 #if H_3D_ARP 3600 3601 if(valid) 3602 { 3603 setDefaultRefViewIdx(DefaultRefViewIdx); 3604 setDefaultRefViewIdxAvailableFlag(true); 3605 } 3606 } 3607 #endif 3608 3609 #if NH_3D_ARP 3607 3610 Void TComSlice::setARPStepNum( TComPicLists*ivPicLists ) 3608 3611 { … … 3674 3677 } 3675 3678 } 3676 } 3677 #endif 3678 3679 #if H_3D_IC 3679 if( m_nARPStepNum > 1) 3680 { 3681 for(Int i = 0; i < getNumActiveRefLayerPics(); i ++ ) 3682 { 3683 Int iLayerId = getRefPicLayerId( i ); 3684 Int iViewIdx = getVPS()->getViewIndex(iLayerId); 3685 Bool bIsDepth = ( getVPS()->getDepthId ( iLayerId ) == 1 ); 3686 if( iViewIdx<getViewIndex() && !bIsDepth ) 3687 { 3688 setBaseViewRefPicList( ivPicLists->getPicList( iLayerId ), iViewIdx ); 3689 } 3690 } 3691 } 3692 } 3693 #endif 3694 3695 #if NH_3D_IC 3680 3696 // This is an encoder only function and should be moved to TEncSlice or TEncSearch!! 3681 3697 Void TComSlice::xSetApplyIC(Bool bUseLowLatencyICEnc) … … 3766 3782 { 3767 3783 // Histogram building - luminance 3768 Int iMaxPelValue = ( 1 << g _bitDepthY);3784 Int iMaxPelValue = ( 1 << getSPS()->getBitDepth(CHANNEL_TYPE_LUMA) ); 3769 3785 Int *aiRefOrgHist = (Int *) xMalloc( Int,iMaxPelValue ); 3770 3786 Int *aiCurrHist = (Int *) xMalloc( Int,iMaxPelValue ); … … 3772 3788 memset( aiCurrHist, 0, iMaxPelValue*sizeof(Int) ); 3773 3789 3774 Int iWidth = pcCurrPicYuv->getWidth(); 3775 Int iHeight = pcCurrPicYuv->getHeight(); 3776 3777 Pel* pCurrY = pcCurrPicYuv ->getLumaAddr(); 3778 Pel* pRefOrgY = pcRefPicYuvOrg ->getLumaAddr(); 3779 Int iCurrStride = pcCurrPicYuv->getStride(); 3780 Int iRefStride = pcRefPicYuvOrg->getStride(); 3781 3790 Int iWidth = pcCurrPicYuv->getWidth(COMPONENT_Y); 3791 Int iHeight = pcCurrPicYuv->getHeight(COMPONENT_Y); 3792 Pel* pCurrY = pcCurrPicYuv->getAddr(COMPONENT_Y); 3793 Pel* pRefOrgY = pcRefPicYuvOrg->getAddr(COMPONENT_Y); 3794 Int iCurrStride = pcCurrPicYuv->getStride(COMPONENT_Y); 3795 Int iRefStride = pcRefPicYuvOrg->getStride(COMPONENT_Y); 3782 3796 for ( Int y = 0; y < iHeight; y++ ) 3783 3797 { … … 3833 3847 setupLUT = setupLUT || getViewSynthesisPredFlag( ); 3834 3848 3835 #if H_3D_NBDV_REF3849 #if NH_3D_NBDV_REF 3836 3850 setupLUT = setupLUT || getDepthRefinementFlag( ); 3837 3851 #endif 3838 3852 3839 #if H_3D_IV_MERGE3853 #if NH_3D_IV_MERGE 3840 3854 setupLUT = setupLUT || ( getIvMvPredFlag() && getIsDepth() ); 3841 3855 #endif
Note: See TracChangeset for help on using the changeset viewer.