Changeset 1341 in SHVCSoftware


Ignore:
Timestamp:
22 Jul 2015, 02:55:02 (9 years ago)
Author:
seregin
Message:

port rev 4419

Location:
branches/SHM-dev/source/Lib/TLibCommon
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibCommon/TComRdCost.cpp

    r1312 r1341  
    250250  m_afpDistortFunc[DF_SADS16N] = TComRdCost::xGetSAD16N;
    251251
    252 #if AMP_SAD
    253252  m_afpDistortFunc[DF_SAD12  ] = TComRdCost::xGetSAD12;
    254253  m_afpDistortFunc[DF_SAD24  ] = TComRdCost::xGetSAD24;
     
    258257  m_afpDistortFunc[DF_SADS24 ] = TComRdCost::xGetSAD24;
    259258  m_afpDistortFunc[DF_SADS48 ] = TComRdCost::xGetSAD48;
    260 #endif
     259
    261260  m_afpDistortFunc[DF_HADS   ] = TComRdCost::xGetHADs;
    262261  m_afpDistortFunc[DF_HADS4  ] = TComRdCost::xGetHADs;
     
    319318  rcDistParam.DistFunc = m_afpDistortFunc[DF_SAD + g_aucConvertToBit[ rcDistParam.iCols ] + 1 ];
    320319
    321 #if AMP_SAD
    322320  if (rcDistParam.iCols == 12)
    323321  {
     
    332330    rcDistParam.DistFunc = m_afpDistortFunc[DF_SAD48];
    333331  }
    334 #endif
    335332
    336333  // initialize
     
    359356  {
    360357    rcDistParam.DistFunc = m_afpDistortFunc[DF_SADS + g_aucConvertToBit[ rcDistParam.iCols ] + 1 ];
    361 #if AMP_SAD
    362358    if (rcDistParam.iCols == 12)
    363359    {
     
    372368      rcDistParam.DistFunc = m_afpDistortFunc[DF_SADS48];
    373369    }
    374 #endif
    375370  }
    376371  else
     
    601596}
    602597
    603 #if AMP_SAD
    604598Distortion TComRdCost::xGetSAD12( DistParam* pcDtParam )
    605599{
     
    640634  return ( uiSum >> DISTORTION_PRECISION_ADJUSTMENT(pcDtParam->bitDepth-8) );
    641635}
    642 #endif
    643636
    644637Distortion TComRdCost::xGetSAD16N( DistParam* pcDtParam )
     
    743736}
    744737
    745 #if AMP_SAD
    746738Distortion TComRdCost::xGetSAD24( DistParam* pcDtParam )
    747739{
     
    794786  return ( uiSum >> DISTORTION_PRECISION_ADJUSTMENT(pcDtParam->bitDepth-8) );
    795787}
    796 
    797 #endif
    798788
    799789Distortion TComRdCost::xGetSAD64( DistParam* pcDtParam )
     
    888878}
    889879
    890 #if AMP_SAD
    891880Distortion TComRdCost::xGetSAD48( DistParam* pcDtParam )
    892881{
     
    963952  return ( uiSum >> DISTORTION_PRECISION_ADJUSTMENT(pcDtParam->bitDepth-8) );
    964953}
    965 #endif
    966954
    967955// --------------------------------------------------------------------------------------------------------------------
  • branches/SHM-dev/source/Lib/TLibCommon/TComRdCost.h

    r1312 r1341  
    207207  static Distortion xGetSAD16N        ( DistParam* pcDtParam );
    208208
    209 #if AMP_SAD
    210209  static Distortion xGetSAD12         ( DistParam* pcDtParam );
    211210  static Distortion xGetSAD24         ( DistParam* pcDtParam );
    212211  static Distortion xGetSAD48         ( DistParam* pcDtParam );
    213 
    214 #endif
    215212
    216213  static Distortion xGetHADs          ( DistParam* pcDtParam );
  • branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h

    r1340 r1341  
    162162// ====================================================================================================================
    163163
    164 #define AMP_SAD                                           1 ///< dedicated SAD functions for AMP
    165164#define DECODER_CHECK_SUBSTREAM_AND_SLICE_TRAILING_BYTES  1
    166165#define RDO_WITHOUT_DQP_BITS                              0 ///< Disable counting dQP bits in RDO-based mode decision
     
    453452  DF_HADS16N         = 28,     ///< 16NxM HAD with step
    454453
    455 #if AMP_SAD
    456454  DF_SAD12           = 43,
    457455  DF_SAD24           = 44,
     
    464462  DF_SSE_FRAME       = 50,     ///< Frame-based SSE
    465463  DF_TOTAL_FUNCTIONS = 64
    466 #else
    467   DF_SSE_FRAME       = 32,     ///< Frame-based SSE
    468   DF_TOTAL_FUNCTIONS = 33
    469 #endif
    470464};
    471465
Note: See TracChangeset for help on using the changeset viewer.