Ignore:
Timestamp:
13 May 2013, 16:09:14 (12 years ago)
Author:
tech
Message:
  • Fixed trace files for MV-HEVC.
  • Fixed assertion mismatch due to NumPocTotalCurr.
Location:
branches/HTM-DEV-0.1-dev/source/Lib/TLibEncoder
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.1-dev/source/Lib/TLibEncoder/TEncBinCoderCABAC.cpp

    r324 r401  
    185185{
    186186  {
     187#if !H_MV
    187188    DTRACE_CABAC_VL( g_nSymbolCounter++ )
    188189    DTRACE_CABAC_T( "\tstate=" )
     
    191192    DTRACE_CABAC_V( binValue )
    192193    DTRACE_CABAC_T( "\n" )
     194#endif
    193195  }
    194196  m_uiBinsCoded += m_binCountIncrement;
     
    231233{
    232234  {
     235#if !H_MV
    233236    DTRACE_CABAC_VL( g_nSymbolCounter++ )
    234237    DTRACE_CABAC_T( "\tEPsymbol=" )
    235238    DTRACE_CABAC_V( binValue )
    236239    DTRACE_CABAC_T( "\n" )
     240#endif
    237241  }
    238242  m_uiBinsCoded += m_binCountIncrement;
     
    259263  for ( Int i = 0; i < numBins; i++ )
    260264  {
     265#if !H_MV
    261266    DTRACE_CABAC_VL( g_nSymbolCounter++ )
    262267    DTRACE_CABAC_T( "\tEPsymbol=" )
    263268    DTRACE_CABAC_V( ( binValues >> ( numBins - 1 - i ) ) & 1 )
    264269    DTRACE_CABAC_T( "\n" )
     270#endif
    265271  }
    266272 
  • branches/HTM-DEV-0.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r368 r401  
    799799      TComReferencePictureSet altRps;
    800800      Bool useAltRps = false;
     801#if H_MV
     802      if (pcSlice->getRapPicFlag() && ( pcSlice->getLayerId() == 0 ) )
     803#else
    801804      if (pcSlice->getRapPicFlag())
     805#endif
    802806      {
    803807        for (Int picIdx = 0; !useAltRps && picIdx < rps->getNumberOfPictures(); picIdx++)
  • branches/HTM-DEV-0.1-dev/source/Lib/TLibEncoder/TEncEntropy.cpp

    r324 r401  
    587587  if( pcCU->isIntra(uiAbsPartIdx) )
    588588  {
     589#if !H_MV
    589590    DTRACE_CABAC_VL( g_nSymbolCounter++ )
    590591    DTRACE_CABAC_T( "\tdecodeTransformIdx()\tCUDepth=" )
    591592    DTRACE_CABAC_V( uiDepth )
    592593    DTRACE_CABAC_T( "\n" )
     594#endif
    593595  }
    594596  else
  • branches/HTM-DEV-0.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r369 r401  
    28462846  {
    28472847    Int numModifications = 0;
    2848    
     2848
    28492849    for( Int k = 0; k < ge.m_numInterViewRefPics; k++ )
    28502850    {
     
    28532853
    28542854    // set inter-view modifications
     2855    Bool isModified = false;
     2856    Int tempList[16];
     2857    for( Int k = 0; k < 16; k++ ) { tempList[k] = -1; }
     2858
    28552859    if( (maxRefListSize > 1) && (numModifications > 0) )
    28562860    {
    2857       refPicListModification->setRefPicListModificationFlagL( li, true );
    2858       Int tempList[16];
    2859       for( Int k = 0; k < 16; k++ ) { tempList[k] = -1; }
    2860 
    2861       Bool isModified = false;
    28622861      for( Int k = 0; k < ge.m_numInterViewRefPics; k++ )
    28632862      {
     
    28782877        }
    28792878      }
    2880       if( isModified )
    2881       {
    2882         Int temporalRefIdx = 0;
    2883         for( Int i = 0; i < pcSlice->getNumRefIdx( ( li == 0 ) ? REF_PIC_LIST_0 : REF_PIC_LIST_1 ); i++ )
    2884         {
    2885           if( tempList[i] >= 0 )
    2886           {
    2887             refPicListModification->setRefPicSetIdxL( li, i, tempList[i] );
    2888           }
    2889           else
    2890           {
    2891             refPicListModification->setRefPicSetIdxL( li, i, temporalRefIdx );
    2892             temporalRefIdx++;
    2893           }
    2894         }
    2895       }
    2896       else
    2897       {
    2898         refPicListModification->setRefPicListModificationFlagL( li, false );
    2899       }
    2900     }
     2879    }
     2880
     2881    refPicListModification->setRefPicListModificationFlagL( li, isModified ); 
     2882
     2883    if( isModified )
     2884    {
     2885      Int temporalRefIdx = 0;
     2886      for( Int i = 0; i < pcSlice->getNumRefIdx( ( li == 0 ) ? REF_PIC_LIST_0 : REF_PIC_LIST_1 ); i++ )
     2887      {
     2888        if( tempList[i] >= 0 )
     2889        {
     2890          refPicListModification->setRefPicSetIdxL( li, i, tempList[i] );
     2891        }
     2892        else
     2893        {
     2894          refPicListModification->setRefPicSetIdxL( li, i, temporalRefIdx );
     2895          temporalRefIdx++;
     2896        }
     2897      }
     2898    }   
    29012899  }
    29022900}
Note: See TracChangeset for help on using the changeset viewer.