Ignore:
Timestamp:
25 Jun 2013, 22:11:57 (11 years ago)
Author:
tech
Message:

Fixed several bugs and mismatches.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev0/source/Lib/TLibEncoder/TEncCavlc.cpp

    r493 r495  
    449449#endif
    450450  WRITE_CODE( pcSPS->getVPSId (),          4,       "sps_video_parameter_set_id" );
     451#if H_MV
     452  if ( pcSPS->getLayerId() == 0 )
     453  {
     454#endif
    451455  WRITE_CODE( pcSPS->getMaxTLayers() - 1,  3,       "sps_max_sub_layers_minus1" );
    452456  WRITE_FLAG( pcSPS->getTemporalIdNestingFlag() ? 1 : 0,                             "sps_temporal_id_nesting_flag" );
    453457  codePTL(pcSPS->getPTL(), 1, pcSPS->getMaxTLayers() - 1);
     458#if H_MV
     459}
     460#endif
    454461  WRITE_UVLC( pcSPS->getSPSId (),                   "sps_seq_parameter_set_id" );
    455462  WRITE_UVLC( pcSPS->getChromaFormatIdc (),         "chroma_format_idc" );
     
    795802    {     
    796803      WRITE_UVLC( pcVPS->getOutputLayerSetIdxMinus1( i ),      "output_layer_set_idx_minus1[i]" );
    797       for( Int j = 0; j <= pcVPS->getNumLayersInIdList( j ); j++ )
     804      for( Int j = 0; j < pcVPS->getNumLayersInIdList( j ) - 1 ; j++ )
    798805      {
    799806        WRITE_FLAG( pcVPS->getOutputLayerFlag( i, j) ? 1 : 0, "output_layer_flag" );
    800       }
     807      }     
     808    }
     809    if ( pcVPS->getProfileLevelTierIdxLen()  > 0 )
     810    {     
    801811      WRITE_CODE( pcVPS->getProfileLevelTierIdx( i ), pcVPS->getProfileLevelTierIdxLen() ,"profile_level_tier_idx[ i ]" );   
    802812    }
     
    810820      for( Int j = 0; j < i; j++ )
    811821      {
    812         WRITE_CODE( pcVPS->getDirectDependencyType( i, j ),pcVPS->getDirectDepTypeLenMinus2( ) + 2,  "direct_dependency_type[i][j]" );
     822        if (pcVPS->getDirectDependencyFlag( i, j) )
     823        {       
     824          assert ( pcVPS->getDirectDependencyType( i, j ) != -1 );
     825          WRITE_CODE( pcVPS->getDirectDependencyType( i, j ),pcVPS->getDirectDepTypeLenMinus2( ) + 2,  "direct_dependency_type[i][j]" );
     826        }
    813827      }
    814828    }
     
    11711185      {
    11721186        WRITE_FLAG( pcSlice->getAltCollocatedIndicationFlag( ) ? 1 : 0 , "alt_collocated_indication_flag" );
    1173 
    11741187        if( pcSlice->getAltCollocatedIndicationFlag() && pcSlice->getNumActiveMotionPredRefLayers() > 1 )
    11751188        {         
Note: See TracChangeset for help on using the changeset viewer.