- Timestamp:
- 31 Aug 2013, 01:49:56 (11 years ago)
- Location:
- branches/HTM-DEV-2.0-dev0/source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-2.0-dev0/source/App/TAppEncoder/TAppEncTop.cpp
r598 r603 772 772 printRateSummary(); 773 773 774 #if H_3D_FIX_REN_WARNING 775 Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation(); 776 777 if ( !(dMaxDispDiff < 0) ) 778 { 779 printf("\n Max. possible shift error: %12.3f samples.\n", dMaxDispDiff ); 780 } 781 #endif 782 774 783 return; 775 784 } -
branches/HTM-DEV-2.0-dev0/source/App/TAppRenderer/TAppRendererTop.cpp
r446 r603 476 476 renderUsedPelsMap( ); 477 477 break; 478 479 478 default: 480 479 AOT(true); 481 480 } 481 482 #if H_3D_FIX_REN_WARNING 483 Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation(); 484 485 if ( !(dMaxDispDiff < 0) ) 486 { 487 printf("\n Max. possible shift error: %12.3f samples.\n", dMaxDispDiff ); 488 } 489 #endif 482 490 } 483 491 … … 937 945 while ( ( ( iNumOfRenderedFrames < m_iFramesToBeRendered ) || ( m_iFramesToBeRendered == 0 ) ) && !bAnyEOS ) 938 946 { 939 940 941 947 if ( iFrame >= m_iFrameSkip ) 942 948 { -
branches/HTM-DEV-2.0-dev0/source/Lib/TAppCommon/TAppComCamPara.cpp
r542 r603 841 841 Int iLog2DivLuma = m_uiBitDepthForLUT + m_uiCamParsCodedPrecision + 1 - m_iLog2Precision; AOF( iLog2DivLuma > 0 ); 842 842 Int iLog2DivChroma = iLog2DivLuma + 1; 843 #if !H_3D_FIX_REN_WARNING 843 844 Double dMaxDispDev = 0.0; 844 845 Double dMaxRndDispDvL = 0.0; 845 846 Double dMaxRndDispDvC = 0.0; 847 #endif 846 848 for( UInt uiSourceView = 0; uiSourceView < uiNumberSourceViews; uiSourceView++ ) 847 849 { … … 885 887 // integer-valued look-up tables 886 888 Int64 iTempScale = (Int64)uiDepthValue * iScale; 889 #if !H_3D_FIX_REN_WARNING 887 890 Int64 iTestScale = ( iTempScale + iOffset ); // for checking accuracy of camera parameters 891 #endif 888 892 Int64 iShiftLuma = ( iTempScale + iOffsetLuma ) >> iLog2DivLuma; 889 893 Int64 iShiftChroma = ( iTempScale + iOffsetChroma ) >> iLog2DivChroma; … … 892 896 893 897 // maximum deviation 898 #if H_3D_FIX_REN_WARNING 899 m_dMaxShiftDeviation = std::max( m_dMaxShiftDeviation, fabs( Double( (Int) iShiftLuma ) - dShiftLuma ) / Double( 1 << m_iLog2Precision ) ); 900 #else 894 901 dMaxDispDev = std::max( dMaxDispDev, fabs( Double( (Int) iTestScale ) - dShiftLuma * Double( 1 << iLog2DivLuma ) ) / Double( 1 << iLog2DivLuma ) ); 895 902 dMaxRndDispDvL = std::max( dMaxRndDispDvL, fabs( Double( (Int) iShiftLuma ) - dShiftLuma ) ); 896 903 dMaxRndDispDvC = std::max( dMaxRndDispDvC, fabs( Double( (Int) iShiftChroma ) - dShiftChroma ) ); 904 #endif 897 905 } 898 906 … … 904 912 } 905 913 914 #if !H_3D_FIX_REN_WARNING 906 915 // check maximum deviation 907 916 Double dMaxAllowedDispDev = Double( 1 << m_iLog2Precision ) / Double( 1 << m_uiCamParsCodedPrecision ); // counting only the impact of camera parameter rounding … … 925 934 } 926 935 } 936 #endif 927 937 } 928 938 … … 1026 1036 m_bCamParsCodedPrecSet = false; 1027 1037 1038 #if H_3D_FIX_REN_WARNING 1039 m_dMaxShiftDeviation = -1; 1040 #endif 1028 1041 1029 1042 } -
branches/HTM-DEV-2.0-dev0/source/Lib/TAppCommon/TAppComCamPara.h
r542 r603 67 67 Bool m_bCamParsCodedPrecSet; ///< Coded Cam Para precision set for current frame; 68 68 69 #if H_3D_FIX_REN_WARNING 70 Double m_dMaxShiftDeviation; ///< Maximum deviation of shifts with integer precision compare to double precision 71 #endif 69 72 //SAIT_VSO_EST_A0033 70 73 Double m_dDispCoeff; … … 180 183 UInt getCurFrameId () { return m_iCurrentFrameId; } 181 184 static Void convertNumberString ( Char* pchViewNumberString, std::vector<Int>& raiViewNumbers, Double dViewNumPrec ); 185 #if H_3D_FIX_REN_WARNING 186 Double getMaxShiftDeviation () { return m_dMaxShiftDeviation; }; 187 #endif 182 188 183 189 #if H_3D_VSO -
branches/HTM-DEV-2.0-dev0/source/Lib/TLibCommon/TComDataCU.cpp
r601 r603 3404 3404 #endif 3405 3405 iRefListIdY = 1 - iRefListIdX; 3406 #if H_3D_ BVSP_FIX3406 #if H_3D_FIX_BVSP 3407 3407 pcMvFieldNeighbours[(iCount<<1)+iRefListIdX].setMvField( pDInfo->m_acNBDV, i ); 3408 3408 #else … … 3428 3428 predFlag[iRefListIdY] = 1; 3429 3429 #if MTK_VSP_FIX_E0172 || MTK_VSP_FIX_ALIGN_WD_E0172 3430 #if H_3D_ BVSP_FIX3430 #if H_3D_FIX_BVSP 3431 3431 TComMv cMv = pDInfo->m_acNBDV; 3432 3432 #else … … 3447 3447 pcMvFieldNeighbours[(iCount<<1)+iRefListIdY].setMvField( cMv, i ); 3448 3448 #else 3449 #if H_3D_ BVSP_FIX3449 #if H_3D_FIX_BVSP 3450 3450 pcMvFieldNeighbours[(iCount<<1)+iRefListIdY].setMvField( pDInfo->m_acNBDV, i ); 3451 3451 #else -
branches/HTM-DEV-2.0-dev0/source/Lib/TLibCommon/TComRdCost.cpp
r601 r603 605 605 dist = (Dist) (iDWeight * distDepth + iVSOWeight * dist ) / ( iDWeight + iVSOWeight); 606 606 } 607 #if H_3D_FIX_UINT_WARNING 608 return (UInt) dist; 609 #else 607 610 return dist; 611 #endif 608 612 609 613 } -
branches/HTM-DEV-2.0-dev0/source/Lib/TLibCommon/TypeDef.h
r602 r603 197 197 198 198 /// FIXES 199 #define H_3D_BVSP_FIX 1 //DV from NBDV instead of DoNBDV should be used 200 #define FIX036 1 // fix for ticket #36 201 199 #define H_3D_FIX_BVSP 1 // DV from NBDV instead of DoNBDV should be used 200 #define H_3D_FIX_TICKET_036 1 // fix for ticket #36 201 #define H_3D_FIX_REN 1 // fix of erroneous inpainting for renderer 202 #define H_3D_FIX_REN_WARNING 1 // fix of warning related to camera parameter precision 203 #define H_3D_FIX_UINT_WARNING 1 // explicit in VSD 202 204 #endif // H_3D 203 205 … … 475 477 476 478 #if H_3D_VSO_DIST_INT 477 #if FIX036479 #if H_3D_FIX_TICKET_036 478 480 typedef Int64 Dist; ///< RDO distortion 479 481 #else -
branches/HTM-DEV-2.0-dev0/source/Lib/TLibRenderer/TRenTop.cpp
r499 r603 1033 1033 for ( ; iInterPolPos <= xCeil (iShiftedPos ) -1 ; iInterPolPos++) 1034 1034 { 1035 #if H_3D_FIX_REN 1036 if ( ( iInterPolPos >= 0 ) && ( iInterPolPos < iOutputWidth ) ) 1037 { 1038 if( pcFilledData[iInterPolPos] == REN_IS_HOLE ) 1039 { 1040 Int iNextPos = std::min(iInputWidth-1,iPosX + iStep); 1041 Int iPosXBG = ( std::abs( pcDepthData[iNextPos] - pcDepthData[iPosX] ) > 5 ) ? iPosX : iNextPos; 1042 for( UInt uiCurPlane = 0; uiCurPlane < uiNumberOfPlanes; uiCurPlane++) 1043 { 1044 apcOutputData[uiCurPlane][iInterPolPos] = apcInputData[uiCurPlane][iPosXBG]; 1045 } 1046 } 1047 else 1048 { 1049 pcFilledData[iInterPolPos] = REN_IS_HOLE + 1; 1050 } 1051 } 1052 #else 1035 1053 for( UInt uiCurPlane = 0; uiCurPlane < uiNumberOfPlanes; uiCurPlane++) 1036 1054 { … … 1040 1058 } 1041 1059 } 1060 #endif 1042 1061 } 1043 1062 } … … 1285 1304 else 1286 1305 { 1306 #if H_3D_FIX_REN 1307 pcAlphaData[iXPos] = pcFilledData[iXPos]; 1308 #else 1287 1309 pcAlphaData[iXPos] = REN_IS_FILLED; 1310 #endif 1288 1311 } 1289 1312 }
Note: See TracChangeset for help on using the changeset viewer.