Changeset 1225 in 3DVCSoftware for branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 22 May 2015, 05:38:04 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.1-update-dev2-Sharp/source/Lib/TLibCommon/TComDataCU.cpp
r1213 r1225 137 137 m_puhARPW = NULL; 138 138 #endif 139 #if H_3D_IC139 #if NH_3D_IC 140 140 m_pbICFlag = NULL; 141 141 #endif … … 252 252 m_puhARPW = new UChar[ uiNumPartition]; 253 253 #endif 254 #if H_3D_IC254 #if NH_3D_IC 255 255 m_pbICFlag = (Bool* )xMalloc(Bool, uiNumPartition); 256 256 #endif … … 471 471 if ( m_puhARPW ) { delete[] m_puhARPW; m_puhARPW = NULL; } 472 472 #endif 473 #if H_3D_IC473 #if NH_3D_IC 474 474 if ( m_pbICFlag ) { xFree(m_pbICFlag); m_pbICFlag = NULL; } 475 475 #endif … … 601 601 m_puhARPW [ui] = pcFrom->getARPW( ui ); 602 602 #endif 603 #if H_3D_IC604 m_pbICFlag[ui] = pcFrom->m_pbICFlag[ui];603 #if NH_3D_IC 604 memset( m_pbICFlag , false, m_uiNumPartition * sizeof( *m_pbICFlag ) ); 605 605 #endif 606 606 … … 654 654 memset( m_puhARPW + firstElement, 0, numElements * sizeof( UChar ) ); 655 655 #endif 656 #if H_3D_IC657 memset( m_pbICFlag + firstElement, false, numElements * sizeof( *m_pbICFlag ) );658 #endif659 660 656 661 657 #if H_3D_DIM … … 815 811 m_puhARPW[ui] = 0; 816 812 #endif 817 #if H_3D_IC813 #if NH_3D_IC 818 814 m_pbICFlag[ui] = false; 819 815 #endif … … 926 922 memset( m_puhHeight, uhHeight, iSizeInUchar ); 927 923 memset( m_pbIPCMFlag, 0, iSizeInBool ); 928 #if H_3D_IC924 #if NH_3D_IC 929 925 memset( m_pbICFlag, 0, iSizeInBool ); 930 926 #endif … … 986 982 m_puhARPW [ui] = pcCU->getARPW( uiPartOffset+ui ); 987 983 #endif 988 #if H_3D_IC984 #if NH_3D_IC 989 985 m_pbICFlag [ui] = pcCU->m_pbICFlag[uiPartOffset+ui]; 990 986 #endif … … 1093 1089 m_puhARPW = pcCU->getARPW() + uiPart; 1094 1090 #endif 1095 #if H_3D_IC1091 #if NH_3D_IC 1096 1092 m_pbICFlag = pcCU->getICFlag() + uiPart; 1097 1093 #endif … … 1259 1255 } 1260 1256 #endif 1261 #if H_3D_IC1257 #if NH_3D_IC 1262 1258 m_pbICFlag = pcCU->getICFlag() + uiAbsPartIdx; 1263 1259 #endif … … 1383 1379 memcpy( m_puhARPW + uiOffset, pcCU->getARPW(), iSizeInUchar ); 1384 1380 #endif 1385 #if H_3D_IC1381 #if NH_3D_IC 1386 1382 memcpy( m_pbICFlag + uiOffset, pcCU->getICFlag(), iSizeInBool ); 1387 1383 #endif … … 1504 1500 memcpy( rpcCU->getARPW() + m_uiAbsIdxInLCU, m_puhARPW, iSizeInUchar ); 1505 1501 #endif 1506 #if H_3D_IC1507 memcpy( rpcCU->getICFlag() + m_uiAbsIdxInLCU, m_pbICFlag, iSizeInBool);1502 #if NH_3D_IC 1503 memcpy( pCtu->getICFlag() + m_absZIdxInCtu, m_pbICFlag, sizeof( *m_pbICFlag ) * m_uiNumPartition ); 1508 1504 #endif 1509 1505 … … 1545 1541 #if H_3D_ARP 1546 1542 memcpy( rpcCU->getARPW() + uiPartOffset, m_puhARPW, iSizeInUchar ); 1547 #endif1548 #if H_3D_IC1549 memcpy( rpcCU->getICFlag() + uiPartOffset, m_pbICFlag, iSizeInBool );1550 1543 #endif 1551 1544 … … 2731 2724 2732 2725 // This is for use by a leaf/sub CU object only, with no additional AbsPartIdx 2733 #if H_3D_IC2726 #if NH_3D_IC 2734 2727 Void TComDataCU::getPartIndexAndSize( UInt uiPartIdx, UInt& ruiPartAddr, Int& riWidth, Int& riHeight, UInt uiAbsPartIdx, Bool bLCU) 2735 2728 { … … 3699 3692 #endif 3700 3693 3701 #if H_3D_IC3694 #if NH_3D_IC 3702 3695 Bool bICFlag = getICFlag(uiAbsPartIdx); 3703 3696 #endif … … 3737 3730 #if H_3D_VSP 3738 3731 , (pcCULeft->getVSPFlag(uiLeftPartIdx) != 0 3739 #if H_3D_IC3732 #if NH_3D_IC 3740 3733 && !bICFlag 3741 3734 #endif … … 4185 4178 if ( 4186 4179 (!getAvailableFlagA1() || !(pcCULeft->getVSPFlag(uiLeftPartIdx) != 0)) && 4187 #if H_3D_IC4180 #if NH_3D_IC 4188 4181 !bICFlag && 4189 4182 #endif … … 5222 5215 return ( getSkipFlag( uiPartIdx ) ); 5223 5216 } 5224 5225 #if H_3D_IC5226 Bool TComDataCU::isIC( UInt uiPartIdx )5227 {5228 if ( m_pcSlice->isIntra () )5229 {5230 return false;5231 }5232 return ( ( getSkipFlag(uiPartIdx) || getPredictionMode(uiPartIdx) == MODE_INTER) && getICFlag( uiPartIdx ) && isICFlagRequired( uiPartIdx ) );5233 }5234 #endif5235 5217 5236 5218 // ==================================================================================================================== … … 6681 6663 #endif 6682 6664 6683 #if H_3D_IC6665 #if NH_3D_IC 6684 6666 Void TComDataCU::setICFlagSubParts( Bool bICFlag, UInt uiAbsPartIdx, UInt uiPartIdx, UInt uiDepth ) 6685 6667 { 6686 memset( m_pbICFlag + uiAbsPartIdx, bICFlag, (m_pcPic->getNumPart InCU() >> ( 2 * uiDepth ))*sizeof(Bool) );6668 memset( m_pbICFlag + uiAbsPartIdx, bICFlag, (m_pcPic->getNumPartitionsInCtu() >> ( 2 * uiDepth ))*sizeof(Bool) ); 6687 6669 } 6688 6670
Note: See TracChangeset for help on using the changeset viewer.