Changeset 100 in 3DVCSoftware for trunk/source/Lib/TLibEncoder/TEncCu.cpp


Ignore:
Timestamp:
9 Aug 2012, 12:53:16 (13 years ago)
Author:
tech
Message:

Adopted modifications:

  • disparity vector generation (A0097)
  • inter-view motion prediction modification (A0049)
  • simplification of disparity vector derivation (A0126)
  • region boundary chain coding (A0070)
  • residual skip intra (A0087)
  • VSO modification (A0033/A0093)

+ Clean ups + Bug fixes

Update of cfg files (A0033 modification 2)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibEncoder/TEncCu.cpp

    r81 r100  
    11561156      if( m_pcRdCost->getUseRenModel() )
    11571157      {
    1158 #if HHI_FIX
    11591158        UInt  uiWidth     = m_ppcOrigYuv[uiDepth]->getWidth ( );
    11601159        UInt  uiHeight    = m_ppcOrigYuv[uiDepth]->getHeight( );
     
    11621161        UInt  uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride();
    11631162        m_pcRdCost->setRenModelData( m_ppcBestCU[uiDepth], 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1164 #else
    1165         UInt  uiWidth     = m_ppcBestCU[uiDepth]->getWidth ( 0 );
    1166         UInt  uiHeight    = m_ppcBestCU[uiDepth]->getHeight( 0 );
    1167         Pel*  piSrc       = m_ppcOrigYuv[uiDepth]->getLumaAddr( 0 );
    1168         UInt  uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride();
    1169         m_pcRdCost->setRenModelData( m_ppcBestCU[uiDepth], 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1170 #endif
    11711163      }
    11721164#endif
     
    12121204
    12131205#if HHI_VSO
     1206#if HHI_VSO_SET_OPTIM
     1207#else
    12141208          if( m_pcRdCost->getUseRenModel() ) // necessary ??
    12151209          {
    1216 #if HHI_FIX
    12171210            UInt  uiWidth     = m_ppcRecoYuvBest[uhNextDepth]->getWidth   (  );
    12181211            UInt  uiHeight    = m_ppcRecoYuvBest[uhNextDepth]->getHeight  (   );
     
    12201213            UInt  uiSrcStride = m_ppcRecoYuvBest[uhNextDepth]->getStride  (   );
    12211214            m_pcRdCost->setRenModelData( pcSubBestPartCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1222 #else
    1223             UInt  uiWidth     = pcSubBestPartCU->getWidth ( 0 );
    1224             UInt  uiHeight    = pcSubBestPartCU->getHeight( 0 );
    1225             Pel*  piSrc       = m_ppcRecoYuvBest[pcSubBestPartCU->getDepth(0)]->getLumaAddr( 0 );
    1226             UInt  uiSrcStride = m_ppcRecoYuvBest[pcSubBestPartCU->getDepth(0)]->getStride();
    1227             m_pcRdCost->setRenModelData( pcSubBestPartCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1228 #endif
    1229           }
     1215          }
     1216#endif
    12301217#endif
    12311218        }
     
    13691356  if( m_pcRdCost->getUseRenModel() )
    13701357  {
    1371 #if HHI_FIX
    13721358      UInt  uiWidth     = m_ppcRecoYuvBest[uiDepth]->getWidth   ( );
    13731359      UInt  uiHeight    = m_ppcRecoYuvBest[uiDepth]->getHeight  ( );
     
    13751361      UInt  uiSrcStride = m_ppcRecoYuvBest[uiDepth]->getStride  ( );
    13761362      m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1377 #else
    1378     UInt  uiWidth     = rpcBestCU->getWidth ( 0 );
    1379     UInt  uiHeight    = rpcBestCU->getHeight( 0 );
    1380     Pel*  piSrc       = m_ppcRecoYuvBest[uiDepth]->getLumaAddr( 0 );
    1381     UInt  uiSrcStride = m_ppcRecoYuvBest[uiDepth]->getStride();
    1382     m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1383 #endif
    13841363  }
    13851364#endif
     
    17471726  if( m_pcRdCost->getUseRenModel() )
    17481727  {
    1749 #if HHI_FIX
    17501728    UInt  uiWidth     = m_ppcOrigYuv[uhDepth]->getWidth ( );
    17511729    UInt  uiHeight    = m_ppcOrigYuv[uhDepth]->getHeight( );
     
    17531731    UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();
    17541732    m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1755 #else
    1756     UInt  uiWidth     = rpcTempCU->getWidth ( 0 );
    1757     UInt  uiHeight    = rpcTempCU->getHeight( 0 );
    1758     Pel*  piSrc       = m_ppcOrigYuv[uhDepth]->getLumaAddr( );
    1759     UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();
    1760     m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1761 #endif
    17621733  }
    17631734#endif
     
    18511822          if( m_pcRdCost->getUseRenModel() )
    18521823          { //Reset
    1853 #if HHI_FIX
    18541824            UInt  uiWidth     = m_ppcOrigYuv[uhDepth]->getWidth    ();
    18551825            UInt  uiHeight    = m_ppcOrigYuv[uhDepth]->getHeight   ();
     
    18571827            UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride   ();
    18581828            m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1859 #else
    1860             UInt  uiWidth     = rpcTempCU->getWidth ( 0 );
    1861             UInt  uiHeight    = rpcTempCU->getHeight( 0 );
    1862             Pel*  piSrc       = m_ppcOrigYuv[uhDepth]->getLumaAddr( );
    1863             UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();
    1864             m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1865 #endif
    18661829          }
    18671830#endif
     
    19271890  if( m_pcRdCost->getUseRenModel() )
    19281891  {
    1929 #if HHI_FIX
    19301892    UInt  uiWidth     = m_ppcOrigYuv[uhDepth]->getWidth ( );
    19311893    UInt  uiHeight    = m_ppcOrigYuv[uhDepth]->getHeight( );
     
    19331895    UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();
    19341896    m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1935 #else
    1936     UInt  uiWidth     = rpcTempCU->getWidth ( 0 );
    1937     UInt  uiHeight    = rpcTempCU->getHeight( 0 );
    1938     Pel*  piSrc       = m_ppcOrigYuv[uhDepth]->getLumaAddr( );
    1939     UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();
    1940     m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    1941 #endif
    19421897  }
    19431898#endif 
     
    20462001  if( m_pcRdCost->getUseRenModel() )
    20472002  {
    2048 #if HHI_FIX
    20492003    UInt  uiWidth     = m_ppcOrigYuv[uiDepth]->getWidth   ();
    20502004    UInt  uiHeight    = m_ppcOrigYuv[uiDepth]->getHeight  ();
     
    20522006    UInt  uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride  ();
    20532007    m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    2054 #else
    2055     UInt  uiWidth     = rpcTempCU->getWidth ( 0 );
    2056     UInt  uiHeight    = rpcTempCU->getHeight( 0 );
    2057     Pel*  piSrc       = m_ppcOrigYuv[uiDepth]->getLumaAddr( );
    2058     UInt  uiSrcStride = m_ppcOrigYuv[uiDepth]->getStride();
    2059     m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    2060 #endif
    20612008  }
    20622009#endif
     
    25572504  if( m_pcRdCost->getUseRenModel() && !bRecursiveCall)
    25582505  {
    2559 #if HHI_FIX
    25602506    UInt  uiWidth     = m_ppcOrigYuv[uhDepth]->getWidth   ();
    25612507    UInt  uiHeight    = m_ppcOrigYuv[uhDepth]->getHeight  ();
     
    25632509    UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride  ();
    25642510    m_pcRdCost->setRenModelData( rpcTempCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    2565 #else
    2566     UInt  uiWidth     = m_ppcTempCU [uhDepth]->getWidth ( 0 );
    2567     UInt  uiHeight    = m_ppcTempCU [uhDepth]->getHeight( 0 );
    2568     Pel*  piSrc       = m_ppcOrigYuv[uhDepth]->getLumaAddr( 0 );
    2569     UInt  uiSrcStride = m_ppcOrigYuv[uhDepth]->getStride();
    2570     m_pcRdCost->setRenModelData( m_ppcTempCU[uhDepth], 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    2571 #endif
    25722511  }
    25732512#endif
     
    27172656  if( !bSplit && bRecursiveCall && m_pcRdCost->getUseRenModel() )
    27182657  {
    2719 #if HHI_FIX
    27202658    UInt  uiWidth     = m_ppcRecoYuvBest[uhDepth]->getWidth   (   );
    27212659    UInt  uiHeight    = m_ppcRecoYuvBest[uhDepth]->getHeight  (   );
     
    27232661    Pel*  piSrc       = m_ppcRecoYuvBest[uhDepth]->getLumaAddr( 0 );
    27242662    m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    2725 #else
    2726     UInt  uiWidth     = rpcBestCU->getWidth ( 0 );
    2727     UInt  uiHeight    = rpcBestCU->getHeight( 0 );
    2728     Pel*  piSrc       = m_ppcRecoYuvBest[uhDepth]->getLumaAddr( 0 );
    2729     UInt  uiSrcStride = m_ppcRecoYuvBest[uhDepth]->getStride();
    2730     m_pcRdCost->setRenModelData( rpcBestCU, 0, piSrc, uiSrcStride, uiWidth, uiHeight );
    2731 #endif
    27322663  }
    27332664#endif
Note: See TracChangeset for help on using the changeset viewer.