Changeset 1409 in SHVCSoftware for branches/SHM-dev


Ignore:
Timestamp:
4 Aug 2015, 04:24:00 (9 years ago)
Author:
seregin
Message:

port rev 4562

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/WeightPredAnalysis.cpp

    r1400 r1409  
    220220}
    221221
    222 //! calculate SSE values for both WP version and non-WP version.
    223 /*
    224 static
    225 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 }*/
    253222
    254223// -----------------------------------------------------------------------------
     
    739708}
    740709
     710// Alternatively, a SSE-based measure could be used instead.
     711// The respective function has been removed as it currently redundant.
    741712static
    742713Int64 xCalcSADvalueWP(const Int   bitDepth,
Note: See TracChangeset for help on using the changeset viewer.