Changeset 808 in 3DVCSoftware for branches/HTM-9.3-dev3-Hisilicon/source
- Timestamp:
- 28 Jan 2014, 13:48:52 (11 years ago)
- Location:
- branches/HTM-9.3-dev3-Hisilicon/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.3-dev3-Hisilicon/source/Lib/TLibCommon/TComRdCost.cpp
r655 r808 585 585 cDtParam.bApplyWeight = false; 586 586 cDtParam.uiComp = 255; // just for assert: to be sure it was set before use, since only values 0,1 or 2 are allowed. 587 587 #if SCU_HS_VSD_BUGFIX_IMPROV_G0163 588 cDtParam.bitDepth = g_bitDepthY; 589 #endif 588 590 Dist dist = cDtParam.DistFunc( &cDtParam ); 589 591 … … 2746 2748 2747 2749 dD = ( (Double) ( dDM >> DISTORTION_PRECISION_ADJUSTMENT( g_bitDepthY - 8 ) ) ) * m_dDisparityCoeff; 2748 2750 #if SCU_HS_VSD_BUGFIX_IMPROV_G0163 2751 Double dDepthWeight = ( pOrg[x] >= ( (1<<(g_bitDepthY - 3)) + (1<<(g_bitDepthY - 2)) ) ? 4 : pOrg[x] > ((1<<g_bitDepthY) >> 4) ? (Float)(pOrg[x] - ((1<<g_bitDepthY) >> 4))/(Float)((1<<g_bitDepthY) >> 3) + 1 : 1.0 ); 2752 Double dTemp = ( 0.5 * fabs(dD) * dDepthWeight * ( abs( (Int) pVirRec[ x+y*iVirStride ] - (Int) pVirRec[ x-1+y*iVirStride ] ) + abs( (Int) pVirRec[ x+y*iVirStride ] - (Int) pVirRec[ x+1+y*iVirStride ] ) ) ); 2753 #else 2749 2754 Double dTemp = ( 0.5 * fabs(dD) * ( abs( (Int) pVirRec[ x+y*iVirStride ] - (Int) pVirRec[ x-1+y*iVirStride ] ) + abs( (Int) pVirRec[ x+y*iVirStride ] - (Int) pVirRec[ x+1+y*iVirStride ] ) ) ); 2755 #endif 2750 2756 iTemp = (Int) (((dTemp) < 0)? (Int)((dTemp) - 0.5) : (Int)((dTemp) + 0.5)); 2751 2757 -
branches/HTM-9.3-dev3-Hisilicon/source/Lib/TLibCommon/TypeDef.h
r807 r808 213 213 #define H_3D_VSO_FIX 0 // This fix should be enabled after verification 214 214 #endif 215 215 #define SCU_HS_VSD_BUGFIX_IMPROV_G0163 1 216 216 //// ****** NEIGHBOURING BLOCK-BASED DISPARITY VECTOR ********* 217 217 #if H_3D_NBDV
Note: See TracChangeset for help on using the changeset viewer.