Changeset 427 in SHVCSoftware for branches/SHM-3.1-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
10 Oct 2013, 08:21:30 (11 years ago)
Author:
qualcomm
Message:

N0147 : setting based on intraPeriod of dependent layers

Location:
branches/SHM-3.1-dev/source/Lib/TLibEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncCavlc.cpp

    r426 r427  
    880880  }
    881881
    882   for( Int i = 0; i < vps->getNumViews(); i++ )
     882  for( i = 0; i < vps->getNumViews(); i++ )
    883883  {
    884884    WRITE_CODE( vps->getViewIdVal( i ), vps->getViewIdLenMinus1( ) + 1, "view_id_val[i]" );
     
    12201220
    12211221#if POC_RESET_FLAG
    1222     Int i = 0;
    1223     if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )
     1222    Int iBits = 0;
     1223    if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits )
    12241224    {
    12251225      WRITE_FLAG( pcSlice->getPocResetFlag(), "poc_reset_flag" );
    1226       i++;
    1227     }
    1228     if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > i )
     1226      iBits++;
     1227    }
     1228    if( pcSlice->getPPS()->getNumExtraSliceHeaderBits() > iBits )
    12291229    {
    12301230      assert(!!"discardable_flag");
    12311231      WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag");
    1232       i++;
    1233     }
    1234     for ( ; i < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)
     1232      iBits++;
     1233    }
     1234    for ( ; iBits < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); iBits++)
    12351235    {
    12361236      assert(!!"slice_reserved_undetermined_flag[]");
  • branches/SHM-3.1-dev/source/Lib/TLibEncoder/TEncGOP.cpp

    r423 r427  
    777777          TComList<TComPic*> *cListPic = m_ppcTEncTop[m_layerId]->getRefLayerEnc(0)->getListPic();
    778778          TComPic* picLayer0 = pcSlice->getRefPic(*cListPic, pcSlice->getPOC() );
    779           if( picLayer0->getSlice(0)->isIRAP() && picLayer0)
     779          if(picLayer0)
    780780          {
    781781            pcSlice->setNalUnitType(picLayer0->getSlice(0)->getNalUnitType());
Note: See TracChangeset for help on using the changeset viewer.