Ignore:
Timestamp:
17 Jun 2013, 03:02:26 (12 years ago)
Author:
samsung
Message:

integrate M0163 and M0152 into SHM-2.1-dev

File:
1 edited

Legend:

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

    r288 r289  
    726726  }
    727727
     728#if VPS_SPLIT_FLAG
     729  for(j = 0; j < vps->getNumScalabilityTypes() - vps->getSplittingFlag(); j++)
     730#else
    728731  for(j = 0; j < vps->getNumScalabilityTypes(); j++)
     732#endif
    729733  {
    730734    WRITE_CODE( vps->getDimensionIdLen(j) - 1, 3,      "dimension_id_len_minus1[j]" );
     
    738742      WRITE_CODE( vps->getLayerIdInNuh(i),     6,      "layer_id_in_nuh[i]" );
    739743    }
     744#if VPS_SPLIT_FLAG
     745    if(!vps->getSplittingFlag())
     746#endif
    740747    for(j = 0; j < vps->getNumScalabilityTypes(); j++)
    741748    {
     
    904911  if ( !pcSlice->getDependentSliceSegmentFlag() )
    905912  {
    906     for (Int i = 0; i < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)
     913
     914#if SH_DISCARDABLE_FLAG
     915    if (pcSlice->getPPS()->getNumExtraSliceHeaderBits()>0)
     916    {
     917      assert(!!"discardable_flag");
     918      WRITE_FLAG(pcSlice->getDiscardableFlag(), "discardable_flag");
     919    }
     920    for (Int i = 1; i < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)
    907921    {
    908922      assert(!!"slice_reserved_undetermined_flag[]");
    909923      WRITE_FLAG(0, "slice_reserved_undetermined_flag[]");
    910924    }
     925#else
     926    for (Int i = 0; i < pcSlice->getPPS()->getNumExtraSliceHeaderBits(); i++)
     927    {
     928      assert(!!"slice_reserved_undetermined_flag[]");
     929      WRITE_FLAG(0, "slice_reserved_undetermined_flag[]");
     930    }
     931#endif
    911932
    912933    WRITE_UVLC( pcSlice->getSliceType(),       "slice_type" );
Note: See TracChangeset for help on using the changeset viewer.