Ignore:
Timestamp:
21 May 2015, 15:43:58 (10 years ago)
Author:
rwth
Message:
  • migration of DBBP (to be tested)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-14.1-update-dev4-RWTH/source/Lib/TLibCommon/TComDataCU.cpp

    r1217 r1222  
    142142#if H_3D_INTER_SDC
    143143#endif
    144 #if H_3D_DBBP
     144#if NH_3D_DBBP
    145145  m_pbDBBPFlag         = NULL;
    146146#endif
     
    273273#endif
    274274#endif
    275 #if H_3D_DBBP
     275#if NH_3D_DBBP
    276276    m_pbDBBPFlag         = (Bool*  )xMalloc(Bool,   uiNumPartition);
    277277#endif
     
    493493#endif   
    494494#endif   
    495 #if H_3D_DBBP
     495#if NH_3D_DBBP
    496496    if ( m_pbDBBPFlag         ) { xFree(m_pbDBBPFlag);          m_pbDBBPFlag        = NULL; }
    497497#endif
     
    632632    m_pbSDCFlag[ui] = pcFrom->m_pbSDCFlag[ui];
    633633#endif
    634 #if H_3D_DBBP
    635     m_pbDBBPFlag[ui] = pcFrom->m_pbDBBPFlag[ui];
     634#if NH_3D_DBBP
     635  memset( m_pbDBBPFlag , false, m_uiNumPartition * sizeof( *m_pbDBBPFlag ));
    636636#endif
    637637#if H_3D
     
    678678    m_apDmmPredictor[0] = 0;
    679679    m_apDmmPredictor[1] = 0;
    680 #endif
    681 #if H_3D_DBBP
    682     memset( m_pbDBBPFlag        + firstElement, false,                    numElements * sizeof( *m_pbDBBPFlag ) );
    683680#endif
    684681
     
    840837      m_apDmmPredictor[1] = 0;
    841838#endif
    842 #if H_3D_DBBP
     839#if NH_3D_DBBP
    843840      m_pbDBBPFlag[ui] = false;
    844841#endif
     
    949946  m_apDmmPredictor[1] = 0;
    950947#endif
    951 #if H_3D_DBBP
    952   memset( m_pbDBBPFlag,         0, iSizeInBool  );
     948#if NH_3D_DBBP
     949  memset( m_pbDBBPFlag,         0, sizeof(Bool) * m_uiNumPartition  );
    953950#endif
    954951
     
    10071004#endif
    10081005#endif
    1009 #if H_3D_DBBP
     1006#if NH_3D_DBBP
    10101007      m_pbDBBPFlag[ui]=pcCU->m_pbDBBPFlag[uiPartOffset+ui];
    10111008#endif
     
    11301127#endif 
    11311128#endif 
    1132 #if H_3D_DBBP
     1129#if NH_3D_DBBP
    11331130  m_pbDBBPFlag              = pcCU->getDBBPFlag()         + uiPart;
    11341131#endif
     
    12511248  m_puhARPW            = pcCU->getARPW()                  + uiAbsPartIdx;
    12521249#endif   
    1253 #if H_3D_DBBP
     1250#if NH_3D_DBBP
    12541251  m_pbDBBPFlag       = pcCU->getDBBPFlag()              + uiAbsPartIdx;
    12551252#endif
     
    13371334#endif
    13381335#endif
    1339 #if H_3D_DBBP
     1336#if NH_3D_DBBP
    13401337  memcpy( m_pbDBBPFlag          + uiOffset, pcCU->getDBBPFlag(),          iSizeInBool  );
    13411338#endif
     
    14651462#endif
    14661463#endif
    1467 #if H_3D_DBBP
    1468   memcpy( rpcCU->getDBBPFlag()          + m_uiAbsIdxInLCU, m_pbDBBPFlag,          iSizeInBool  );
     1464#if NH_3D_DBBP
     1465  memcpy( pCtu->getDBBPFlag()          + m_absZIdxInCtu, m_pbDBBPFlag,          iSizeInBool  );
    14691466#endif
    14701467
     
    15391536  memcpy( rpcCU->getSDCSegmentDCOffset(1) + uiPartOffset, m_apSegmentDCOffset[1], sizeof( Pel ) * uiQNumPart);
    15401537#endif
    1541 #endif
    1542 #if H_3D_DBBP
    1543   memcpy( rpcCU->getDBBPFlag()          + uiPartOffset, m_pbDBBPFlag,          iSizeInBool  );
    15441538#endif
    15451539#if H_3D_ARP
     
    21122106}
    21132107#endif
    2114 #if H_3D_DBBP
     2108#if NH_3D_DBBP
    21152109Pel* TComDataCU::getVirtualDepthBlock(UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, UInt& uiDepthStride)
    21162110{
     2111  const TComSPS* sps = getSlice()->getSPS();
     2112  UInt uiMaxCUWidth = sps->getMaxCUWidth();
     2113  UInt uiMaxCUHeight = sps->getMaxCUHeight();
     2114 
    21172115  // get coded and reconstructed depth view
    21182116  TComPicYuv* depthPicYuv = NULL;
     
    21502148    depthPicYuv   = baseDepthPic->getPicYuvRec();
    21512149    depthPicYuv->extendPicBorder();
    2152     uiDepthStride = depthPicYuv->getStride();
     2150    uiDepthStride = depthPicYuv->getStride(COMPONENT_Y);
    21532151   
    2154     Int iBlkX = ( getAddr() % baseDepthPic->getFrameWidthInCU() ) * g_uiMaxCUWidth  + g_auiRasterToPelX[ g_auiZscanToRaster[ getZorderIdxInCU()+uiAbsPartIdx ] ];
    2155     Int iBlkY = ( getAddr() / baseDepthPic->getFrameWidthInCU() ) * g_uiMaxCUHeight + g_auiRasterToPelY[ g_auiZscanToRaster[ getZorderIdxInCU()+uiAbsPartIdx ] ];
     2152    Int iBlkX = ( getCtuRsAddr() % baseDepthPic->getFrameWidthInCtus() ) * uiMaxCUWidth  + g_auiRasterToPelX[ g_auiZscanToRaster[ getZorderIdxInCtu()+uiAbsPartIdx ] ];
     2153    Int iBlkY = ( getCtuRsAddr() / baseDepthPic->getFrameWidthInCtus() ) * uiMaxCUHeight + g_auiRasterToPelY[ g_auiZscanToRaster[ getZorderIdxInCtu()+uiAbsPartIdx ] ];
    21562154   
    2157     Int iPictureWidth  = depthPicYuv->getWidth();
    2158     Int iPictureHeight = depthPicYuv->getHeight();
     2155    Int iPictureWidth  = depthPicYuv->getWidth(COMPONENT_Y);
     2156    Int iPictureHeight = depthPicYuv->getHeight(COMPONENT_Y);
    21592157   
    21602158   
     
    21732171    Int depthPosY = Clip3(0,   iPictureHeight - 1, iBlkY + ((cDv.getVer()+2)>>2));
    21742172   
    2175     pDepthPels = depthPicYuv->getLumaAddr() + depthPosX + depthPosY * uiDepthStride;
     2173    pDepthPels = depthPicYuv->getAddr(COMPONENT_Y) + depthPosX + depthPosY * uiDepthStride;
    21762174  }
    21772175#endif
     
    21852183#endif
    21862184
    2187 #if H_3D_DBBP
     2185#if NH_3D_DBBP
    21882186Void TComDataCU::setDBBPFlagSubParts ( Bool bDBBPFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth )
    21892187{
     
    37053703  Bool bARPFlag = getARPW(uiAbsPartIdx) > 0;
    37063704#endif
    3707 #if H_3D_DBBP
     3705#if NH_3D_DBBP
    37083706  Bool bDBBPFlag = getDBBPFlag(uiAbsPartIdx);
    37093707  assert(bDBBPFlag == getDBBPFlag(0)); 
     
    37433741      && !bARPFlag
    37443742#endif
    3745 #if H_3D_DBBP
     3743#if NH_3D_DBBP
    37463744      && !bDBBPFlag
    37473745#endif
     
    40554053        spiMvpFlag = true;
    40564054      }
    4057 #if H_3D_DBBP
     4055#if NH_3D_DBBP
    40584056      spiMvpFlag &= !bDBBPFlag;
    40594057#endif
     
    41944192      (nPSW + nPSH > 12) &&
    41954193#endif
    4196 #if H_3D_DBBP
     4194#if NH_3D_DBBP
    41974195      !bDBBPFlag &&
    41984196#endif
     
    51265124  UInt partAddr;
    51275125
    5128 #if H_3D_DBBP
     5126#if NH_3D_DBBP
    51295127  if( getDBBPFlag(0) )
    51305128  {
Note: See TracChangeset for help on using the changeset viewer.