Ignore:
Timestamp:
3 May 2013, 17:09:57 (12 years ago)
Author:
tech
Message:

Further minor cleanups.

File:
1 edited

Legend:

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

    r366 r367  
    549549  }
    550550
    551 #if H_MV
    552   WRITE_FLAG( 1, "sps_extension_flag" );
    553 
    554   WRITE_FLAG( pcSPS->getInterViewMvVertConstraintFlag() ? 1 : 0, "inter_view_mv_vert_constraint_flag" );
    555 #else
    556551  WRITE_FLAG( 0, "sps_extension_flag" );
    557 #endif
    558552}
    559553
     
    562556  WRITE_CODE( pcVPS->getVPSId(),                    4,        "vps_video_parameter_set_id" );
    563557  WRITE_CODE( 3,                                    2,        "vps_reserved_three_2bits" );
    564 #if H_MV
    565   WRITE_CODE( pcVPS->getMaxLayers() - 1,            6,        "vps_max_layers_minus1" );
    566 #else
    567558  WRITE_CODE( 0,                                    6,        "vps_reserved_zero_6bits" );
    568 #endif
    569559  WRITE_CODE( pcVPS->getMaxTLayers() - 1,           3,        "vps_max_sub_layers_minus1" );
    570560  WRITE_FLAG( pcVPS->getTemporalNestingFlag(),                "vps_temporal_id_nesting_flag" );
    571561  assert (pcVPS->getMaxTLayers()>1||pcVPS->getTemporalNestingFlag());
    572 #if H_MV
    573   WRITE_CODE( 0xffff,                              16,        "vps_extension_offset" );
    574 #else
    575562  WRITE_CODE( 0xffff,                              16,        "vps_reserved_ffff_16bits" );
    576 #endif
    577563  codePTL( pcVPS->getPTL(), true, pcVPS->getMaxTLayers() - 1 );
    578564#if SIGNAL_BITRATE_PICRATE_IN_VPS
     
    597583
    598584  assert( pcVPS->getNumHrdParameters() <= MAX_VPS_NUM_HRD_PARAMETERS );
    599 #if H_MV
    600   assert( pcVPS->getMaxNuhLayerId() < MAX_VPS_NUH_LAYER_ID_PLUS1 );
    601   WRITE_CODE( pcVPS->getMaxNuhLayerId(), 6,                 "vps_max_nuh_layer_id" );
    602 #else
    603585  assert( pcVPS->getMaxNuhReservedZeroLayerId() < MAX_VPS_NUH_RESERVED_ZERO_LAYER_ID_PLUS1 );
    604586  WRITE_CODE( pcVPS->getMaxNuhReservedZeroLayerId(), 6,     "vps_max_nuh_reserved_zero_layer_id" );
    605 #endif
    606587  pcVPS->setMaxOpSets(1);
    607588  WRITE_UVLC( pcVPS->getMaxOpSets() - 1,                    "vps_max_op_sets_minus1" );
     
    609590  {
    610591    // Operation point set
    611 #if H_MV
    612     for( UInt i = 0; i <= pcVPS->getMaxNuhLayerId(); i ++ )
    613 #else
    614592    for( UInt i = 0; i <= pcVPS->getMaxNuhReservedZeroLayerId(); i ++ )
    615 #endif
    616593    {
    617594      // Only applicable for version 1
     
    654631  }
    655632#endif
    656 #if H_MV
    657   WRITE_FLAG( 1,                                             "vps_extension_flag" );
    658 
    659   m_pcBitIf->writeAlignOne();                       
    660 
    661   WRITE_FLAG( pcVPS->getAvcBaseLayerFlag() ? 1 : 0,          "avc_base_layer_flag" );
    662   WRITE_FLAG( pcVPS->getSplittingFlag() ? 1 : 0,             "splitting_flag" );
    663  
    664   for( Int type = 0; type < MAX_NUM_SCALABILITY_TYPES; type++ )
    665   {
    666     WRITE_FLAG( pcVPS->getScalabilityMask( type ) ? 1 : 0,   "scalability_mask[i]" );
    667   }
    668 
    669   for( Int sIdx = 0; sIdx < pcVPS->getNumScalabilityTypes( ); sIdx++ )
    670   {
    671     WRITE_CODE( pcVPS->getDimensionIdLen( sIdx ) - 1 , 3,    "dimension_id_len_minus1[j]");   
    672   }
    673 
    674   WRITE_FLAG( pcVPS->getVpsNuhLayerIdPresentFlag() ? 1 : 0,  "vps_nuh_layer_id_present_flag");
    675 
    676   for( Int layer = 1; layer <= pcVPS->getMaxLayers() - 1; layer++ )
    677   {
    678     if (pcVPS->getVpsNuhLayerIdPresentFlag() )
    679       WRITE_CODE( pcVPS->getLayerIdInNuh( layer ), 6,          "layer_id_in_nuh[i]");
    680     for( Int sIdx = 0; sIdx < pcVPS->getNumScalabilityTypes() ; sIdx++ )
    681     {     
    682       WRITE_CODE( pcVPS->getDimensionId( layer, sIdx ), pcVPS->getDimensionIdLen( sIdx ), "dimension_id[i][j]");     
    683     }
    684   }
    685 
    686   for( Int layerSet = 1; layerSet <= pcVPS->getMaxOpSets() - 1; layerSet++ )
    687   {
    688     WRITE_FLAG( pcVPS->getVpsProfilePresentFlag( layerSet ) ? 1 : 0, "vps_profile_present_flag[lsIdx]" );
    689     if( pcVPS->getVpsProfilePresentFlag( layerSet ) == false )
    690     {
    691       WRITE_UVLC( pcVPS->getProfileLayerSetRefMinus1( layerSet ), "profile_layer_set_ref_minus1[lsIdx]" );
    692     }
    693     codePTL( pcVPS->getPTL( layerSet ), pcVPS->getVpsProfilePresentFlag( layerSet ), pcVPS->getMaxTLayers() - 1 );
    694   }
    695 
    696   WRITE_UVLC( pcVPS->getNumOutputLayerSets(),                "num_output_layer_sets" );
    697 
    698   for( Int layerSet = 0; layerSet < pcVPS->getNumOutputLayerSets(); layerSet++ )
    699   {
    700     WRITE_UVLC( pcVPS->getOutputLayerSetIdx( layerSet ),      "output_layer_set_idx[i]" );
    701     for( Int layer = 0; layer <= pcVPS->getMaxNuhLayerId(); layer++ )
    702     {
    703       if( pcVPS->getLayerIdIncludedFlag( pcVPS->getOutputLayerSetIdx( layerSet ), layer ) == true )
    704       {
    705         WRITE_FLAG( pcVPS->getOutputLayerFlag( layerSet, layer ) ? 1 : 0, "output_layer_flag" );
    706       }
    707     }
    708   }
    709 
    710   for( Int i = 1; i <= pcVPS->getMaxLayers() - 1; i++ )
    711   {
    712     for( Int j = 0; j < i; j++ )
    713     {
    714       WRITE_FLAG( pcVPS->getDirectDependencyFlag( i, j ),    "direct_dependency_flag[i][j]" );
    715     }
    716   }
    717   WRITE_FLAG( 0,                                             "vps_extension2_flag" );
    718 #else
    719633  WRITE_FLAG( 0,                     "vps_extension_flag" );
    720 #endif
    721634 
    722635  //future extensions here..
     
    10911004  for (Int i = 0; i < maxNumSubLayersMinus1; i++)
    10921005  {
    1093 #if !H_MV
    10941006    if(profilePresentFlag)
    10951007    {
    1096 #endif
    10971008      WRITE_FLAG( pcPTL->getSubLayerProfilePresentFlag(i), "sub_layer_profile_present_flag[i]" );
    1098 #if !H_MV
    1099     }
    1100 #endif
     1009    }
    11011010   
    11021011    WRITE_FLAG( pcPTL->getSubLayerLevelPresentFlag(i),   "sub_layer_level_present_flag[i]" );
Note: See TracChangeset for help on using the changeset viewer.