Ignore:
Timestamp:
26 Nov 2012, 18:35:20 (12 years ago)
Author:
qualcomm
Message:

JCT3V-B0046, MVHEVC codec;
Two bugs fixed for HTM:
1) encoder crash, see the macro 'BUG_FIX_HTM'
2) wrong place for '#endif' in TComPrediction.h

Location:
branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/CommonDef.h

    r189 r194  
    185185// VPS constants
    186186// ====================================================================================================================
     187#if MVHEVC
     188#define MAX_LAYER_NUM                     MAX_VIEW_NUM
     189#endif
    187190#if VIDYO_VPS_INTEGRATION
    188191#define MAX_LAYER_NUM                     MAX_VIEW_NUM
     
    480483  NAL_UNIT_CODED_SLICE,
    481484#if H0566_TLA
     485#if QC_REM_IDV
     486  NAL_UNIT_RESERVED,
     487#else
    482488  NAL_UNIT_CODED_SLICE_IDV,
     489#endif
    483490  NAL_UNIT_CODED_SLICE_TLA,
    484491  NAL_UNIT_CODED_SLICE_CRA,
     
    508515  NAL_UNIT_RESERVED_23,
    509516  NAL_UNIT_UNSPECIFIED_24,
    510 #if VIDYO_VPS_INTEGRATION
     517#if VIDYO_VPS_INTEGRATION|MVHEVC
    511518  NAL_UNIT_VPS,
    512519#else
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/NAL.h

    r100 r194  
    5151  NalRefIdc   m_nalRefIDC;   ///< nal_ref_idc
    5252#endif
    53 #if VIDYO_VPS_INTEGRATION
     53#if VIDYO_VPS_INTEGRATION|MVHEVC
    5454  unsigned    m_layerId;
    5555  unsigned    m_temporalId;  ///< temporal_id
     
    6969    NalUnitType nalUnitType,
    7070    Bool        nalRefFlag,
    71 #if !VIDYO_VPS_INTEGRATION    
     71#if !VIDYO_VPS_INTEGRATION & !MVHEVC    
    7272    Int         viewId,
    7373    Bool        isDepth,
     
    7878    :m_nalUnitType (nalUnitType)
    7979    ,m_nalRefFlag  (nalRefFlag)
    80 #if !VIDYO_VPS_INTEGRATION
     80#if !VIDYO_VPS_INTEGRATION & !MVHEVC
    8181    ,m_viewId      (viewId)
    8282    ,m_isDepth     (isDepth)
     
    139139    return m_nalUnitType == NAL_UNIT_CODED_SLICE_IDR
    140140#if H0566_TLA
     141#if !QC_REM_IDV   
    141142        || m_nalUnitType == NAL_UNIT_CODED_SLICE_IDV
     143#endif
    142144        || m_nalUnitType == NAL_UNIT_CODED_SLICE_CRA
    143145        || m_nalUnitType == NAL_UNIT_CODED_SLICE_TLA
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComDataCU.cpp

    r189 r194  
    43074307  {
    43084308    // col [2]
     4309#if !TMVP_INDEX_MODIFY
    43094310    Int iRefIdxSkip[2] = {-1, -1};
    43104311    for (Int i=0; i<2; i++)
     
    43264327      iRefIdxSkip[i] = (iRefIdxTmp != -1) ? iRefIdxTmp : 0;
    43274328    }
     4329#endif
    43284330    //>> MTK colocated-RightBottom
    43294331    UInt uiPartIdxRB;
     
    43374339
    43384340    TComMv cColMv;
     4341#if TMVP_INDEX_MODIFY
     4342    Int iRefIdx = 0;
     4343#else
    43394344    Int iRefIdx;
    4340 
     4345#endif
    43414346    if      ( ( m_pcPic->getCU(m_uiCUAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getSPS()->getPicWidthInLumaSamples() )  // image boundary check
    43424347    {
     
    43714376      }
    43724377    }
     4378#if !TMVP_INDEX_MODIFY
    43734379    iRefIdx = iRefIdxSkip[0];
    4374 
     4380#else
     4381    iRefIdx = 0;
     4382#endif
    43754383    Bool bExistMV = false;
    43764384    UInt uiPartIdxCenter;
     
    43904398      if ( getSlice()->isInterB() )
    43914399      {       
     4400#if !TMVP_INDEX_MODIFY
    43924401        iRefIdx = iRefIdxSkip[1];
     4402#else
     4403        iRefIdx = 0;
     4404#endif
    43934405        bExistMV = uiLCUIdx >= 0 && xGetColMVP( REF_PIC_LIST_1, uiLCUIdx, uiAbsPartAddr, cColMv, iRefIdx);
    43944406        if( bExistMV == false )
     
    64006412  if( pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) >= 0 )
    64016413  {
     6414#if IV_AS_LT
     6415    Bool bIsCurrRefLongTerm = m_pcSlice->getRefPic( eRefPicList, iRefIdx)->getIsLongTerm();
     6416    Bool bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx))->getIsLongTerm();
     6417    iNeibRefPOC = pcTmpCU->getSlice()->getRefPOC( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) );
     6418    if ( (bIsCurrRefLongTerm == bIsNeibRefLongTerm) && (iNeibRefPOC == iCurrRefPOC) )
     6419#else
    64026420    if( pcTmpCU->getSlice()->getRefViewId( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) ) != m_pcSlice->getRefViewId( eRefPicList, iRefIdx ) )
    64036421    {
     
    64066424    iNeibRefPOC = pcTmpCU->getSlice()->getRefPOC( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) );
    64076425    if( iNeibRefPOC == iCurrRefPOC ) // Same Reference Frame But Diff List//
     6426#endif
    64086427    {
    64096428      TComMv cMvPred = pcTmpCU->getCUMvField(eRefPicList2nd)->getMv(uiIdx);
     
    65426561  Int iNeibRefPOC;
    65436562
     6563#if IV_AS_LT
     6564  Bool bIsCurrRefLongTerm = m_pcSlice->getRefPic( eRefPicList, iRefIdx)->getIsLongTerm();
     6565  Bool bIsNeibRefLongTerm = false;
     6566#endif
    65446567  if( pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) >= 0 )
    65456568  {
    65466569    iNeibRefPOC = pcTmpCU->getSlice()->getRefPOC( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) );
     6570#if IV_AS_LT
     6571    bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx))->getIsLongTerm() ;
     6572    if ( (bIsCurrRefLongTerm == bIsNeibRefLongTerm) && (iNeibRefPOC == iCurrRefPOC) )
     6573#else
    65476574    if( pcTmpCU->getSlice()->getRefViewId( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) ) != m_pcSlice->getRefViewId( eRefPicList, iRefIdx ) )
    65486575      return false;
    65496576    if( iNeibRefPOC == iCurrRefPOC ) // Same Reference Frame But Diff List//
     6577#endif
    65506578    {
    65516579      TComMv cMvPred = pcTmpCU->getCUMvField(eRefPicList2nd)->getMv(uiIdx);
     
    65656593    TComMv cMvPred = pcTmpCU->getCUMvField(eRefPicList)->getMv(uiIdx);
    65666594    TComMv rcMv;
    6567 
     6595#if IV_AS_LT
     6596    bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList, pcTmpCU->getCUMvField(eRefPicList)->getRefIdx(uiIdx))->getIsLongTerm();
     6597    if ( bIsCurrRefLongTerm == bIsNeibRefLongTerm )
     6598    {
     6599#else
    65686600    if( pcTmpCU->getSlice()->getRefViewId( eRefPicList, pcTmpCU->getCUMvField(eRefPicList)->getRefIdx(uiIdx) ) != m_pcSlice->getRefViewId( eRefPicList, iRefIdx ) )
    65696601    {
    65706602      return false;
    65716603    }
    6572 
     6604#endif
    65736605    Int iScale = xGetDistScaleFactor( iCurrPOC, iCurrRefPOC, iNeibPOC, iNeibRefPOC );
    65746606    if ( iScale == 4096 )
     
    65856617    pInfo->m_acMvCand[ pInfo->iN++] = rcMv;
    65866618    return true;
     6619#if IV_AS_LT
     6620    }
     6621#endif
    65876622  }
    65886623  //---------------------- V2(END) --------------------//
     
    65926627    TComMv cMvPred = pcTmpCU->getCUMvField(eRefPicList2nd)->getMv(uiIdx);
    65936628    TComMv rcMv;
    6594 
     6629#if IV_AS_LT
     6630    bIsNeibRefLongTerm = m_pcSlice->getRefPic( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx))->getIsLongTerm(); ;
     6631    if ( bIsCurrRefLongTerm == bIsNeibRefLongTerm )
     6632    {
     6633#else
    65956634    if( pcTmpCU->getSlice()->getRefViewId( eRefPicList2nd, pcTmpCU->getCUMvField(eRefPicList2nd)->getRefIdx(uiIdx) ) != m_pcSlice->getRefViewId( eRefPicList, iRefIdx ) )
    65966635    {
    65976636      return false;
    65986637    }
    6599 
     6638#endif
    66006639    Int iScale = xGetDistScaleFactor( iCurrPOC, iCurrRefPOC, iNeibPOC, iNeibRefPOC );
    66016640    if ( iScale == 4096 )
     
    66126651    pInfo->m_acMvCand[ pInfo->iN++] = rcMv;
    66136652    return true;
     6653#if IV_AS_LT
     6654  }
     6655#endif
    66146656  }
    66156657  //---------------------- V3(END) --------------------//
     
    67226764  Int iColPOC, iColRefPOC, iCurrPOC, iCurrRefPOC, iScale;
    67236765#if SONY_COLPIC_AVAILABILITY
     6766#if IV_AS_LT
     6767  Int iColViewOrderIdx, iCurrViewOrderIdx, iCurrRefViewOrderIdx;
     6768#else
    67246769  Int iColViewOrderIdx, iColRefViewOrderIdx, iCurrViewOrderIdx, iCurrRefViewOrderIdx;
     6770#endif
    67256771#endif
    67266772  TComMv cColMv;
     
    67536799  }
    67546800
    6755 #if !SONY_COLPIC_AVAILABILITY
     6801#if !SONY_COLPIC_AVAILABILITY&!IV_AS_LT
    67566802  if( m_pcSlice->getRefPic(eRefPicList, riRefIdx)->getViewId() != m_pcSlice->getViewId() )
    67576803    return false;
     
    67816827  iColRefPOC = pColCU->getSlice()->getRefPOC(eColRefPicList, iColRefIdx);
    67826828
     6829#if !IV_AS_LT
    67836830#if SONY_COLPIC_AVAILABILITY
    67846831  iColRefViewOrderIdx = pColCU->getSlice()->getRefPic( eColRefPicList, pColCU->getCUMvField(eColRefPicList)->getRefIdx(uiAbsPartAddr))->getViewOrderIdx();
     
    67896836  }
    67906837#endif
    6791 
     6838#else
     6839  Bool bIsCurrRefLongTerm = m_pcSlice->getRefPic(eRefPicList, riRefIdx)->getIsLongTerm();
     6840  Bool bIsColRefLongTerm = pColCU->getSlice()->getWasLongTerm(eColRefPicList, iColRefIdx);
     6841  if(bIsCurrRefLongTerm != bIsColRefLongTerm)
     6842  {
     6843    assert( ((iColPOC == iColRefPOC)&&(iCurrPOC != iCurrRefPOC))||((iColPOC != iColRefPOC)&&(iCurrPOC == iCurrRefPOC)));
     6844    return false;
     6845  }
     6846#endif
    67926847  cColMv = pColCU->getCUMvField(eColRefPicList)->getMv(uiAbsPartAddr);
    67936848
    67946849  iCurrRefPOC = m_pcSlice->getRefPic(eRefPicList, riRefIdx)->getPOC();
     6850#if IV_AS_LT
     6851  {
     6852    assert( ((iColPOC != iColRefPOC)&&(iCurrPOC != iCurrRefPOC))||((iColPOC == iColRefPOC)&&(iCurrPOC == iCurrRefPOC)));
     6853    if(!bIsCurrRefLongTerm)  //short-term
     6854    {
     6855      iScale = xGetDistScaleFactor(iCurrPOC, iCurrRefPOC, iColPOC, iColRefPOC);
     6856      if ( iScale == 4096 )
     6857      {
     6858        rcMv = cColMv;
     6859      }
     6860      else
     6861      {
     6862        rcMv = cColMv.scaleMv( iScale );
     6863      }
     6864    }else
     6865      rcMv = cColMv; //inter-view
     6866  }
     6867#else
    67956868#if SONY_COLPIC_AVAILABILITY
    67966869  iScale = 0;
     
    68146887    rcMv = cColMv.scaleMv( iScale );
    68156888  }
    6816 
     6889#endif
    68176890  return true;
    68186891}
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComDepthMapGenerator.h

    r189 r194  
    239239  Bool              m_bDecoder;
    240240  TComPrediction*   m_pcPrediction;
    241 #if VIDYO_VPS_INTEGRATION
     241#if VIDYO_VPS_INTEGRATION|MVHEVC
    242242  TComVPSAccess*    m_pcVPSAccess;
    243243#endif
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComPic.cpp

    r189 r194  
    519519      UInt uiTempLayer = currSlice->getRefPic(eRefPicList, lpRef)->getCurrSlice()->getTLayer();
    520520      Int iTempDiff = (iTempPoc > iPOCCurr) ? (iTempPoc - iPOCCurr): (iPOCCurr - iTempPoc);
     521#if QC_REM_IDV
     522      TComSlice* refSlice = currSlice->getRefPic(eRefPicList, lpRef)->getCurrSlice();
     523      bRAP = (refSlice->getSPS()->getViewId() && (refSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDR || refSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_CRA))? 1: 0;     
     524#else
    521525      bRAP = (currSlice->getRefPic(eRefPicList, lpRef)->getCurrSlice()->getNalUnitType() == NAL_UNIT_CODED_SLICE_IDV? 1:0);
     526#endif
    522527      if( bRAP)
    523528      {
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComPic.h

    r189 r194  
    140140  TComSlice*    getSlice(Int i)       { return  m_apcPicSym->getSlice(i);  }
    141141  TComSlice*    getCurrSlice()        { return  m_apcPicSym->getSlice(m_uiCurrSliceIdx);  }
    142 #if VIDYO_VPS_INTEGRATION
     142#if VIDYO_VPS_INTEGRATION|MVHEVC
    143143  TComVPS*      getVPS()              { return  m_apcPicSym->getSlice(m_uiCurrSliceIdx)->getVPS();  }
    144144#endif
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComPrediction.cpp

    r189 r194  
    924924}
    925925#endif
     926#if !MVHEVC
    926927  Int     ixFrac      = iHor & 0x3;
    927928  Int     iyFrac      = iVer & 0x3;
     929#endif
    928930  Int     iRefOffset  = ( iHor >> 2 ) + ( iVer >> 2 ) * iRefStride;
    929931#endif
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComPrediction.h

    r189 r194  
    105105#else
    106106  Void xPredInterLumaBlk  ( TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *&dstPic, Bool bi );
     107  Void xPredInterChromaBlk( TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *&dstPic, Bool bi );
    107108#endif
    108   Void xPredInterChromaBlk( TComDataCU *cu, TComPicYuv *refPic, UInt partAddr, TComMv *mv, Int width, Int height, TComYuv *&dstPic, Bool bi );
    109109  Void xWeightedAverage         ( TComDataCU* pcCU, TComYuv* pcYuvSrc0, TComYuv* pcYuvSrc1, Int iRefIdx0, Int iRefIdx1, UInt uiPartAddr, Int iWidth, Int iHeight, TComYuv*& rpcYuvDst );
    110110 
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComSlice.cpp

    r189 r194  
    4444
    4545TComSlice::TComSlice()
     46#if MVHEVC
     47: m_iPPSId                        ( 0  )
     48#else
    4649: m_iPPSId                        ( -1 )
     50#endif
    4751, m_iPOC                          ( 0 )
    4852, m_iLastIDR                      ( 0 )
     
    142146  resetWpScalingLC(m_weightPredTableLC);
    143147  initWpAcDcParam();
     148#if IV_AS_LT
     149  for(Int iNumCount = 0; iNumCount < MAX_NUM_REF+1; iNumCount++)
     150  {
     151     m_bWasLongTerm[0][iNumCount] = false;
     152     m_bWasLongTerm[1][iNumCount] = false;
     153  }
     154#endif
    144155}
    145156
     
    472483  {
    473484    pcRefPic = xGetInterViewRefPic( rapcInterViewRefPics, getViewId() + m_pcSPS->getUsableInterViewRef(i) );
     485#if IV_AS_LT
     486    pcRefPic->setIsLongTerm( 1 );
     487#else
    474488    pcRefPic->setIsLongTerm( 0 );
     489#endif
    475490    pcRefPic->getPicYuvRec()->extendPicBorder();
    476491    RefPicSetIvCurr[NumPocIvCurr] = pcRefPic;
     
    513528  {
    514529    m_apcRefPicList[0][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL0() ? refPicListTemp0[ m_RefPicListModification.getRefPicSetIdxL0(cIdx) ] : refPicListTemp0[cIdx];
     530#if IV_AS_LT
     531    setWasLongTerm(m_apcRefPicList[0][cIdx]->getIsLongTerm(), REF_PIC_LIST_0, cIdx);
     532#endif
    515533  }
    516534  if( m_eSliceType == P_SLICE )
     
    524542    {
    525543      m_apcRefPicList[1][cIdx] = m_RefPicListModification.getRefPicListModificationFlagL1() ? refPicListTemp1[ m_RefPicListModification.getRefPicSetIdxL1(cIdx) ] : refPicListTemp1[cIdx];
     544#if IV_AS_LT
     545      setWasLongTerm(m_apcRefPicList[1][cIdx]->getIsLongTerm(), REF_PIC_LIST_1, cIdx);
     546#endif
    526547    }
    527548  }
     
    876897    for(i=0;i<pReferencePictureSet->getNumberOfPositivePictures()+pReferencePictureSet->getNumberOfNegativePictures();i++)
    877898    {
     899#if IV_AS_LT
     900       if( rpcPic->getPicSym()->getSlice(0)->getPOC() == this->getPOC() + pReferencePictureSet->getDeltaPOC(i))
     901#else
    878902      if(!rpcPic->getIsLongTerm() && rpcPic->getPicSym()->getSlice(0)->getPOC() == this->getPOC() + pReferencePictureSet->getDeltaPOC(i))
     903#endif
    879904      {
    880905        isReference = 1;
     
    886911    for(;i<pReferencePictureSet->getNumberOfPictures();i++)
    887912    {
     913#if IV_AS_LT
     914     if( (rpcPic->getPicSym()->getSlice(0)->getPOC()%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC())) == pReferencePictureSet->getPOC(i)%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC()))
     915#else
    888916      if(rpcPic->getIsLongTerm() && (rpcPic->getPicSym()->getSlice(0)->getPOC()%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC())) == pReferencePictureSet->getPOC(i)%(1<<rpcPic->getPicSym()->getSlice(0)->getSPS()->getBitsForPOC()))
     917#endif
    889918      {
    890919        isReference = 1;
     
    13901419// Video parameter set (VPS)
    13911420// ------------------------------------------------------------------------------------------------
     1421#if MVHEVC
     1422TComVPS::TComVPS()
     1423: m_VPSId                     (  0)
     1424, m_uiMaxTLayers              (  1)
     1425, m_uiMaxLayers               (  1)
     1426, m_bTemporalIdNestingFlag    (false)
     1427, m_uiNumHRDParameter         (  0)
     1428, m_numAddiLayerOperationPoints (2)
     1429, m_numAddiProLevelSets       (  1)
     1430{
     1431  for( Int i = 0; i < MAX_LAYER_NUM; i++)
     1432  {
     1433  m_numOpLayerIdMinus1[i] = 0;
     1434  if(i)
     1435      m_numDirectRefLayer[i] = 1;
     1436  else
     1437    m_numDirectRefLayer[i] = 0;
     1438  for( Int j = 0; j < MAX_LAYER_NUM; j++)
     1439  {
     1440    m_numDirectRefID[i][j] = 0;
     1441    m_numOpLayerId[i][j]   = 0;
     1442  }
     1443    m_uiViewId[i] = 0;
     1444    m_iViewOrderIdx[i] = 0;
     1445  }
     1446 
     1447  for( Int i = 0; i < MAX_TLAYER; i++)
     1448  {
     1449    m_numReorderPics[i] = 0;
     1450    m_uiMaxDecPicBuffering[i] = 0;
     1451    m_uiMaxLatencyIncrease[i] = 0;
     1452  }
     1453}
     1454
     1455TComVPS::~TComVPS()
     1456{
     1457}
     1458#else
    13921459#if VIDYO_VPS_INTEGRATION
    13931460TComVPS::TComVPS()
     
    14221489
    14231490#endif
    1424 
     1491#endif
    14251492
    14261493// ------------------------------------------------------------------------------------------------
     
    14291496
    14301497TComSPS::TComSPS()
    1431 #if VIDYO_VPS_INTEGRATION
     1498#if VIDYO_VPS_INTEGRATION|MVHEVC
    14321499: m_VPSId                     (  0)
    14331500, m_SPSId                     (  0)
     
    14811548, m_bLCMod                    (false)
    14821549#if H0412_REF_PIC_LIST_RESTRICTION
     1550#if MVHEVC
     1551, m_restrictedRefPicListsFlag   (  0)
     1552#else
    14831553, m_restrictedRefPicListsFlag   (  1)
     1554#endif
    14841555, m_listsModificationPresentFlag(  0)
    14851556#endif
     
    17341805TComSPS::initMultiviewSPS( UInt uiViewId, Int iViewOrderIdx, UInt uiCamParPrecision, Bool bCamParSlice, Int** aaiScale, Int** aaiOffset )
    17351806{
     1807#if !MVHEVC
    17361808  AOT( uiViewId == 0 && iViewOrderIdx != 0 );
    17371809  AOT( uiViewId != 0 && iViewOrderIdx == 0 );
    17381810  AOT( uiViewId != 0 && !bCamParSlice && ( aaiScale == 0 || aaiOffset == 0 ) );
    1739 
     1811#endif
    17401812  m_uiViewId              = uiViewId;
    17411813  m_iViewOrderIdx         = iViewOrderIdx;
     
    17451817  ::memset( m_aaiCodedScale,  0x00, sizeof( m_aaiCodedScale  ) );
    17461818  ::memset( m_aaiCodedOffset, 0x00, sizeof( m_aaiCodedOffset ) );
     1819#if !MVHEVC
    17471820  if( !m_bCamParInSliceHeader )
    17481821  {
     
    17551828    }
    17561829  }
     1830#endif
    17571831}
    17581832
     
    23742448, m_ppsMap(MAX_NUM_PPS)
    23752449, m_apsMap(MAX_NUM_APS)
    2376 #if VIDYO_VPS_INTEGRATION
     2450#if VIDYO_VPS_INTEGRATION|MVHEVC
    23772451, m_vpsMap(MAX_NUM_VPS)
    23782452#endif
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TComSlice.h

    r189 r194  
    144144#endif
    145145
    146 #if VIDYO_VPS_INTEGRATION
     146#if VIDYO_VPS_INTEGRATION|MVHEVC
    147147/// VPS class
    148148
     
    156156
    157157  UInt        m_uiExtensionType;
    158  
     158#if !MVHEVC 
    159159  Bool        m_bDependentFlag[MAX_LAYER_NUM];
     160#else
     161  UInt        m_uiNumHRDParameter;
     162  UInt        m_numAddiLayerOperationPoints;
     163  UInt        m_numAddiProLevelSets;
     164  UInt        m_numDirectRefLayer[MAX_LAYER_NUM];
     165  UInt        m_numDirectRefID[MAX_LAYER_NUM][MAX_LAYER_NUM];
     166  UInt        m_numOpLayerIdMinus1[MAX_LAYER_NUM];
     167  UInt        m_numOpLayerId[MAX_LAYER_NUM][MAX_LAYER_NUM];
     168#endif
    160169  UInt        m_uiViewId[MAX_LAYER_NUM];
     170#if !MVHEVC 
    161171  Bool        m_bDepthFlag[MAX_LAYER_NUM];
     172#endif
    162173  Int         m_iViewOrderIdx[MAX_LAYER_NUM];
     174#if !MVHEVC 
    163175  UInt        m_uiDependentLayer[MAX_LAYER_NUM];
     176#endif
    164177
    165178  UInt        m_numReorderPics[MAX_TLAYER];
     
    182195  Bool    getTemporalNestingFlag   ()         { return m_uiMaxLayers;   }
    183196  Void    setTemporalNestingFlag   (UInt t)   { m_bTemporalIdNestingFlag = t; }
    184  
     197#if !MVHEVC
    185198  Void    setExtensionType(UInt v)                     { m_uiExtensionType = v;    }
    186199  UInt    getExtensionType()                             { return m_uiExtensionType; }
     
    188201  Void    setDependentFlag(Bool d, UInt layer)              { m_bDependentFlag[layer] = d;    }
    189202  Bool    getDependentFlag(UInt layer)                      { return m_bDependentFlag[layer]; }
    190 
     203#endif
    191204  Void    setViewId(UInt v, UInt layer)                     { m_uiViewId[layer] = v;    }
    192205  UInt    getViewId(UInt layer)                             { return m_uiViewId[layer]; }
    193  
     206#if !MVHEVC
    194207  Void    setDepthFlag(Bool d, UInt layer)                  { m_bDepthFlag[layer] = d;    }
    195208  Bool    getDepthFlag(UInt layer)                          { return m_bDepthFlag[layer]; }
    196 
     209#endif
    197210  Void    setViewOrderIdx(Int v, UInt layer)                { m_iViewOrderIdx[layer] = v;    }
    198211  Int     getViewOrderIdx(UInt layer)                       { return m_iViewOrderIdx[layer]; }
    199  
     212#if !MVHEVC  
    200213  Void    setDependentLayer(UInt v, UInt layer)                     { m_uiDependentLayer[layer] = v;    }
    201214  UInt    getDependentLayer(UInt layer)                             { return m_uiDependentLayer[layer]; }
    202  
     215#endif
    203216  Void    setNumReorderPics(UInt v, UInt tLayer)                { m_numReorderPics[tLayer] = v;    }
    204217  UInt    getNumReorderPics(UInt tLayer)                        { return m_numReorderPics[tLayer]; }
     
    209222  Void    setMaxLatencyIncrease(UInt v, UInt tLayer)                { m_uiMaxLatencyIncrease[tLayer] = v;    }
    210223  UInt    getMaxLatencyIncrease(UInt tLayer)                        { return m_uiMaxLatencyIncrease[tLayer]; }
    211  
     224#if MVHEVC
     225  Void    setNumHRDParameters(UInt n)                                { m_uiNumHRDParameter = n;    }
     226  UInt    getNumHRDParameters()                                      { return m_uiNumHRDParameter; }
     227  Void    setNumDirectRefLayer(UInt n, UInt layer)                   { m_numDirectRefLayer[layer] = n;        };
     228  UInt    getNumDirectRefLayer(UInt layer)                           { return m_numDirectRefLayer[layer];     };
     229  Void    setDirectRefLayerId (UInt n, UInt layer, UInt refId)       { m_numDirectRefID[layer][refId] = n;   assert(refId < MAX_NUM_REF ); };
     230  UInt    getDirectRefLayerId (        UInt layer, UInt refId)       { return m_numDirectRefID[layer][refId]; };
     231  UInt    getNumAddiLayerOperationPoints(      )               { return m_numAddiLayerOperationPoints;  };
     232  Void    setNumAddiLayerOperationPoints(UInt n)                {  m_numAddiLayerOperationPoints = n;  };
     233  Void    setNumAddiProLevelSets        (UInt n)                     {  m_numAddiProLevelSets = n;}
     234  UInt    getNumAddiProLevelSets        (      )                     { return m_numAddiProLevelSets;}
     235
     236  Void    setNumOpLayerIdMinus1         (UInt n, UInt layer)                     {  m_numOpLayerIdMinus1[layer] = n;}
     237  UInt    getNumOpLayerIdMinus1         (UInt layer      )                       { return m_numOpLayerIdMinus1[layer];}
     238
     239  Void    setNumOpLayerId               (UInt n, UInt layer, UInt OpId)                     {  m_numOpLayerId[layer][OpId] = n;}
     240  UInt    getNumOpLayerId               (UInt layer, UInt OpId        )                     { return m_numOpLayerId[layer][OpId];}
     241
     242#endif
    212243};
    213244
     
    218249{
    219250private:
    220 #if VIDYO_VPS_INTEGRATION
     251#if VIDYO_VPS_INTEGRATION|MVHEVC
    221252  Int          m_VPSId;
    222253#endif
     
    391422  TComSPS();
    392423  virtual ~TComSPS();
    393 #if VIDYO_VPS_INTEGRATION
     424#if VIDYO_VPS_INTEGRATION|MVHEVC
    394425  Int  getVPSId       ()         { return m_VPSId;          }
    395426  Void setVPSId       (Int i)    { m_VPSId = i;             }
     
    12211252 
    12221253  // access channel
    1223 #if VIDYO_VPS_INTEGRATION
     1254#if VIDYO_VPS_INTEGRATION|MVHEVC
    12241255  TComVPS*    m_pcVPS;
     1256#endif
     1257#if IV_AS_LT
     1258  Bool                  m_bWasLongTerm[2][MAX_NUM_REF+1]; //was long-term picture
    12251259#endif
    12261260  TComSPS*    m_pcSPS;
     
    12971331  Int        m_aaiCodedOffset[2][MAX_VIEW_NUM];
    12981332
    1299 #if SONY_COLPIC_AVAILABILITY
     1333#if SONY_COLPIC_AVAILABILITY|MVHEVC
    13001334  Int         m_iViewOrderIdx;
    13011335#endif
     
    13111345  Void      initTiles();
    13121346
    1313 #if VIDYO_VPS_INTEGRATION
     1347#if VIDYO_VPS_INTEGRATION|MVHEVC
    13141348  Void      setVPS          ( TComVPS* pcVPS ) { m_pcVPS = pcVPS; }
    13151349  TComVPS*  getVPS          () { return m_pcVPS; }
    13161350#endif
     1351#if IV_AS_LT
     1352  Void          setWasLongTerm( Bool lt,  RefPicList e, Int iRefIdx ) { m_bWasLongTerm[e][iRefIdx] = lt; }
     1353  Bool          getWasLongTerm( RefPicList e, Int iRefIdx           ) { return m_bWasLongTerm[e][iRefIdx] ; }
     1354#endif
     1355
    13171356  Void      setSPS          ( TComSPS* pcSPS ) { m_pcSPS = pcSPS; }
    13181357  TComSPS*  getSPS          () { return m_pcSPS; }
     
    15871626  Void setViewId( Int viewId )       { m_viewId = viewId;   }
    15881627  Int  getViewId()                   { return m_viewId;     }
     1628#if MVHEVC
     1629  Void    setViewOrderIdx(Int v, UInt layer)                { m_iViewOrderIdx = v;    }
     1630  Int     getViewOrderIdx()                                 { return m_iViewOrderIdx; }
     1631#endif
    15891632  Void setIsDepth( Bool isDepth )    { m_isDepth = isDepth; }
    15901633  Bool getIsDepth()                  { return m_isDepth;    }
     
    16551698  }
    16561699
     1700#if MVHEVC
     1701  Void clearPSList()
     1702  {
     1703    m_paramsetMap.clear();
     1704  }
     1705#endif
    16571706private:
    16581707  std::map<Int,T *> m_paramsetMap;
     
    16651714  ParameterSetManager();
    16661715  virtual ~ParameterSetManager();
    1667 #if VIDYO_VPS_INTEGRATION
     1716#if VIDYO_VPS_INTEGRATION|MVHEVC
    16681717  //! store video parameter set and take ownership of it
    16691718  Void storeVPS(TComVPS *vps) { m_vpsMap.storePS( vps->getVPSId(), vps); };
     
    16711720  TComVPS* getVPS(Int vpsId)  { return m_vpsMap.getPS(vpsId); };
    16721721  TComVPS* getFirstVPS()      { return m_vpsMap.getFirstPS(); };
     1722#if MVHEVC
     1723  Void     clearVPS()         { m_vpsMap.clearPSList(); };
     1724  Void     clearSPS()         { m_spsMap.clearPSList(); };
     1725  Void     clearPPS()         { m_ppsMap.clearPSList(); };
     1726#endif
    16731727#endif
    16741728  //! store sequence parameter set and take ownership of it
     
    16931747  ParameterSetMap<TComPPS> m_ppsMap;
    16941748  ParameterSetMap<TComAPS> m_apsMap;
    1695 #if VIDYO_VPS_INTEGRATION
     1749#if VIDYO_VPS_INTEGRATION|MVHEVC
    16961750  ParameterSetMap<TComVPS> m_vpsMap;
    16971751#endif
  • branches/HTM-5.0-Qualcomm/source/Lib/TLibCommon/TypeDef.h

    r189 r194  
    4141//! \ingroup TLibCommon
    4242//! \{
    43 
     43#define MVHEVC                            0
     44#define            IV_AS_LT               1   //inter-view reference pictures are treated as long-term pictures         
     45#define            TMVP_INDEX_MODIFY      1   //the reference index for temporal merging candidate is set to 0, as defined in HEVC
     46#define            QC_REM_IDV             1   //nal unit type NAL_UNIT_CODED_SLICE_IDV is removed.
     47#define            BUG_FIX_HTM            1
     48#if !MVHEVC
    4449///// ***** FIXES *********
    4550// A
     
    177182
    178183#define HHI_MPI_MERGE_POS                 0
    179 
     184#endif
    180185///// ***** HM 6.1 *********
    181186#define SKIPFRAME_BUGFIX                  1 ///< bug fix to enable skipFrame at decoder
     
    477482// VPS INTEGRATION
    478483// ====================================================================================================================
    479 
     484#if !MVHEVC
    480485#if VIDYO_VPS_INTEGRATION
    481486#define MAX_NUM_VPS 10
    482487#endif
     488#else
     489#define MAX_NUM_VPS 1
     490#endif
     491
    483492
    484493// ====================================================================================================================
Note: See TracChangeset for help on using the changeset viewer.