Changeset 808 in 3DVCSoftware


Ignore:
Timestamp:
28 Jan 2014, 13:48:52 (11 years ago)
Author:
hisilicon-htm
Message:

Integration of JCT3V-G0163,VSD bugfix and improvement

Location:
branches/HTM-9.3-dev3-Hisilicon
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev3-Hisilicon/source/Lib/TLibCommon/TComRdCost.cpp

    r655 r808  
    585585  cDtParam.bApplyWeight = false;
    586586  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
    588590  Dist dist = cDtParam.DistFunc( &cDtParam );
    589591
     
    27462748
    27472749  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
    27492754  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 
    27502756  iTemp = (Int) (((dTemp) < 0)? (Int)((dTemp) - 0.5) : (Int)((dTemp) + 0.5));
    27512757
  • branches/HTM-9.3-dev3-Hisilicon/source/Lib/TLibCommon/TypeDef.h

    r807 r808  
    213213#define H_3D_VSO_FIX                      0   // This fix should be enabled after verification
    214214#endif
    215 
     215#define SCU_HS_VSD_BUGFIX_IMPROV_G0163    1
    216216////   ****** NEIGHBOURING BLOCK-BASED DISPARITY VECTOR  *********
    217217#if H_3D_NBDV
Note: See TracChangeset for help on using the changeset viewer.