Ignore:
Timestamp:
5 Feb 2014, 12:28:40 (10 years ago)
Author:
rwth
Message:
  • fixed bracketing
  • removed global variable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComRdCost.cpp

    r816 r821  
    327327 
    328328#if H_3D_DBBP
    329   if( g_bTestVirtualParts )
     329  if( m_bUseMask )
    330330  {
    331331    if( eDFunc >= DF_SSE && eDFunc <= DF_SSE16N )
     332    {
    332333      rcDistParam.DistFunc = TComRdCost::xGetMaskedSSE;
     334    }
    333335    else if( eDFunc >= DF_SAD && eDFunc <= DF_SADS16N )
     336    {
    334337      rcDistParam.DistFunc = TComRdCost::xGetMaskedSAD;
     338    }
    335339    else if( eDFunc >= DF_HADS && eDFunc <= DF_HADS16N )
     340    {
    336341      rcDistParam.DistFunc = TComRdCost::xGetMaskedHADs;
     342    }
    337343    else if( eDFunc >= DF_VSD && eDFunc <= DF_VSD16N )
     344    {
    338345      rcDistParam.DistFunc = TComRdCost::xGetMaskedVSD;
     346    }
    339347    else if( eDFunc >= DF_SAD12 && eDFunc <= DF_SADS48 )
     348    {
    340349      rcDistParam.DistFunc = TComRdCost::xGetMaskedSAD;
     350    }
    341351  }
    342352#endif
     
    377387 
    378388#if H_3D_DBBP
    379   if( g_bTestVirtualParts )
     389  if( m_bUseMask )
    380390  {
    381391    rcDistParam.DistFunc = TComRdCost::xGetMaskedSAD;
     
    436446 
    437447#if H_3D_DBBP
    438   if( g_bTestVirtualParts )
    439   {
    440     if( !bHADME )
    441       rcDistParam.DistFunc = TComRdCost::xGetMaskedSAD;
    442     else
    443       rcDistParam.DistFunc = TComRdCost::xGetMaskedHADs;
     448  if( m_bUseMask )
     449  {
     450    rcDistParam.DistFunc = (bHADME)?TComRdCost::xGetMaskedHADs:TComRdCost::xGetMaskedSAD;
    444451  }
    445452#endif
     
    468475 
    469476#if H_3D_DBBP
    470   if( g_bTestVirtualParts )
    471   {
    472     if( !bHadamard )
    473       rcDP.DistFunc = TComRdCost::xGetMaskedSAD;
    474     else
    475       rcDP.DistFunc = TComRdCost::xGetMaskedHADs;
     477  if( m_bUseMask )
     478  {
     479    rcDP.DistFunc = (bHadamard)?TComRdCost::xGetMaskedHADs:TComRdCost::xGetMaskedSAD;
    476480  }
    477481#endif
     
    735739    {
    736740      if( piOrg[n] != DBBP_INVALID_SHORT )
     741      {
    737742        uiSum += abs( piOrg[n] - piCur[n] );
     743      }
    738744    }
    739745    piOrg += iStrideOrg;
     
    775781        {
    776782          if( piOrg[x] != DBBP_INVALID_SHORT )
     783          {
    777784            uiSum += xCalcHADs8x8( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep );
     785          }
    778786        }
    779787        piOrg += iOffsetOrg;
     
    791799        {
    792800          if( piOrg[x] != DBBP_INVALID_SHORT )
     801          {
    793802            uiSum += xCalcHADs16x4( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep );
     803          }
    794804        }
    795805        piOrg += iOffsetOrg;
     
    806816        {
    807817          if( piOrg[x] != DBBP_INVALID_SHORT )
     818          {
    808819            uiSum += xCalcHADs4x16( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep );
     820          }
    809821        }
    810822        piOrg += iOffsetOrg;
     
    823835        {
    824836          if( piOrg[x] != DBBP_INVALID_SHORT )
     837          {
    825838            uiSum += xCalcHADs4x4( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep );
     839          }
    826840        }
    827841        piOrg += iOffsetOrg;
     
    838852        {
    839853          if( piOrg[x] != DBBP_INVALID_SHORT )
     854          {
    840855            uiSum += xCalcHADs2x2( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep );
     856          }
    841857        }
    842858        piOrg += iOffsetOrg;
Note: See TracChangeset for help on using the changeset viewer.