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

move rep format index check after auto rep format index derivation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.