Changeset 240 in 3DVCSoftware


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

JCT3V-C0154

Location:
branches/HTM-5.1-dev1-Hisilicon/source/Lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.1-dev1-Hisilicon/source/Lib/TLibCommon/TComPrediction.cpp

    r226 r240  
    19191919  UInt  uiWedgeStride   = pcWedgelet->getStride();
    19201920
     1921#if HS_REFERENCE_SUBSAMPLE
     1922  Int subSamplePix;
     1923  if ( pcWedgelet->getWidth() == 32 )
     1924  {
     1925    subSamplePix = 2;
     1926  }
     1927  else
     1928  {
     1929    subSamplePix = 1;
     1930  }
     1931#endif
     1932
    19211933  if( bAbove )
    19221934  {
     1935#if HS_REFERENCE_SUBSAMPLE
     1936    for( Int k = 0; k < pcWedgelet->getWidth(); k+=subSamplePix )
     1937#else
    19231938    for( Int k = 0; k < pcWedgelet->getWidth(); k++ )
     1939#endif
    19241940    {
    19251941      if( true == pabWedgePattern[k] )
     
    19371953  if( bLeft )
    19381954  {
     1955#if HS_REFERENCE_SUBSAMPLE
     1956    for( Int k = 0; k < pcWedgelet->getHeight(); k+=subSamplePix )
     1957#else
    19391958    for( Int k = 0; k < pcWedgelet->getHeight(); k++ )
     1959#endif
    19401960    {
    19411961      if( true == pabWedgePattern[k*uiWedgeStride] )
  • branches/HTM-5.1-dev1-Hisilicon/source/Lib/TLibDecoder/TDecCu.cpp

    r189 r240  
    13751375  Int iSumPix[2];
    13761376  memset(iSumPix, 0, sizeof(Int)*2);
    1377  
     1377#if HS_REFERENCE_SUBSAMPLE
     1378  Int subSamplePix;
     1379  if ( uiSize == 64 || uiSize == 32 )
     1380  {
     1381    subSamplePix = 2;
     1382  }
     1383  else
     1384  {
     1385    subSamplePix = 1;
     1386  }
     1387  for (Int y=0; y<uiSize; y+=subSamplePix)
     1388  {
     1389    for (Int x=0; x<uiSize; x+=subSamplePix)
     1390    {
     1391      UChar ucSegment = pMask?(UChar)pMask[x]:0;
     1392      assert( ucSegment < uiNumSegments );
     1393
     1394      iSumDepth[ucSegment] += pOrig[x];
     1395      iSumPix[ucSegment]   += 1;
     1396    }
     1397    pOrig  += uiStride*subSamplePix;
     1398    pMask  += uiMaskStride*subSamplePix;
     1399  }
     1400#else
    13781401  for (Int y=0; y<uiSize; y++)
    13791402  {
     
    13901413    pMask  += uiMaskStride;
    13911414  }
    1392  
     1415#endif
    13931416  // compute mean for each segment
    13941417  for( UChar ucSeg = 0; ucSeg < uiNumSegments; ucSeg++ )
  • 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.