Changeset 85 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib/TLibCommon


Ignore:
Timestamp:
13 Mar 2013, 19:04:25 (12 years ago)
Author:
interdigital
Message:

add RAP_MFM_INIT to initialize MFM when BL picture is RAP picture

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.cpp

    r75 r85  
    741741#endif
    742742
     743#if RAP_MFM_INIT
     744Void TComPic::initUpsampledMvField()
     745{
     746  UInt uiNumPartitions   = 1<<(g_uiMaxCUDepth<<1);
     747
     748  for(UInt cuIdx = 0; cuIdx < getPicSym()->getNumberOfCUsInFrame(); cuIdx++)  //each LCU
     749  {
     750    TComDataCU* pcCUDes = getCU(cuIdx);
     751    TComMvField zeroMvField;
     752    for(UInt list = 0; list < 2; list++)  //each reference list
     753    {
     754      for(UInt i = 0; i < uiNumPartitions; i++ ) 
     755      {
     756        pcCUDes->getCUMvField(REF_PIC_LIST_0)->setMvField(zeroMvField, i);
     757        pcCUDes->getCUMvField(REF_PIC_LIST_1)->setMvField(zeroMvField, i);
     758        pcCUDes->setPredictionMode(i, MODE_INTRA);
     759        pcCUDes->setPartitionSize(i, SIZE_2Nx2N);
     760      }
     761    }
     762  }
     763  return;
     764}
     765#endif
    743766#endif
    744767
Note: See TracChangeset for help on using the changeset viewer.