Ticket #7: earlyskipfix.patch

File earlyskipfix.patch, 1.3 KB (added by wjhan, 14 years ago)

Patch file to fix the problem

  • source//Lib/TLibEncoder/TEncCu.cpp

    diff -Nur 04_TMuC-HHI-RIM2/source//Lib/TLibEncoder/TEncCu.cpp 04_TMuC-HHI-RIM2_earlyskipfix/source//Lib/TLibEncoder/TEncCu.cpp
    old new  
    373373      // SKIP
    374374      pcTempCU = rpcTempCU;
    375375
    376 #if HHI_MRG
    377       if( pcPic->getSlice()->getSPS()->getUseMRG() )
    378       {
    379         xCheckRDCostMerge( rpcBestCU, rpcTempCU );            rpcTempCU->initEstData();
    380       }
    381       else
    382       {
    383         xCheckRDCostAMVPSkip ( rpcBestCU, rpcTempCU );        rpcTempCU->initEstData();
    384       }
    385 #else
    386       xCheckRDCostAMVPSkip ( rpcBestCU, rpcTempCU );        rpcTempCU->initEstData();
     376#if HHI_MRG
     377      if( pcPic->getSlice()->getSPS()->getUseMRG() )
     378      {
     379        xCheckRDCostMerge( rpcBestCU, rpcTempCU );
     380        rpcTempCU->initEstData();
     381      }
     382      else
     383      {
     384        xCheckRDCostAMVPSkip ( rpcBestCU, rpcTempCU );
     385        fRD_Skip = pcTempCU->getTotalCost();
     386        rpcTempCU->initEstData();
     387      }
     388#else
     389      xCheckRDCostAMVPSkip ( rpcBestCU, rpcTempCU );
     390      fRD_Skip = pcTempCU->getTotalCost();
     391      rpcTempCU->initEstData();
    387392#endif
    388393
    389394#if HHI_MRG