Changeset 615 in 3DVCSoftware for branches/HTM-8.0-dev0/source/Lib/TLibDecoder


Ignore:
Timestamp:
6 Sep 2013, 00:42:44 (11 years ago)
Author:
tech
Message:

Cleanups and macro removals related to merge and vsp

  • MTK_VSP_FIX_ALIGN_WD_E0172
  • H_3D_FIX_BVSP
  • QC_INRIA_MTK_MRG_E0126
  • MTK_DVMCP_FIX_E0172
  • TComDataCU::xAddVspCand
  • TComDataCU::xAddIvMRGCand
  • TComDataCU::getInterMergeCandidates
Location:
branches/HTM-8.0-dev0/source/Lib/TLibDecoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-8.0-dev0/source/Lib/TLibDecoder/TDecCu.cpp

    r608 r615  
    366366    Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
    367367    memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
    368 #if MTK_VSP_FIX_ALIGN_WD_E0172
    369368    InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM];
    370369    m_ppcCU[uiDepth]->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, inheritedVSPDisInfo, numValidMergeCand, uiMergeIndex );
    371 #else
    372 #if MTK_VSP_FIX_E0172
    373     Int vspDir[MRG_MAX_NUM_CANDS_MEM];
    374     memset(vspDir, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
    375     m_ppcCU[uiDepth]->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag,vspDir, numValidMergeCand, uiMergeIndex );
    376     pcCU->setVSPDirSubParts( vspDir[uiMergeIndex], uiAbsPartIdx, 0, uiDepth );
    377 #else
    378     m_ppcCU[uiDepth]->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, numValidMergeCand, uiMergeIndex );
    379 #endif
    380 #endif// end of MTK_VSP_FIX_ALIGN_WD_E0172
    381370    pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiAbsPartIdx, 0, uiDepth );
    382371#else
    383372    m_ppcCU[uiDepth]->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
    384373#endif
    385 #if MTK_VSP_FIX_ALIGN_WD_E0172
     374#if H_3D_VSP
    386375    if(vspFlag[uiMergeIndex])
    387376    {
  • branches/HTM-8.0-dev0/source/Lib/TLibDecoder/TDecEntropy.cpp

    r608 r615  
    243243          Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
    244244          memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
    245 #if MTK_VSP_FIX_ALIGN_WD_E0172
    246245          InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM];
    247246          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, inheritedVSPDisInfo, numValidMergeCand );
    248 #else
    249 #if MTK_VSP_FIX_E0172
    250           Int vspDir[MRG_MAX_NUM_CANDS_MEM];
    251           memset(vspDir, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
    252           pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, vspDir, numValidMergeCand );
    253           pcCU->setVSPDirSubParts( vspDir[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
    254 #else
    255           pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, numValidMergeCand );
    256 #endif
    257 #endif//end of MTK_VSP_FIX_ALIGN_WD_E0172
    258247          pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
    259 #if MTK_VSP_FIX_ALIGN_WD_E0172
     248
    260249          if(vspFlag[uiMergeIndex])
    261250          {
    262251            pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeIndex].m_acDvInfo, uiSubPartIdx, uiPartIdx, uiDepth);
    263252          }
    264 #endif
    265253#else
    266254          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
     
    276264        Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
    277265        memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
    278 #if MTK_VSP_FIX_ALIGN_WD_E0172
    279266        InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM];
    280267        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, inheritedVSPDisInfo,numValidMergeCand, uiMergeIndex );
    281 #else
    282 #if MTK_VSP_FIX_E0172
    283         Int vspDir[MRG_MAX_NUM_CANDS_MEM];
    284         memset(vspDir, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
    285         pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, vspDir,numValidMergeCand, uiMergeIndex );
    286         pcCU->setVSPDirSubParts( vspDir[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
    287 #else
    288         pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, vspFlag, numValidMergeCand, uiMergeIndex );
    289 #endif
    290 #endif//end of MTK_VSP_FIX_ALIGN_WD_E0172
    291268        pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiSubPartIdx, uiPartIdx, uiDepth );
    292 #if MTK_VSP_FIX_ALIGN_WD_E0172
    293269        if(vspFlag[uiMergeIndex])
    294270        {
    295271          pcCU->setDvInfoSubParts(inheritedVSPDisInfo[uiMergeIndex].m_acDvInfo, uiSubPartIdx, uiPartIdx, uiDepth);
    296272        }
    297 #endif
    298273#else
    299274        pcSubCU->getInterMergeCandidates( uiSubPartIdx-uiAbsPartIdx, uiPartIdx, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
     
    327302      }
    328303    }
    329 #if MTK_VSP_FIX_E0172 || MTK_VSP_FIX_ALIGN_WD_E0172
     304#if H_3D_VSP
    330305    if ( (pcCU->getInterDir(uiSubPartIdx) == 3) && pcSubCU->isBipredRestriction(uiPartIdx) && (pcCU->getVSPFlag(uiSubPartIdx) == false))
    331306#else
Note: See TracChangeset for help on using the changeset viewer.