Changeset 311 in 3DVCSoftware for branches/HTM-6.0-dev0/source/Lib/TLibCommon/TComRdCostWeightPrediction.cpp
- Timestamp:
- 15 Mar 2013, 17:24:18 (12 years ago)
- File:
-
- 1 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
Note: See TracChangeset for help on using the changeset viewer.