Changeset 1222 in 3DVCSoftware for branches/HTM-14.1-update-dev4-RWTH/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 21 May 2015, 15:43:58 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev4-RWTH/source/Lib/TLibCommon/TComDataCU.cpp
r1217 r1222 142 142 #if H_3D_INTER_SDC 143 143 #endif 144 #if H_3D_DBBP144 #if NH_3D_DBBP 145 145 m_pbDBBPFlag = NULL; 146 146 #endif … … 273 273 #endif 274 274 #endif 275 #if H_3D_DBBP275 #if NH_3D_DBBP 276 276 m_pbDBBPFlag = (Bool* )xMalloc(Bool, uiNumPartition); 277 277 #endif … … 493 493 #endif 494 494 #endif 495 #if H_3D_DBBP495 #if NH_3D_DBBP 496 496 if ( m_pbDBBPFlag ) { xFree(m_pbDBBPFlag); m_pbDBBPFlag = NULL; } 497 497 #endif … … 632 632 m_pbSDCFlag[ui] = pcFrom->m_pbSDCFlag[ui]; 633 633 #endif 634 #if H_3D_DBBP635 m_pbDBBPFlag[ui] = pcFrom->m_pbDBBPFlag[ui];634 #if NH_3D_DBBP 635 memset( m_pbDBBPFlag , false, m_uiNumPartition * sizeof( *m_pbDBBPFlag )); 636 636 #endif 637 637 #if H_3D … … 678 678 m_apDmmPredictor[0] = 0; 679 679 m_apDmmPredictor[1] = 0; 680 #endif681 #if H_3D_DBBP682 memset( m_pbDBBPFlag + firstElement, false, numElements * sizeof( *m_pbDBBPFlag ) );683 680 #endif 684 681 … … 840 837 m_apDmmPredictor[1] = 0; 841 838 #endif 842 #if H_3D_DBBP839 #if NH_3D_DBBP 843 840 m_pbDBBPFlag[ui] = false; 844 841 #endif … … 949 946 m_apDmmPredictor[1] = 0; 950 947 #endif 951 #if H_3D_DBBP952 memset( m_pbDBBPFlag, 0, iSizeInBool);948 #if NH_3D_DBBP 949 memset( m_pbDBBPFlag, 0, sizeof(Bool) * m_uiNumPartition ); 953 950 #endif 954 951 … … 1007 1004 #endif 1008 1005 #endif 1009 #if H_3D_DBBP1006 #if NH_3D_DBBP 1010 1007 m_pbDBBPFlag[ui]=pcCU->m_pbDBBPFlag[uiPartOffset+ui]; 1011 1008 #endif … … 1130 1127 #endif 1131 1128 #endif 1132 #if H_3D_DBBP1129 #if NH_3D_DBBP 1133 1130 m_pbDBBPFlag = pcCU->getDBBPFlag() + uiPart; 1134 1131 #endif … … 1251 1248 m_puhARPW = pcCU->getARPW() + uiAbsPartIdx; 1252 1249 #endif 1253 #if H_3D_DBBP1250 #if NH_3D_DBBP 1254 1251 m_pbDBBPFlag = pcCU->getDBBPFlag() + uiAbsPartIdx; 1255 1252 #endif … … 1337 1334 #endif 1338 1335 #endif 1339 #if H_3D_DBBP1336 #if NH_3D_DBBP 1340 1337 memcpy( m_pbDBBPFlag + uiOffset, pcCU->getDBBPFlag(), iSizeInBool ); 1341 1338 #endif … … 1465 1462 #endif 1466 1463 #endif 1467 #if H_3D_DBBP1468 memcpy( rpcCU->getDBBPFlag() + m_uiAbsIdxInLCU, m_pbDBBPFlag, iSizeInBool );1464 #if NH_3D_DBBP 1465 memcpy( pCtu->getDBBPFlag() + m_absZIdxInCtu, m_pbDBBPFlag, iSizeInBool ); 1469 1466 #endif 1470 1467 … … 1539 1536 memcpy( rpcCU->getSDCSegmentDCOffset(1) + uiPartOffset, m_apSegmentDCOffset[1], sizeof( Pel ) * uiQNumPart); 1540 1537 #endif 1541 #endif1542 #if H_3D_DBBP1543 memcpy( rpcCU->getDBBPFlag() + uiPartOffset, m_pbDBBPFlag, iSizeInBool );1544 1538 #endif 1545 1539 #if H_3D_ARP … … 2112 2106 } 2113 2107 #endif 2114 #if H_3D_DBBP2108 #if NH_3D_DBBP 2115 2109 Pel* TComDataCU::getVirtualDepthBlock(UInt uiAbsPartIdx, UInt uiWidth, UInt uiHeight, UInt& uiDepthStride) 2116 2110 { 2111 const TComSPS* sps = getSlice()->getSPS(); 2112 UInt uiMaxCUWidth = sps->getMaxCUWidth(); 2113 UInt uiMaxCUHeight = sps->getMaxCUHeight(); 2114 2117 2115 // get coded and reconstructed depth view 2118 2116 TComPicYuv* depthPicYuv = NULL; … … 2150 2148 depthPicYuv = baseDepthPic->getPicYuvRec(); 2151 2149 depthPicYuv->extendPicBorder(); 2152 uiDepthStride = depthPicYuv->getStride( );2150 uiDepthStride = depthPicYuv->getStride(COMPONENT_Y); 2153 2151 2154 Int iBlkX = ( get Addr() % baseDepthPic->getFrameWidthInCU() ) * g_uiMaxCUWidth + g_auiRasterToPelX[ g_auiZscanToRaster[ getZorderIdxInCU()+uiAbsPartIdx ] ];2155 Int iBlkY = ( get Addr() / 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 ] ]; 2156 2154 2157 Int iPictureWidth = depthPicYuv->getWidth( );2158 Int iPictureHeight = depthPicYuv->getHeight( );2155 Int iPictureWidth = depthPicYuv->getWidth(COMPONENT_Y); 2156 Int iPictureHeight = depthPicYuv->getHeight(COMPONENT_Y); 2159 2157 2160 2158 … … 2173 2171 Int depthPosY = Clip3(0, iPictureHeight - 1, iBlkY + ((cDv.getVer()+2)>>2)); 2174 2172 2175 pDepthPels = depthPicYuv->get LumaAddr() + depthPosX + depthPosY * uiDepthStride;2173 pDepthPels = depthPicYuv->getAddr(COMPONENT_Y) + depthPosX + depthPosY * uiDepthStride; 2176 2174 } 2177 2175 #endif … … 2185 2183 #endif 2186 2184 2187 #if H_3D_DBBP2185 #if NH_3D_DBBP 2188 2186 Void TComDataCU::setDBBPFlagSubParts ( Bool bDBBPFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ) 2189 2187 { … … 3705 3703 Bool bARPFlag = getARPW(uiAbsPartIdx) > 0; 3706 3704 #endif 3707 #if H_3D_DBBP3705 #if NH_3D_DBBP 3708 3706 Bool bDBBPFlag = getDBBPFlag(uiAbsPartIdx); 3709 3707 assert(bDBBPFlag == getDBBPFlag(0)); … … 3743 3741 && !bARPFlag 3744 3742 #endif 3745 #if H_3D_DBBP3743 #if NH_3D_DBBP 3746 3744 && !bDBBPFlag 3747 3745 #endif … … 4055 4053 spiMvpFlag = true; 4056 4054 } 4057 #if H_3D_DBBP4055 #if NH_3D_DBBP 4058 4056 spiMvpFlag &= !bDBBPFlag; 4059 4057 #endif … … 4194 4192 (nPSW + nPSH > 12) && 4195 4193 #endif 4196 #if H_3D_DBBP4194 #if NH_3D_DBBP 4197 4195 !bDBBPFlag && 4198 4196 #endif … … 5126 5124 UInt partAddr; 5127 5125 5128 #if H_3D_DBBP5126 #if NH_3D_DBBP 5129 5127 if( getDBBPFlag(0) ) 5130 5128 {
Note: See TracChangeset for help on using the changeset viewer.