Changeset 311 in 3DVCSoftware
- Timestamp:
- 15 Mar 2013, 17:24:18 (12 years ago)
- Location:
- branches/HTM-6.0-dev0/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-6.0-dev0/source/Lib/TLibCommon/TComRdCostWeightPrediction.cpp
r305 r311 81 81 wpScalingParam *wpCur = &(pcDtParam->wpCur[uiComp]); 82 82 Int w0 = wpCur->w, 83 84 85 86 83 offset = wpCur->offset, 84 shift = wpCur->shift, 85 round = wpCur->round; 86 87 87 UInt uiSum = 0; 88 88 #if HHI_INTERVIEW_SKIP 89 89 if( pcDtParam->pUsed ) 90 90 { 91 91 Pel* piUsed = pcDtParam->pUsed; 92 92 Int iStrideUsed = pcDtParam->iStrideUsed; 93 for( ; iRows != 0; iRows-- )94 {95 for (Int n = 0; n < iCols; n++ )96 {93 for( ; iRows != 0; iRows-- ) 94 { 95 for (Int n = 0; n < iCols; n++ ) 96 { 97 97 if( piUsed[n]) 98 98 { 99 pred = ( (w0*piCur[n] + round) >> shift ) + offset ; 100 //uiSum += abs( piOrg[n] - piCur[n] ); 101 uiSum += abs( piOrg[n] - pred ); 102 } 103 } 104 piOrg += iStrideOrg; 105 piCur += iStrideCur; 99 pred = ( (w0*piCur[n] + round) >> shift ) + offset ; 100 uiSum += abs( piOrg[n] - pred ); 101 } 102 } 103 piOrg += iStrideOrg; 104 piCur += iStrideCur; 106 105 piUsed += iStrideUsed; 107 }106 } 108 107 #if FIX_LGE_WP_FOR_3D_C0223 109 108 } … … 115 114 #endif 116 115 #endif 117 for( ; iRows != 0; iRows-- ) 118 { 119 for (Int n = 0; n < iCols; n++ ) 120 { 121 pred = ( (w0*piCur[n] + round) >> shift ) + offset ; 122 123 uiSum += abs( piOrg[n] - pred ); 124 } 125 piOrg += iStrideOrg; 126 piCur += iStrideCur; 127 } 116 for( ; iRows != 0; iRows-- ) 117 { 118 for (Int n = 0; n < iCols; n++ ) 119 { 120 pred = ( (w0*piCur[n] + round) >> shift ) + offset ; 121 uiSum += abs( piOrg[n] - pred ); 122 } 123 piOrg += iStrideOrg; 124 piCur += iStrideCur; 125 } 128 126 #if FIX_LGE_WP_FOR_3D_C0223 //comment of #endif 129 //#endif127 //#endif 130 128 #endif 131 132 133 129 #if HHI_INTERVIEW_SKIP 130 } 131 #endif 134 132 pcDtParam->uiComp = 255; // reset for DEBUG (assert test) 135 133 -
branches/HTM-6.0-dev0/source/Lib/TLibCommon/TComResidualGenerator.cpp
r296 r311 614 614 Int iDesStrideC = pcYuv ->getCStride(); 615 615 #if MTK_RELEASE_DV_CONSTRAINT_C0129 616 #if FIX_CHROMA_RESIDUAL_C0129 617 Pel* pSrcSamplesU0= pcBaseRes->getCbAddr ( 0 ) + iCRefPosY0 * iSrcStrideC; 618 Pel* pSrcSamplesU1= pcBaseRes->getCbAddr ( 0 ) + iCRefPosY1 * iSrcStrideC; 619 Pel* pSrcSamplesV0= pcBaseRes->getCrAddr ( 0 ) + iCRefPosY0 * iSrcStrideC; 620 Pel* pSrcSamplesV1= pcBaseRes->getCrAddr ( 0 ) + iCRefPosY1 * iSrcStrideC; 621 #else 616 622 Pel* pSrcSamplesU0= pcBaseRes->getCbAddr ( 0 ) + ( iCRefPosY0 >> 1 ) * iSrcStrideC; 617 623 Pel* pSrcSamplesU1= pcBaseRes->getCbAddr ( 0 ) + ( iCRefPosY1 >> 1 ) * iSrcStrideC; 618 624 Pel* pSrcSamplesV0= pcBaseRes->getCrAddr ( 0 ) + ( iCRefPosY0 >> 1 ) * iSrcStrideC; 619 625 Pel* pSrcSamplesV1= pcBaseRes->getCrAddr ( 0 ) + ( iCRefPosY1 >> 1 ) * iSrcStrideC; 626 #endif 620 627 #else 621 628 Pel* pSrcSamplesU= pcBaseRes->getCbAddr ( 0 ) + ( uiYPos >> 1 ) * iSrcStrideC; -
branches/HTM-6.0-dev0/source/Lib/TLibCommon/TypeDef.h
r310 r311 121 121 #define MTK_RELEASE_DV_CONSTRAINT_C0129 1 // JCT3V-C0129 122 122 #define MTK_SIMPLIFY_DVTC_C0135 1 // JCT3V-C0135 123 #define FIX_CHROMA_RESIDUAL_C0129 1 123 124 124 125 ///// ***** MOTION PARAMETER INHERITANCE *********
Note: See TracChangeset for help on using the changeset viewer.