Ignore:
Timestamp:
3 Nov 2014, 01:32:52 (10 years ago)
Author:
lg
Message:

Integration of JCT3V-J0042. The MACRO is "LGE_DDD_REMOVAL_J0042_J0030."
Integration of JCT3V-J0046. The MACRO is "LGE_DEFAULT_DV_J0046."
Integration of JCT3V-J0050. The MACRO is "LGE_CHROMA_IC_J0050_J0034."
Integration of JCT3V-J0041. The MACRO is "LGE_SIMP_DISP_AVAIL_J0041."

By Sunmi Yoo (sunmi.yoo@…) and Junghak Nam (junghak.nam@…)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.2-dev2-LGE/source/Lib/TLibDecoder/TDecSlice.cpp

    r976 r1094  
    280280      iNumSubstreamsPerTile = 1;
    281281    }
     282#if LGE_DEFAULT_DV_J0046
     283    pcSlice->setDefaultRefViewIdx( -1 );
     284    pcSlice->setDefaultRefViewIdxAvailableFlag( false );
     285
     286    Int valid = 0;
     287    Int viewIndex = 0;
     288    for( UInt uiBId = 0; uiBId < pcSlice->getViewIndex() && valid==0; uiBId++ )
     289    {
     290        UInt        uiBaseId    = uiBId;
     291        TComPic*    pcBasePic   = pcSlice->getIvPic( false, uiBaseId );
     292        for( Int iRefListId = 0; ( iRefListId < (pcSlice->isInterB()? 2:1) ) && !pcSlice->isIntra() && valid==0; iRefListId++ )
     293        {
     294            RefPicList  eRefPicListTest = RefPicList( iRefListId );
     295            Int         iNumRefPics = pcSlice->getNumRefIdx( eRefPicListTest ) ;
     296            for( Int iRefIndex = 0; iRefIndex < iNumRefPics; iRefIndex++ )
     297            {
     298                if(pcBasePic->getPOC() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getPOC()
     299                    && pcBasePic->getViewIndex() == pcSlice->getRefPic( eRefPicListTest, iRefIndex )->getViewIndex())
     300                {
     301                    valid=1;
     302                    viewIndex = uiBaseId;
     303                    break;
     304                }
     305            }
     306        }
     307    }
     308    if( valid )
     309    {
     310        pcSlice->setDefaultRefViewIdx( viewIndex );
     311        pcSlice->setDefaultRefViewIdxAvailableFlag( true );   
     312    }
     313#endif
    282314
    283315    if ( (iCUAddr == rpcPic->getPicSym()->getTComTile(rpcPic->getPicSym()->getTileIdxMap(iCUAddr))->getFirstCUAddr()) && // 1st in tile.
Note: See TracChangeset for help on using the changeset viewer.