Changeset 1501 in SHVCSoftware


Ignore:
Timestamp:
9 Dec 2015, 20:33:28 (9 years ago)
Author:
seregin
Message:

move rep format index check after auto rep format index derivation

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1488 r1501  
    19851985      m_apcLayerCfg[layer]->m_bitDepthConstraint = (m_profileList[layerPTLIdx] == Profile::MAIN10 || m_profileList[layerPTLIdx] == Profile::SCALABLEMAIN10) ? 10 : 8;
    19861986    }
    1987 #if FORMATIDX_CHECK
    1988     for(Int compareLayer = 0; compareLayer < layer; compareLayer++ )
    1989     {
    1990       if(m_apcLayerCfg[layer]->m_repFormatIdx == m_apcLayerCfg[compareLayer]->m_repFormatIdx && (
    1991            m_apcLayerCfg[layer]->m_chromaFormatIDC != m_apcLayerCfg[compareLayer]->m_chromaFormatIDC
    1992            // separate_colour_plane_flag not supported yet but if supported insert check here
    1993            || m_apcLayerCfg[layer]->m_iSourceWidth != m_apcLayerCfg[compareLayer]->m_iSourceWidth
    1994            || m_apcLayerCfg[layer]->m_iSourceHeight != m_apcLayerCfg[compareLayer]->m_iSourceHeight
    1995            || m_apcLayerCfg[layer]->m_internalBitDepth[0] != m_apcLayerCfg[compareLayer]->m_internalBitDepth[0]
    1996            || m_apcLayerCfg[layer]->m_internalBitDepth[1] != m_apcLayerCfg[compareLayer]->m_internalBitDepth[1]
    1997            || m_apcLayerCfg[layer]->m_confWinLeft != m_apcLayerCfg[compareLayer]->m_confWinLeft
    1998            || m_apcLayerCfg[layer]->m_confWinRight != m_apcLayerCfg[compareLayer]->m_confWinRight
    1999            || m_apcLayerCfg[layer]->m_confWinTop != m_apcLayerCfg[compareLayer]->m_confWinTop
    2000            || m_apcLayerCfg[layer]->m_confWinBottom != m_apcLayerCfg[compareLayer]->m_confWinBottom
    2001         ))
    2002       {
    2003         fprintf(stderr, "Error: Two layers using the same FormatIdx value must share the same values of the related parameters\n");
    2004         exit(EXIT_FAILURE);
    2005       }
    2006     }
    2007 #endif
    20081987  }
    20091988#else
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1475 r1501  
    138138
    139139    maxRepFormatIdx = std::max( m_apcLayerCfg[layer]->getRepFormatIdx(), maxRepFormatIdx );
     140
     141#if FORMATIDX_CHECK
     142    for( Int compareLayer = 0; compareLayer < layer; compareLayer++ )
     143    {
     144      if(m_apcLayerCfg[layer]->m_repFormatIdx == m_apcLayerCfg[compareLayer]->m_repFormatIdx && (
     145           m_apcLayerCfg[layer]->m_chromaFormatIDC != m_apcLayerCfg[compareLayer]->m_chromaFormatIDC
     146           // separate_colour_plane_flag not supported yet but if supported insert check here
     147           || m_apcLayerCfg[layer]->m_iSourceWidth != m_apcLayerCfg[compareLayer]->m_iSourceWidth
     148           || m_apcLayerCfg[layer]->m_iSourceHeight != m_apcLayerCfg[compareLayer]->m_iSourceHeight
     149           || m_apcLayerCfg[layer]->m_internalBitDepth[0] != m_apcLayerCfg[compareLayer]->m_internalBitDepth[0]
     150           || m_apcLayerCfg[layer]->m_internalBitDepth[1] != m_apcLayerCfg[compareLayer]->m_internalBitDepth[1]
     151           || m_apcLayerCfg[layer]->m_confWinLeft != m_apcLayerCfg[compareLayer]->m_confWinLeft
     152           || m_apcLayerCfg[layer]->m_confWinRight != m_apcLayerCfg[compareLayer]->m_confWinRight
     153           || m_apcLayerCfg[layer]->m_confWinTop != m_apcLayerCfg[compareLayer]->m_confWinTop
     154           || m_apcLayerCfg[layer]->m_confWinBottom != m_apcLayerCfg[compareLayer]->m_confWinBottom
     155        ))
     156      {
     157        fprintf(stderr, "Error: Two layers using the same FormatIdx value must share the same values of the related parameters\n");
     158        exit(EXIT_FAILURE);
     159      }
     160    }
     161#endif
    140162  }
    141163
Note: See TracChangeset for help on using the changeset viewer.