Ignore:
Timestamp:
5 Jun 2013, 03:48:35 (11 years ago)
Author:
seregin
Message:

reference layers setting and related

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-2.1-multilayers-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r245 r259  
    910910#if VPS_EXTN_DIRECT_REF_LAYERS
    911911  // Direct reference layers
     912  UInt maxDirectRefLayers = 0;
    912913  for(UInt layerCtr = 1;layerCtr <= vps->getMaxLayers() - 1; layerCtr++)
    913914  {
    914915    vps->setNumDirectRefLayers( layerCtr, m_acTEncTop[layerCtr].getNumDirectRefLayers() );
     916    maxDirectRefLayers = max<UInt>( maxDirectRefLayers, vps->getNumDirectRefLayers( layerCtr ) );
     917
    915918    for(i = 0; i < vps->getNumDirectRefLayers(layerCtr); i++)
    916919    {
     
    930933#endif
    931934#if JCTVC_M0458_INTERLAYER_RPS_SIG       
    932     vps->setMaxOneActiveRefLayerFlag(true);
     935    vps->setMaxOneActiveRefLayerFlag(maxDirectRefLayers > 1 ? false : true);
    933936#endif
    934937#else
Note: See TracChangeset for help on using the changeset viewer.