Ignore:
Timestamp:
30 Jan 2013, 16:29:21 (11 years ago)
Author:
hisilicon-htm
Message:

JCT3V-C0154

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev1-Hisilicon/source/Lib/TLibEncoder/TEncSearch.cpp

    r226 r240  
    83118311  Int iSumPix[2];
    83128312  memset(iSumPix, 0, sizeof(Int)*2);
    8313  
     8313#if HS_REFERENCE_SUBSAMPLE
     8314  Int subSamplePix;
     8315  if ( uiSize == 64 || uiSize == 32 )
     8316  {
     8317    subSamplePix = 2;
     8318  }
     8319  else
     8320  {
     8321    subSamplePix = 1;
     8322  }
     8323  for (Int y=0; y<uiSize; y+=subSamplePix)
     8324  {
     8325    for (Int x=0; x<uiSize; x+=subSamplePix)
     8326    {
     8327      UChar ucSegment = pMask?(UChar)pMask[x]:0;
     8328      assert( ucSegment < uiNumSegments );
     8329
     8330      iSumDepth[ucSegment] += pOrig[x];
     8331      iSumPix[ucSegment]   += 1;
     8332    }
     8333
     8334    pOrig  += uiStride*subSamplePix;
     8335    pMask  += uiMaskStride*subSamplePix;
     8336  }
     8337#else
    83148338  for (Int y=0; y<uiSize; y++)
    83158339  {
     
    83268350    pMask  += uiMaskStride;
    83278351  }
    8328  
     8352#endif
    83298353  // compute mean for each segment
    83308354  for( UChar ucSeg = 0; ucSeg < uiNumSegments; ucSeg++ )
Note: See TracChangeset for help on using the changeset viewer.