Changeset 622 in 3DVCSoftware for trunk/source/Lib/TLibDecoder/TDecCu.cpp


Ignore:
Timestamp:
11 Sep 2013, 14:40:25 (11 years ago)
Author:
tech
Message:

Merged 8.0-dev0@621 (MV-HEVC 5 HLS).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/Lib/TLibDecoder/TDecCu.cpp

    r608 r622  
    315315#if H_3D_NBDV_REF
    316316      if(pcCU->getSlice()->getVPS()->getDepthRefinementFlag( pcCU->getSlice()->getLayerIdInVps() ))  //Notes from QC: please check the condition for DoNBDV. Remove this comment once it is done.
     317      {
    317318        DvInfo.bDV = m_ppcCU[uiDepth]->getDisMvpCandNBDV(&DvInfo, true);
     319      }
    318320      else
    319321#endif
     322      {
    320323        DvInfo.bDV = m_ppcCU[uiDepth]->getDisMvpCandNBDV(&DvInfo);
     324      }
     325
     326#if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC   
     327      if ( g_decTraceDispDer )
     328      {
     329        DTRACE_CU( "RefViewIdx",  DvInfo.m_aVIdxCan );       
     330        DTRACE_CU( "MvDisp[x]", DvInfo.m_acNBDV.getHor() );
     331        DTRACE_CU( "MvDisp[y]", DvInfo.m_acNBDV.getVer() );
     332        DTRACE_CU( "MvRefinedDisp[x]", DvInfo.m_acDoNBDV.getHor() );
     333        DTRACE_CU( "MvRefinedDisp[y]", DvInfo.m_acDoNBDV.getVer() );
     334      }
     335#endif
    321336
    322337      pcCU->setDvInfoSubParts(DvInfo, uiAbsPartIdx, uiDepth);
     
    366381    Int vspFlag[MRG_MAX_NUM_CANDS_MEM];
    367382    memset(vspFlag, 0, sizeof(Int)*MRG_MAX_NUM_CANDS_MEM);
    368 #if MTK_VSP_FIX_ALIGN_WD_E0172
    369383    InheritedVSPDisInfo inheritedVSPDisInfo[MRG_MAX_NUM_CANDS_MEM];
    370384    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
    381385    pcCU->setVSPFlagSubParts( vspFlag[uiMergeIndex], uiAbsPartIdx, 0, uiDepth );
    382386#else
    383387    m_ppcCU[uiDepth]->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand, uiMergeIndex );
    384388#endif
    385 #if MTK_VSP_FIX_ALIGN_WD_E0172
     389#if H_3D_VSP
    386390    if(vspFlag[uiMergeIndex])
    387391    {
     
    400404        pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvd( cTmpMv, SIZE_2Nx2N, uiAbsPartIdx, uiDepth );
    401405        pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->setAllMvField( cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ], SIZE_2Nx2N, uiAbsPartIdx, uiDepth );
     406#if ENC_DEC_TRACE && H_MV_ENC_DEC_TRAC   
     407        if ( g_decTraceMvFromMerge )
     408        {       
     409          if ( uiRefListIdx == 0 )
     410          {
     411            DTRACE_PU( "mvL0[0]", cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getHor());
     412            DTRACE_PU( "mvL0[1]", cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getVer());
     413            DTRACE_PU( "refIdxL0   ", cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getRefIdx());
     414          }
     415          else
     416          {
     417            DTRACE_PU( "mvL1[0]", cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getHor());
     418            DTRACE_PU( "mvL1[1]", cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getVer());
     419            DTRACE_PU( "refIdxL1", cMvFieldNeighbours[ 2*uiMergeIndex + uiRefListIdx ].getRefIdx());
     420          }
     421        }
     422#endif
    402423      }
    403424    }
Note: See TracChangeset for help on using the changeset viewer.