Changeset 1131 in 3DVCSoftware for branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncSearch.cpp
- Timestamp:
- 18 Feb 2015, 17:39:40 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-13.0-dev0/source/Lib/TLibEncoder/TEncSearch.cpp
r1124 r1131 2881 2881 Int index=0; 2882 2882 Pel testDepth; 2883 #if SINGLE_DEPTH_SIMP_J01152884 2883 Pel DepthNeighbours[2]; 2885 #else2886 Pel DepthNeighbours[5];2887 #endif2888 2884 //construction of depth candidates 2889 #if SINGLE_DEPTH_SIMP_J01152890 2885 for( Int i = 0; (i < 2) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ ) 2891 #else2892 for( Int i = 0; (i < 5) && (index<SINGLE_DEPTH_MODE_CAND_LIST_SIZE) ; i++ )2893 #endif2894 2886 { 2895 2887 if(!pcCU->getNeighDepth (0, 0, &testDepth, i)) … … 2899 2891 DepthNeighbours[index]=testDepth; 2900 2892 index++; 2901 #if !SINGLE_DEPTH_SIMP_J01152902 for(Int j=0;j<index-1;j++)2903 {2904 if( (DepthNeighbours[index-1]==DepthNeighbours[j]))2905 {2906 index--;2907 break;2908 }2909 }2910 #endif2911 2893 } 2912 2894 … … 3132 3114 if( m_pcEncCfg->getIsDepth() && uiWidth >= DIM_MIN_SIZE && uiWidth <= DIM_MAX_SIZE && uiWidth == uiHeight ) 3133 3115 { 3134 #if HHI_TOOL_PARAMETERS_I2_J01073135 3116 if( bOnlyIVP && pcCU->getSlice()->getIntraContourFlag() ) 3136 #else3137 if( bOnlyIVP && m_pcEncCfg->getUseIVP() )3138 #endif3139 3117 { 3140 3118 TComWedgelet* dmm4Segmentation = new TComWedgelet( uiWidth, uiHeight ); … … 3158 3136 3159 3137 #if H_3D_DIM_DMM 3160 #if HHI_TOOL_PARAMETERS_I2_J01073161 3138 if( ( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) || pcCU->getSlice()->getIntraContourFlag() ) 3162 #else3163 if( ( m_pcEncCfg->getUseDMM() || m_pcEncCfg->getUseIVP() )3164 #endif3165 3139 #if H_3D_FAST_DEPTH_INTRA 3166 3140 && (uiRdModeList[0] != PLANAR_IDX || varCU >= varThreshold) … … 3169 3143 { 3170 3144 UInt uiStart, uiEnd; 3171 #if HHI_TOOL_PARAMETERS_I2_J01073172 3145 if( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSlice()->getIntraContourFlag() ) 3173 #else3174 if( m_pcEncCfg->getUseDMM() && m_pcEncCfg->getUseIVP() )3175 #endif3176 3146 { 3177 3147 uiStart = 0; 3178 3148 uiEnd = 2; 3179 3149 } 3180 #if HHI_TOOL_PARAMETERS_I2_J01073181 3150 else if( ( m_pcEncCfg->getUseDMM() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) ) 3182 #else3183 else if( m_pcEncCfg->getUseDMM() )3184 #endif3185 3151 { 3186 3152 uiStart = 0; 3187 3153 uiEnd = 1; 3188 3154 } 3189 #if HHI_TOOL_PARAMETERS_I2_J01073190 3155 else if( pcCU->getSlice()->getIntraContourFlag() ) 3191 #else3192 else if( m_pcEncCfg->getUseIVP() )3193 #endif3194 3156 { 3195 3157 uiStart = 1; … … 3329 3291 #if H_3D_DIM_SDC 3330 3292 #if H_3D_FAST_INTRA_SDC 3331 #if HHI_TOOL_PARAMETERS_I2_J01073332 3293 Bool bTestSDC = ( ( m_pcEncCfg->getUseSDC() && pcCU->getSlice()->getIntraSdcWedgeFlag() ) && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD); 3333 #else3334 Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) && uiMode >= numModesForFullRD);3335 #endif3336 3294 #else 3337 3295 Bool bTestSDC = ( m_pcEncCfg->getUseSDC() && pcCU->getSDCAvailable(uiPartOffset) ); … … 4177 4135 } 4178 4136 #endif 4179 #if !LGE_DDD_REMOVAL_J0042_J00304180 #if H_3D_DDD4181 if( uiMergeCand == pcCU->getUseDDDCandIdx() )4182 {4183 pcCU->setUseDDD( true, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );4184 pcCU->setDDDepthSubParts( pcCU->getDDTmpDepth(), uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );4185 }4186 else4187 {4188 pcCU->setUseDDD( false, uiAbsPartIdx, iPUIdx, pcCU->getDepth( uiAbsPartIdx ) );4189 }4190 #endif4191 #endif4192 4137 4193 4138 xGetInterPredictionError( pcCU, pcYuvOrg, iPUIdx, uiCostCand, m_pcEncCfg->getUseHADME() ); … … 4875 4820 #if H_3D_VSP 4876 4821 pcCU->setVSPFlagSubParts( vspFlag[uiMRGIndex], uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4877 #endif4878 #if !LGE_DDD_REMOVAL_J0042_J00304879 #if H_3D_DDD4880 if( uiMRGIndex == pcCU->getUseDDDCandIdx() )4881 {4882 assert( vspFlag[uiMRGIndex] == 0 );4883 assert( bSPIVMPFlag[uiMRGIndex] == 0 );4884 pcCU->setUseDDD( true, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4885 pcCU->setDDDepthSubParts( pcCU->getDDTmpDepth(), uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4886 }4887 else4888 {4889 pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4890 }4891 #endif4892 4822 #endif 4893 4823 #if H_3D_SPIVMP … … 4967 4897 pcCU->setSPIVMPFlagSubParts(0, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); 4968 4898 #endif 4969 #if !LGE_DDD_REMOVAL_J0042_J00304970 #if H_3D_DDD4971 pcCU->setUseDDD( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) );4972 #endif4973 #endif4974 4899 // set ME result 4975 4900 pcCU->setMergeFlagSubParts( false, uiPartAddr, iPartIdx, pcCU->getDepth( uiPartAddr ) ); … … 5353 5278 #endif 5354 5279 #if H_3D_INTER_SDC 5355 #if HHI_TOOL_PARAMETERS_I2_J01075356 5280 pcPatternKey->setSDCMRSADFlag( pcCU->getSlice()->getInterSdcFlag() ); 5357 #else5358 if ( pcCU->getSlice()->getIsDepth() && pcCU->getSlice()->getVPS()->getInterSDCFlag( pcCU->getSlice()->getLayerIdInVps() ) )5359 {5360 pcPatternKey->setSDCMRSADFlag( true );5361 }5362 else5363 {5364 pcPatternKey->setSDCMRSADFlag( false );5365 }5366 #endif5367 5281 #endif 5368 5282
Note: See TracChangeset for help on using the changeset viewer.