Changeset 1107 in SHVCSoftware for branches/SHM-dev/source/App


Ignore:
Timestamp:
6 Jul 2015, 21:01:55 (10 years ago)
Author:
seregin
Message:

macro cleanup: R0235_SMALLEST_LAYER_ID

Location:
branches/SHM-dev/source/App
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp

    r1106 r1107  
    259259      }
    260260      fclose (targetDecLayerIdSetFile);
    261 #if !R0235_SMALLEST_LAYER_ID  // LayerId=0 is not required anymore in some cases
    262       if ( m_targetDecLayerIdSet.size() > 0 && !isLayerIdZeroIncluded )
    263       {
    264         fprintf(stderr, "TargetDecLayerIdSet must contain LayerId=0, aborting" );
    265         return false;
    266       }
    267 #endif
    268261    }
    269262    else
  • branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp

    r1106 r1107  
    12841284    return true;
    12851285  }
    1286 #if R0235_SMALLEST_LAYER_ID
     1286#if SVC_EXTENSION
    12871287  if (nalu->m_layerId == 0 && (nalu->m_nalUnitType == NAL_UNIT_VPS || nalu->m_nalUnitType == NAL_UNIT_SPS || nalu->m_nalUnitType == NAL_UNIT_PPS || nalu->m_nalUnitType == NAL_UNIT_EOS))
    12881288  {
     
    12991299  return false;
    13001300}
     1301
    13011302#if ALIGNED_BUMPING
    13021303// Function outputs a picture, and marks it as not needed for output.
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1090 r1107  
    26112611#if MULTIPLE_PTL_SUPPORT
    26122612    Int olsToLsIndex = (olsCtr >= (m_numLayerSets + m_numAddLayerSets)) ? m_outputLayerSetIdx[olsCtr - (m_numLayerSets + m_numAddLayerSets)] : olsCtr;
    2613 #if R0235_SMALLEST_LAYER_ID
     2613
    26142614    // This is a fix to allow setting of PTL for additional layer sets
    26152615    if (olsCtr >= m_numLayerSets && olsCtr < (m_numLayerSets + m_numAddLayerSets))
     
    26212621      scanStringToArray(cfg_listOfLayerPTLOfOlss[olsCtr], m_numLayerInIdList[olsToLsIndex], "List of PTL for each layers in OLS", m_listOfLayerPTLofOlss[olsCtr]);
    26222622    }
    2623 #else
    2624     scanStringToArray( cfg_listOfLayerPTLOfOlss[olsCtr], m_numLayerInIdList[olsToLsIndex], "List of PTL for each layers in OLS", m_listOfLayerPTLofOlss[olsCtr] );
    2625 #endif
     2623
    26262624    //For conformance checking
    26272625    //Conformance of a layer in an output operation point associated with an OLS in a bitstream to the Scalable Main profile is indicated as follows:
     
    26302628    //If OpTid of the output operation point is equal to vps_max_sub_layer_minus1, the conformance is indicated by general_profile_idc being equal to 7 or general_profile_compatibility_flag[ 7 ] being equal to 1
    26312629    //The following assert may be updated / upgraded to take care of general_profile_compatibility_flag.
    2632 #if R0235_SMALLEST_LAYER_ID
    26332630    if (m_numAddLayerSets == 0)
    26342631    {
    2635 #endif
    2636     for ( Int ii = 1; ii < m_numLayerInIdList[olsToLsIndex]; ii++)
    2637     {
    2638       if (m_layerSetLayerIdList[olsToLsIndex][ii - 1] != 0 && m_layerSetLayerIdList[olsToLsIndex][ii] != 0)  //Profile / profile compatibility of enhancement layers must indicate the same profile.
    2639       {
    2640         assert( (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) ||
    2641                 (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) ||   
    2642                 (m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) );
    2643       }
    2644     }
    2645 #if R0235_SMALLEST_LAYER_ID
    2646     }
    2647 #endif
     2632      for ( Int ii = 1; ii < m_numLayerInIdList[olsToLsIndex]; ii++)
     2633      {
     2634        if (m_layerSetLayerIdList[olsToLsIndex][ii - 1] != 0 && m_layerSetLayerIdList[olsToLsIndex][ii] != 0)  //Profile / profile compatibility of enhancement layers must indicate the same profile.
     2635        {
     2636          assert( (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) ||
     2637            (m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) ||   
     2638            (m_profileCompatibility[m_listOfLayerPTLofOlss[olsCtr][ii]] == m_profileList[m_listOfLayerPTLofOlss[olsCtr][ii - 1]]) );
     2639        }
     2640      }
     2641    }
    26482642#endif
    26492643  }
     
    48544848#endif
    48554849
    4856 #if R0235_SMALLEST_LAYER_ID
    48574850#if OUTPUT_LAYER_SETS_CONFIG
    48584851Void TAppEncCfg::cfgStringToArrayNumEntries(Int **arr, string const cfgString, Int &numEntries, const char* logString)
     
    49244917}
    49254918#endif
    4926 #endif // R0235
    49274919#endif //SVC_EXTENSION
    49284920//! \}
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1090 r1107  
    576576  Bool scanStringToArray(string const cfgString, Int const numEntries, const char* logString, std::vector<Int> &  returnVector);
    577577  Void cfgStringToArray(Int **arr, string const cfgString, Int const numEntries, const char* logString);
    578 #if R0235_SMALLEST_LAYER_ID
    579578  Bool scanStringToArrayNumEntries(string const cfgString, Int &numEntries, const char* logString, Int * const returnArray);
    580579  Bool scanStringToArrayNumEntries(string const cfgString, Int &numEntries, const char* logString, std::vector<Int> &  returnVector);
    581580  Void cfgStringToArrayNumEntries(Int **arr, string const cfgString, Int &numEntries, const char* logString);
    582 #endif
    583581#else
    584582  Void cfgStringToArray(Int **arr, string cfgString, Int numEntries, const char* logString);
Note: See TracChangeset for help on using the changeset viewer.