Changeset 510 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder
- Timestamp:
- 2 Jul 2013, 21:49:16 (12 years ago)
- Location:
- branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecCu.cpp
r504 r510 347 347 m_pcEntropyDecoder->decodeMergeIndex( pcCU, 0, uiAbsPartIdx, uiDepth ); 348 348 UInt uiMergeIndex = pcCU->getMergeIndex(uiAbsPartIdx); 349 350 #if H_3D_VSP 351 Int vspFlag[MRG_MAX_NUM_CANDS_MEM]; 352 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 353 354 m_ppcCU[uiDepth]->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, numValidMergeCand, uiMergeIndex ); 355 pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiAbsPartIdx, 0, uiDepth ); 356 #else 349 357 m_ppcCU[uiDepth]->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex ); 358 #endif 359 350 360 pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiAbsPartIdx, 0, uiDepth ); 351 361 -
branches/HTM-DEV-0.3-dev2/source/Lib/TLibDecoder/TDecEntropy.cpp
r504 r510 225 225 if ( !isMerged ) 226 226 { 227 #if H_3D_VSP 228 Int vspFlag[MRG_MAX_NUM_CANDS_MEM]; 229 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 230 pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, numValidMergeCand ); 231 pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 232 #else 227 233 pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand ); 234 #endif 228 235 isMerged = true; 229 236 } … … 232 239 else 233 240 { 234 uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx); 241 uiMergeIndex = pcCU->getMergeIndex(uiSubPartIdx); // Redundant line 242 #if H_3D_VSP 243 Int vspFlag[MRG_MAX_NUM_CANDS_MEM]; 244 memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM); 245 pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, numValidMergeCand, uiMergeIndex ); 246 pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth ); 247 #else 235 248 pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex ); 249 #endif 236 250 } 237 251 pcCU->setInterDirSubParts( uhInterDirNeighbours[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
Note: See TracChangeset for help on using the changeset viewer.