Ticket #60: fix60.patch

File fix60.patch, 2.8 KB (added by lili90, 10 years ago)

fix ticket #60 patch

  • App/TAppEncoder/TAppEncTop.cpp

     
    702702  for(Int layer=0; layer<m_numberOfLayers; layer++)
    703703  {
    704704#if KWU_RC_MADPRED_E0227
     705#if FIX60
     706    m_acTEncTopList[layer]->init( this, isFieldCoding );
     707#else
    705708    m_acTEncTopList[layer]->init( isFieldCoding, this );
     709#endif
    706710#else
    707711    m_acTEncTopList[layer]->init( isFieldCoding );
    708712#endif
  • Lib/TLibCommon/TypeDef.h

     
    5353   make HEVC_EXT=2  -> H_MV=1 H_3D=1   --> full 3D
    5454*/
    5555
     56#define FIX60                1   //< fix ticket #60
     57
    5658#ifndef HEVC_EXT
    5759#define HEVC_EXT                    2
    5860#endif
  • Lib/TLibEncoder/TEncCu.cpp

     
    20362036                uhDepth );
    20372037
    20382038              xCheckDQP( rpcTempCU );
     2039
     2040#if FIX60
     2041              if ( rpcTempCU->getSDCSegmentDCOffset( 0, 0 ) == 0 )
     2042              {
     2043                rpcTempCU->getTotalCost() = MAX_DOUBLE;
     2044              }
     2045#endif
     2046
    20392047              xCheckBestMode( rpcBestCU, rpcTempCU, uhDepth );
    20402048            }
    20412049#else
     
    23172325        uhDepth );
    23182326
    23192327      xCheckDQP( rpcTempCU );
     2328
     2329#if FIX60
     2330      if ( rpcTempCU->getSDCSegmentDCOffset( 0, 0 ) == 0 )
     2331      {
     2332        rpcTempCU->getTotalCost() = MAX_DOUBLE;
     2333      }
     2334#endif
     2335
    23202336      xCheckBestMode(rpcBestCU, rpcTempCU, uhDepth);
    23212337    }
    23222338#else
  • Lib/TLibEncoder/TEncRateCtrl.cpp

     
    940940  Int   LCUIdx    = getLCUCoded();
    941941  Double bpp      = -1.0;
    942942  Int avgBits     = 0;
     943
     944#if !FIX60
    943945#if !M0036_RC_IMPROVEMENT
    944946  Double totalMAD = -1.0;
    945947  Double MAD      = -1.0;
    946948#endif
     949#endif
    947950
    948951  Double totalMAD = -1.0;
    949952  Double MAD      = -1.0;
  • Lib/TLibEncoder/TEncSlice.cpp

     
    10731073          {
    10741074#endif
    10751075          bpp = m_pcRateCtrl->getRCPic()->getLCUTargetBpp(pcSlice->getSliceType());
     1076
     1077#if FIX60 && KWU_RC_MADPRED_E0227
     1078          }
     1079#endif
    10761080          if ( rpcPic->getSlice( 0 )->getSliceType() == I_SLICE)
    10771081          {
    10781082            estLambda = m_pcRateCtrl->getRCPic()->getLCUEstLambdaAndQP(bpp, pcSlice->getSliceQp(), &estQP);