Changeset 1067 in SHVCSoftware for branches/SHM-dev/source


Ignore:
Timestamp:
5 Mar 2015, 01:07:47 (10 years ago)
Author:
seregin
Message:

fix default layerID setting

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

Legend:

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

    r1057 r1067  
    19481948  for(Int layer = 0; layer < MAX_LAYERS; layer++)
    19491949  {
     1950    if( m_acLayerCfg[layer].m_layerId < 0 )
     1951    {
     1952      m_acLayerCfg[layer].m_layerId = layer;
     1953    }
     1954
    19501955    m_acLayerCfg[layer].m_MSBExtendedBitDepth[CHANNEL_TYPE_LUMA  ] = m_acLayerCfg[layer].m_inputBitDepth      [CHANNEL_TYPE_LUMA  ];
    19511956    m_acLayerCfg[layer].m_MSBExtendedBitDepth[CHANNEL_TYPE_CHROMA] = m_acLayerCfg[layer].m_MSBExtendedBitDepth[CHANNEL_TYPE_LUMA  ];
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1058 r1067  
    301301#endif
    302302    // set layer ID
    303     m_acTEncTop[layer].setLayerId                                         ( m_acLayerCfg[layer].m_layerId == -1 ? layer : m_acLayerCfg[layer].m_layerId );
     303    m_acTEncTop[layer].setLayerId                                         ( m_acLayerCfg[layer].m_layerId );
    304304    m_acTEncTop[layer].setNumLayer                                        ( m_numLayers );
    305305    m_acTEncTop[layer].setLayerEnc                                        ( m_apcTEncTop );
Note: See TracChangeset for help on using the changeset viewer.