Changeset 1341 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 22 Jul 2015, 02:55:02 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComRdCost.cpp
r1312 r1341 250 250 m_afpDistortFunc[DF_SADS16N] = TComRdCost::xGetSAD16N; 251 251 252 #if AMP_SAD253 252 m_afpDistortFunc[DF_SAD12 ] = TComRdCost::xGetSAD12; 254 253 m_afpDistortFunc[DF_SAD24 ] = TComRdCost::xGetSAD24; … … 258 257 m_afpDistortFunc[DF_SADS24 ] = TComRdCost::xGetSAD24; 259 258 m_afpDistortFunc[DF_SADS48 ] = TComRdCost::xGetSAD48; 260 #endif 259 261 260 m_afpDistortFunc[DF_HADS ] = TComRdCost::xGetHADs; 262 261 m_afpDistortFunc[DF_HADS4 ] = TComRdCost::xGetHADs; … … 319 318 rcDistParam.DistFunc = m_afpDistortFunc[DF_SAD + g_aucConvertToBit[ rcDistParam.iCols ] + 1 ]; 320 319 321 #if AMP_SAD322 320 if (rcDistParam.iCols == 12) 323 321 { … … 332 330 rcDistParam.DistFunc = m_afpDistortFunc[DF_SAD48]; 333 331 } 334 #endif335 332 336 333 // initialize … … 359 356 { 360 357 rcDistParam.DistFunc = m_afpDistortFunc[DF_SADS + g_aucConvertToBit[ rcDistParam.iCols ] + 1 ]; 361 #if AMP_SAD362 358 if (rcDistParam.iCols == 12) 363 359 { … … 372 368 rcDistParam.DistFunc = m_afpDistortFunc[DF_SADS48]; 373 369 } 374 #endif375 370 } 376 371 else … … 601 596 } 602 597 603 #if AMP_SAD604 598 Distortion TComRdCost::xGetSAD12( DistParam* pcDtParam ) 605 599 { … … 640 634 return ( uiSum >> DISTORTION_PRECISION_ADJUSTMENT(pcDtParam->bitDepth-8) ); 641 635 } 642 #endif643 636 644 637 Distortion TComRdCost::xGetSAD16N( DistParam* pcDtParam ) … … 743 736 } 744 737 745 #if AMP_SAD746 738 Distortion TComRdCost::xGetSAD24( DistParam* pcDtParam ) 747 739 { … … 794 786 return ( uiSum >> DISTORTION_PRECISION_ADJUSTMENT(pcDtParam->bitDepth-8) ); 795 787 } 796 797 #endif798 788 799 789 Distortion TComRdCost::xGetSAD64( DistParam* pcDtParam ) … … 888 878 } 889 879 890 #if AMP_SAD891 880 Distortion TComRdCost::xGetSAD48( DistParam* pcDtParam ) 892 881 { … … 963 952 return ( uiSum >> DISTORTION_PRECISION_ADJUSTMENT(pcDtParam->bitDepth-8) ); 964 953 } 965 #endif966 954 967 955 // -------------------------------------------------------------------------------------------------------------------- -
branches/SHM-dev/source/Lib/TLibCommon/TComRdCost.h
r1312 r1341 207 207 static Distortion xGetSAD16N ( DistParam* pcDtParam ); 208 208 209 #if AMP_SAD210 209 static Distortion xGetSAD12 ( DistParam* pcDtParam ); 211 210 static Distortion xGetSAD24 ( DistParam* pcDtParam ); 212 211 static Distortion xGetSAD48 ( DistParam* pcDtParam ); 213 214 #endif215 212 216 213 static Distortion xGetHADs ( DistParam* pcDtParam ); -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1340 r1341 162 162 // ==================================================================================================================== 163 163 164 #define AMP_SAD 1 ///< dedicated SAD functions for AMP165 164 #define DECODER_CHECK_SUBSTREAM_AND_SLICE_TRAILING_BYTES 1 166 165 #define RDO_WITHOUT_DQP_BITS 0 ///< Disable counting dQP bits in RDO-based mode decision … … 453 452 DF_HADS16N = 28, ///< 16NxM HAD with step 454 453 455 #if AMP_SAD456 454 DF_SAD12 = 43, 457 455 DF_SAD24 = 44, … … 464 462 DF_SSE_FRAME = 50, ///< Frame-based SSE 465 463 DF_TOTAL_FUNCTIONS = 64 466 #else467 DF_SSE_FRAME = 32, ///< Frame-based SSE468 DF_TOTAL_FUNCTIONS = 33469 #endif470 464 }; 471 465
Note: See TracChangeset for help on using the changeset viewer.