Changeset 1409 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 4 Aug 2015, 04:24:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp
r1400 r1409 220 220 } 221 221 222 //! calculate SSE values for both WP version and non-WP version.223 /*224 static225 Int64 xCalcSSEvalueWP(const Int bitDepth,226 const Pel *pOrgPel,227 const Pel *pRefPel,228 const Int width,229 const Int height,230 const Int orgStride,231 const Int refStride,232 const Int log2Denom,233 const Int weight,234 const Int offset,235 const Bool useHighPrecision)236 {237 const Int64 realLog2Denom = useHighPrecision ? log2Denom : (log2Denom + (bitDepth - 8));238 239 Int64 SSE = 0;240 for( Int y = 0; y < height; y++ )241 {242 for( Int x = 0; x < width; x++ )243 {244 Int64 distortion = (( ((Int64)pOrgPel[x]<<(Int64)log2Denom) - ( (Int64)pRefPel[x] * (Int64)weight + ((Int64)offset<<realLog2Denom) ) ) );245 SSE += distortion * distortion;246 }247 pOrgPel += orgStride;248 pRefPel += refStride;249 }250 251 return SSE;252 }*/253 222 254 223 // ----------------------------------------------------------------------------- … … 739 708 } 740 709 710 // Alternatively, a SSE-based measure could be used instead. 711 // The respective function has been removed as it currently redundant. 741 712 static 742 713 Int64 xCalcSADvalueWP(const Int bitDepth,
Note: See TracChangeset for help on using the changeset viewer.