Changeset 821 in 3DVCSoftware for branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComRdCost.cpp
- Timestamp:
- 5 Feb 2014, 12:28:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComRdCost.cpp
r816 r821 327 327 328 328 #if H_3D_DBBP 329 if( g_bTestVirtualParts)329 if( m_bUseMask ) 330 330 { 331 331 if( eDFunc >= DF_SSE && eDFunc <= DF_SSE16N ) 332 { 332 333 rcDistParam.DistFunc = TComRdCost::xGetMaskedSSE; 334 } 333 335 else if( eDFunc >= DF_SAD && eDFunc <= DF_SADS16N ) 336 { 334 337 rcDistParam.DistFunc = TComRdCost::xGetMaskedSAD; 338 } 335 339 else if( eDFunc >= DF_HADS && eDFunc <= DF_HADS16N ) 340 { 336 341 rcDistParam.DistFunc = TComRdCost::xGetMaskedHADs; 342 } 337 343 else if( eDFunc >= DF_VSD && eDFunc <= DF_VSD16N ) 344 { 338 345 rcDistParam.DistFunc = TComRdCost::xGetMaskedVSD; 346 } 339 347 else if( eDFunc >= DF_SAD12 && eDFunc <= DF_SADS48 ) 348 { 340 349 rcDistParam.DistFunc = TComRdCost::xGetMaskedSAD; 350 } 341 351 } 342 352 #endif … … 377 387 378 388 #if H_3D_DBBP 379 if( g_bTestVirtualParts)389 if( m_bUseMask ) 380 390 { 381 391 rcDistParam.DistFunc = TComRdCost::xGetMaskedSAD; … … 436 446 437 447 #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; 444 451 } 445 452 #endif … … 468 475 469 476 #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; 476 480 } 477 481 #endif … … 735 739 { 736 740 if( piOrg[n] != DBBP_INVALID_SHORT ) 741 { 737 742 uiSum += abs( piOrg[n] - piCur[n] ); 743 } 738 744 } 739 745 piOrg += iStrideOrg; … … 775 781 { 776 782 if( piOrg[x] != DBBP_INVALID_SHORT ) 783 { 777 784 uiSum += xCalcHADs8x8( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep ); 785 } 778 786 } 779 787 piOrg += iOffsetOrg; … … 791 799 { 792 800 if( piOrg[x] != DBBP_INVALID_SHORT ) 801 { 793 802 uiSum += xCalcHADs16x4( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep ); 803 } 794 804 } 795 805 piOrg += iOffsetOrg; … … 806 816 { 807 817 if( piOrg[x] != DBBP_INVALID_SHORT ) 818 { 808 819 uiSum += xCalcHADs4x16( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep ); 820 } 809 821 } 810 822 piOrg += iOffsetOrg; … … 823 835 { 824 836 if( piOrg[x] != DBBP_INVALID_SHORT ) 837 { 825 838 uiSum += xCalcHADs4x4( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep ); 839 } 826 840 } 827 841 piOrg += iOffsetOrg; … … 838 852 { 839 853 if( piOrg[x] != DBBP_INVALID_SHORT ) 854 { 840 855 uiSum += xCalcHADs2x2( &piOrg[x], &piCur[x*iStep], iStrideOrg, iStrideCur, iStep ); 856 } 841 857 } 842 858 piOrg += iOffsetOrg;
Note: See TracChangeset for help on using the changeset viewer.