Changeset 181 in SHVCSoftware for branches/SHM-2.0-dev/source/Lib/TLibEncoder


Ignore:
Timestamp:
11 May 2013, 01:14:05 (12 years ago)
Author:
seregin
Message:

move syntax signaling associated with JCTVC_M0458_INTERLAYER_RPS_SIG ahead of the list modification signaling

File:
1 edited

Legend:

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

    r175 r181  
    10131013        }
    10141014      }
     1015
    10151016      if (pcSlice->getSPS()->getTMVPFlagsPresent())
    10161017      {
     
    10181019      }
    10191020    }
     1021
     1022#if JCTVC_M0458_INTERLAYER_RPS_SIG   
     1023    if((pcSlice->getSPS()->getLayerId() > 0)  &&  (pcSlice->getNumILRRefIdx() > 0) )
     1024    {
     1025      WRITE_FLAG(pcSlice->getInterLayerPredEnabledFlag(),"inter_layer_pred_enabled_flag");
     1026      if( pcSlice->getInterLayerPredEnabledFlag())
     1027      {
     1028        if(pcSlice->getNumILRRefIdx() > 1)
     1029        {
     1030          if( !pcSlice->getVPS()->getMaxOneActiveRefLayerFlag())
     1031          {
     1032            WRITE_UVLC(pcSlice->getNumInterLayerRefPics(),"num_inter_layer_ref_pics_minus1");                     
     1033          }       
     1034          for(Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ )
     1035            WRITE_UVLC(pcSlice->getInterLayerPredLayerIdc(i),"inter_layer_pred_layer_idc[i]");     
     1036        }
     1037      }
     1038    }     
     1039#endif
     1040
    10201041    if(pcSlice->getSPS()->getUseSAO())
    10211042    {
     
    11761197    }
    11771198  }
    1178 #if JCTVC_M0458_INTERLAYER_RPS_SIG   
    1179     if((pcSlice->getSPS()->getLayerId() > 0)  &&  (pcSlice->getNumILRRefIdx() > 0) )
    1180     {
    1181       WRITE_FLAG(pcSlice->getInterLayerPredEnabledFlag(),"inter_layer_pred_enabled_flag");
    1182       if( pcSlice->getInterLayerPredEnabledFlag())
    1183       {
    1184         if(pcSlice->getNumILRRefIdx() > 1)
    1185         {
    1186           if( !pcSlice->getVPS()->getMaxOneActiveRefLayerFlag())
    1187           {
    1188             WRITE_UVLC(pcSlice->getNumInterLayerRefPics(),"num_inter_layer_ref_pics_minus1");                     
    1189           }       
    1190           for(Int i = 0; i < pcSlice->getActiveNumILRRefIdx(); i++ )
    1191             WRITE_UVLC(pcSlice->getInterLayerPredLayerIdc(i),"inter_layer_pred_layer_idc[i]");     
    1192         }
    1193       }
    1194     }     
    1195 #endif
     1199
    11961200  if(pcSlice->getPPS()->getSliceHeaderExtensionPresentFlag())
    11971201  {
Note: See TracChangeset for help on using the changeset viewer.