Ignore:
Timestamp:
15 Nov 2013, 01:35:16 (11 years ago)
Author:
samsung-htm
Message:

Integration of F0150: MPI candidate in depth merge mode list construction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-8.2-dev2-Samsung/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r669 r696  
    12711271        }
    12721272#endif
     1273#if SEC_MPI_ENABLING_MERGE_F0150
     1274        READ_FLAG( uiCode, "mpi_flag[i]" );             pcVPS->setMPIFlag( i, uiCode == 1 ? true : false );
     1275#endif
    12731276        READ_FLAG( uiCode, "vps_depth_modes_flag[i]" );             pcVPS->setVpsDepthModesFlag( i, uiCode == 1 ? true : false );
    12741277        //          READ_FLAG( uiCode, "lim_qt_pred_flag[i]");                  pcVPS->setLimQtPreFlag     ( i, uiCode == 1 ? true : false );
     
    18181821      READ_UVLC( uiCode, "five_minus_max_num_merge_cand");
    18191822#if H_3D_IV_MERGE
     1823#if SEC_MPI_ENABLING_MERGE_F0150
     1824      if(rpcSlice->getIsDepth())
     1825      {
     1826        Bool bMPIFlag = rpcSlice->getVPS()->getMPIFlag( rpcSlice->getLayerIdInVps() ) ;
     1827        Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;
     1828        rpcSlice->setMaxNumMergeCand(( ( bMPIFlag || ivMvPredFlag ) ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
     1829      }
     1830      else
     1831      {
     1832        Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;
     1833        rpcSlice->setMaxNumMergeCand(( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
     1834      }
     1835#else
    18201836      Bool ivMvPredFlag = rpcSlice->getVPS()->getIvMvPredFlag( rpcSlice->getLayerIdInVps() ) ;
    18211837      rpcSlice->setMaxNumMergeCand(( ivMvPredFlag ? MRG_MAX_NUM_CANDS_MEM : MRG_MAX_NUM_CANDS) - uiCode);
     1838#endif
    18221839#else
    18231840      rpcSlice->setMaxNumMergeCand(MRG_MAX_NUM_CANDS - uiCode);
Note: See TracChangeset for help on using the changeset viewer.