Ignore:
Timestamp:
5 Feb 2014, 12:28:40 (10 years ago)
Author:
rwth
Message:
  • fixed bracketing
  • removed global variable
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibCommon/TComPrediction.cpp

    r820 r821  
    651651      // SIZE_Nx2N
    652652      if(x<uiHalfSize)  // left
     653      {
    653654        matchedPartSum[0][ucSegment]++;
     655      }
    654656      else  // right
     657      {
    655658        matchedPartSum[0][1-ucSegment]++;
     659      }
    656660     
    657661      // SIZE_2NxN
    658662      if(y<uiHalfSize)  // top
     663      {
    659664        matchedPartSum[1][ucSegment]++;
     665      }
    660666      else  // bottom
     667      {
    661668        matchedPartSum[1][1-ucSegment]++;
     669      }
    662670     
    663671      if( bAMPAvail )
     
    665673        // SIZE_2NxnU
    666674        if(y<uiQuarterSize)  // top (1/4)
     675        {
    667676          matchedPartSum[2][ucSegment]++;
     677        }
    668678        else  // bottom (3/4)
     679        {
    669680          matchedPartSum[2][1-ucSegment]++;
     681        }
    670682       
    671683        // SIZE_2NxnD
    672684        if(y<(uiQuarterSize*3))  // top (3/4)
     685        {
    673686          matchedPartSum[3][ucSegment]++;
     687        }
    674688        else  // bottom (1/4)
     689        {
    675690          matchedPartSum[3][1-ucSegment]++;
     691        }
    676692       
    677693        // SIZE_nLx2N
    678694        if(x<uiQuarterSize)  // left (1/4)
     695        {
    679696          matchedPartSum[4][ucSegment]++;
     697        }
    680698        else  // right (3/4)
     699        {
    681700          matchedPartSum[4][1-ucSegment]++;
     701        }
    682702       
    683703        // SIZE_nRx2N
    684704        if(x<(uiQuarterSize*3))  // left (3/4)
     705        {
    685706          matchedPartSum[5][ucSegment]++;
     707        }
    686708        else  // right (1/4)
     709        {
    687710          matchedPartSum[5][1-ucSegment]++;
     711        }
    688712      }
    689713    }
     
    730754     
    731755      if( depthPel > uiMaxDepth )
     756      {
    732757        uiMaxDepth = depthPel;
     758      }
    733759      if( depthPel < uiMinDepth )
     760      {
    734761        uiMinDepth = depthPel;
     762      }
    735763    }
    736764   
     
    741769  // don't generate mask for blocks with small depth range (encoder decision)
    742770  if( uiMaxDepth - uiMinDepth < 10 )
     771  {
    743772    return false;
     773  }
    744774 
    745775  AOF(uiWidth==uiHeight);
     
    764794     
    765795      if( bInvertMask )
     796      {
    766797        ucSegment = 1-ucSegment;
     798      }
    767799     
    768800      // count pixels for each segment
     
    782814  UInt uiMinPixPerSegment = (uiWidth*uiHeight) >> 3;
    783815  if( !( uiSumPix[0] > uiMinPixPerSegment && uiSumPix[1] > uiMinPixPerSegment ) )
     816  {
    784817    return false;
     818  }
    785819 
    786820  // all good
Note: See TracChangeset for help on using the changeset viewer.