Changeset 820 in 3DVCSoftware


Ignore:
Timestamp:
5 Feb 2014, 09:54:12 (10 years ago)
Author:
rwth
Message:
  • cleanup: removed some assertions and added some comments
Location:
branches/HTM-9.3-dev1-RWTH/source/Lib
Files:
8 edited

Legend:

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

    r816 r820  
    625625 
    626626  Int iSizeInBits = g_aucConvertToBit[uiSize] - g_aucConvertToBit[iSubSample];  // respect sub-sampling factor
    627   Int iMean = iSumDepth >> iSizeInBits*2;       // iMean /= (uiWidth*uiHeight);
    628   AOF( iMean == iSumDepth/((uiSize/iSubSample)*(uiSize/iSubSample) ) );
    629   AOF( iMean >= 0 && iMean < 256);
     627  Int iMean = iSumDepth >> iSizeInBits*2;       // iMean /= (uiSize*uiSize);
    630628 
    631629  // start again for segmentation
     
    648646      // decide which segment this pixel belongs to
    649647      Int ucSegment = (Int)(depthPel>iMean);
    650       AOF( ucSegment == 0 || ucSegment == 1 );
    651648     
    652649      // Matched Filter to find optimal (conventional) partitioning
     
    718715Bool TComPrediction::getSegmentMaskFromDepth( Pel* pDepthPels, UInt uiDepthStride, UInt uiWidth, UInt uiHeight, Bool* pMask )
    719716{
    720   AOF( uiWidth == uiHeight );
    721  
    722717  // segmentation of texture block --> mask IDs
    723718  Pel*  pDepthBlockStart      = pDepthPels;
     
    748743    return false;
    749744 
     745  AOF(uiWidth==uiHeight);
    750746  Int iSizeInBits = g_aucConvertToBit[uiWidth]+2;
    751747  Int iMean = iSumDepth >> iSizeInBits*2;       // iMean /= (uiWidth*uiHeight);
    752   AOF( iMean == iSumDepth/(uiWidth*uiHeight) );
    753   AOF( iMean >= 0 && iMean < 256);
    754748 
    755749  // start again for segmentation
     
    768762      // decide which segment this pixel belongs to
    769763      Int ucSegment = (Int)(depthPel>iMean);
    770       AOF( ucSegment == 0 || ucSegment == 1 );
    771764     
    772765      if( bInvertMask )
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibDecoder/TDecCu.cpp

    r819 r820  
    753753  AOF(!pcCU->getSlice()->isIntra());
    754754  PartSize ePartSize = pcCU->getPartitionSize( 0 );
    755   AOF( uiAbsPartIdx == pcCU->getZorderIdxInCU() );
    756755 
    757756  // get collocated depth block
     
    762761 
    763762  // compute mask by segmenting depth block
    764   AOF( pcCU->getWidth(0) == m_ppcYuvReco[uiDepth]->getWidth() );
    765763  Bool pMask[MAX_CU_SIZE*MAX_CU_SIZE];
    766764  Bool bValidMask = m_pcPrediction->getSegmentMaskFromDepth(pDepthPels, uiDepthStride, pcCU->getWidth(0), pcCU->getHeight(0), pMask);
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibDecoder/TDecEntropy.cpp

    r819 r820  
    161161     
    162162      pcCU->setPartSizeSubParts(eVirtualPartSize, uiAbsPartIdx, uiDepth);
    163       AOF( pcCU->getPartitionSize(uiAbsPartIdx) == eVirtualPartSize );
    164163    }
    165164  }
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibDecoder/TDecSbac.cpp

    r816 r820  
    21532153  m_pcTDecBinIf->decodeBin( uiSymbol, m_cDBBPFlagSCModel.get( 0, 0, 0 ) );
    21542154 
    2155   DTRACE_CABAC_VL( g_nSymbolCounter++ );
    2156   DTRACE_CABAC_T( "\tDBBPFlag" );
    2157   DTRACE_CABAC_T( "\tuiCtxDBBP: ");
    2158   DTRACE_CABAC_V( uiCtxDBBPFlag );
    2159   DTRACE_CABAC_T( "\tuiSymbol: ");
    2160   DTRACE_CABAC_V( uiSymbol );
    2161   DTRACE_CABAC_T( "\n");
    2162  
    21632155  if( uiSymbol )
    21642156  {
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibEncoder/TEncCu.cpp

    r819 r820  
    23632363    {
    23642364      UChar ucSegment = (UChar)pMask[x];
    2365       assert( ucSegment < 2 );
     2365      AOF( ucSegment < 2 );
    23662366     
    23672367      piDst[x] = (ucSegment==uiValidSegment)?piSrc[x]:DBBP_INVALID_SHORT;
     
    23872387    {
    23882388      UChar ucSegment = (UChar)pMask[x*2];
    2389       assert( ucSegment < 2 );
     2389      AOF( ucSegment < 2 );
    23902390     
    23912391      piDstU[x] = (ucSegment==uiValidSegment)?piSrcU[x]:DBBP_INVALID_SHORT;
     
    24052405  AOF( !rpcTempCU->getSlice()->getIsDepth() );
    24062406 
    2407  
    24082407  UChar uhDepth = rpcTempCU->getDepth( 0 );
    24092408 
     
    24252424  rpcTempCU->setPartSizeSubParts( SIZE_2Nx2N,  0, uhDepth );
    24262425 
    2427   // get coded and reconstructed depth view
     2426  // fetch virtual depth block
    24282427  UInt uiDepthStride = 0;
    24292428  Pel* pDepthPels = rpcTempCU->getVirtualDepthBlock(0, uiWidth, uiHeight, uiDepthStride);
     
    24862485  }
    24872486 
     2487  // store final motion/disparity information in each PU using derived partitioning
    24882488  rpcTempCU->setDepthSubParts( uhDepth, 0 );
    24892489  rpcTempCU->setPartSizeSubParts  ( eVirtualPartSize,  0, uhDepth );
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibEncoder/TEncEntropy.cpp

    r816 r820  
    245245  if( pcCU->getDBBPFlag(uiAbsPartIdx) )
    246246  {
     247    AOF( pcCU->getSlice()->getVPS()->getUseDBBP(pcCU->getSlice()->getLayerIdInVps()) );
     248   
    247249    // temporarily change partition size for DBBP blocks
    248250    pcCU->setPartSizeSubParts(RWTH_DBBP_PACK_MODE, uiAbsPartIdx, uiDepth);
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibEncoder/TEncSbac.cpp

    r816 r820  
    12401240    m_pcBinIf->encodeBin( uiInterDir == 2 ? 1 : 0, *( pCtx + uiCtx ) );
    12411241  }
    1242 #if H_3D_DBBP
    1243   else
    1244   {
    1245     // only uni-prediction is allowed for DBBP
    1246     AOF( uiInterDir == 0 || uiInterDir == 1 );
    1247   }
    1248 #endif
    12491242  if (uiInterDir < 2)
    12501243  {
  • branches/HTM-9.3-dev1-RWTH/source/Lib/TLibEncoder/TEncSearch.cpp

    r819 r820  
    46574657      }
    46584658     
    4659       // update these values to virtual partition size
     4659      // update values to virtual partition size
    46604660      pcCU->getPartIndexAndSize( uiPartIdx, uiPartAddr, iRoiWidth, iRoiHeight );
    46614661    }
     
    46674667    if( pcCU->getDBBPFlag(0) )
    46684668    {
    4669       // reset to 2Nx2N for motion search
     4669      // restore 2Nx2N partitioning for motion estimation
    46704670      uiPartIdx = 0;
    46714671      AOF( pcCU->getPartitionSize(0) == pDBBPTmpData->eVirtualPartSize );
Note: See TracChangeset for help on using the changeset viewer.