Ignore:
Timestamp:
26 Sep 2014, 19:29:56 (10 years ago)
Author:
tech
Message:

Merged 12.0_dev0@1053.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-12.0-dev1/source/Lib/TLibDecoder/TDecCAVLC.cpp

    r1054 r1055  
    14381438    }
    14391439  }
    1440 #endif // H_MV_HLS10_GEN
     1440#endif
    14411441
    14421442  if (pcVPS->getNumLayerSets() > 1)
     
    14611461    if( i >= pcVPS->getNumLayerSets( ) )   
    14621462    {       
     1463#if !VPS_MISC_UPDATES
    14631464      READ_UVLC( uiCode,      "layer_set_idx_for_ols_minus1[i]" ); pcVPS->setLayerSetIdxForOlsMinus1( i, uiCode );
     1465#else
     1466      READ_CODE( pcVPS->getLayerSetIdxForOlsMinus1Len( i ), uiCode, "layer_set_idx_for_ols_minus1[i]" ); pcVPS->setLayerSetIdxForOlsMinus1( i, uiCode );
     1467#endif
    14641468    }
    14651469
     
    17091713  }
    17101714
     1715#if I0045_VPS_VUI_VST_PARAMS
    17111716  if( pcVPSVUI->getVideoSignalInfoIdxPresentFlag() && pcVPSVUI->getVpsNumVideoSignalInfoMinus1() > 0 )
    17121717  {
    1713 #if H_MV_HLS10_VPS_VUI
    17141718    for( Int i = pcVPS->getVpsBaseLayerInternalFlag() ? 0 : 1; i <=  pcVPS->getMaxLayersMinus1(); i++ )
    1715 #else
     1719    {
     1720      READ_CODE( 4, uiCode, "vps_video_signal_info_idx" ); pcVPSVUI->setVpsVideoSignalInfoIdx( i, uiCode );
     1721    }
     1722  }
     1723  else if ( !pcVPSVUI->getVideoSignalInfoIdxPresentFlag() )
     1724  {
     1725    for( Int i = pcVPS->getVpsBaseLayerInternalFlag() ? 0 : 1; i <=  pcVPS->getMaxLayersMinus1(); i++ )
     1726    {
     1727      pcVPSVUI->setVpsVideoSignalInfoIdx( i, i );
     1728    }
     1729  }
     1730  else
     1731  {
     1732    for( Int i = pcVPS->getVpsBaseLayerInternalFlag() ? 0 : 1; i <=  pcVPS->getMaxLayersMinus1(); i++ )
     1733    {
     1734      pcVPSVUI->setVpsVideoSignalInfoIdx( i, 0 );
     1735    }
     1736  }
     1737#else
     1738  if( pcVPSVUI->getVideoSignalInfoIdxPresentFlag() && pcVPSVUI->getVpsNumVideoSignalInfoMinus1() > 0 )
     1739  {
    17161740    for( Int i = 1; i <=  pcVPS->getMaxLayersMinus1(); i++ )
    1717 #endif
    17181741    {
    17191742      READ_CODE( 4, uiCode, "vps_video_signal_info_idx" ); pcVPSVUI->setVpsVideoSignalInfoIdx( i, uiCode );
     
    17281751    }
    17291752  }
     1753#endif
    17301754  READ_FLAG( uiCode, "tiles_not_in_use_flag" ); pcVPSVUI->setTilesNotInUseFlag( uiCode == 1 );
    17311755  if( !pcVPSVUI->getTilesNotInUseFlag() )
     
    18021826  if ( pcVPSVUI->getVpsVuiBspHrdPresentFlag( ) )
    18031827  {
     1828#if VPS_MISC_UPDATES
     1829    assert(pcVPS->getTimingInfo()->getTimingInfoPresentFlag() == 1);
     1830#endif
    18041831    parseVpsVuiBspHrdParameters( pcVPS );
    18051832  }
     
    22872314      esb++;
    22882315      READ_FLAG( uiCode, "discardable_flag" ); rpcSlice->setDiscardableFlag( uiCode == 1 );
     2316#if NON_REF_NAL_TYPE_DISCARDABLE
     2317      if ( uiCode == 1 )
     2318      {
     2319        assert(rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_TRAIL_R &&
     2320          rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_TSA_R &&
     2321          rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_STSA_R &&
     2322          rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RADL_R &&
     2323          rpcSlice->getNalUnitType() != NAL_UNIT_CODED_SLICE_RASL_R);
     2324      }
     2325#endif
    22892326    }
    22902327
     
    25742611      if (rpcSlice->getSPS()->getTMVPFlagsPresent())
    25752612      {
     2613#if I0044_SLICE_TMVP
     2614        READ_FLAG( uiCode, "slice_temporal_mvp_enabled_flag" );
     2615#else
    25762616        READ_FLAG( uiCode, "slice_temporal_mvp_enable_flag" );
     2617#endif
    25772618        rpcSlice->setEnableTMVPFlag( uiCode == 1 ? true : false );
    25782619      }
     
    30143055#endif
    30153056  }
     3057#if INFERENCE_POC_MSB_VAL_PRESENT
     3058  else
     3059  {
     3060    rpcSlice->setSliceSegmentHeaderExtensionLength( 0 );
     3061    rpcSlice->setPocMsbValPresentFlag( false );
     3062  }
     3063#endif
    30163064
    30173065
Note: See TracChangeset for help on using the changeset viewer.