Ignore:
Timestamp:
28 Aug 2014, 01:40:54 (10 years ago)
Author:
seregin
Message:

WPP setting per layer

File:
1 edited

Legend:

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

    r874 r875  
    485485  string* cfg_colourRemapSEIFile[MAX_LAYERS];
    486486#endif
     487  Int*    cfg_waveFrontSynchro[MAX_LAYERS];
     488
    487489  for(UInt layer = 0; layer < MAX_LAYERS; layer++)
    488490  {
     
    523525#endif
    524526    cfg_numScaledRefLayerOffsets [layer] = &m_acLayerCfg[layer].m_numScaledRefLayerOffsets;
     527    cfg_waveFrontSynchro[layer]  = &m_acLayerCfg[layer].m_waveFrontSynchro;
    525528    for(Int i = 0; i < MAX_LAYERS; i++)
    526529    {
     
    959962  ("TileRowHeightArray",          cfgRowHeight,                    string(""), "Array containing tile row height values in units of LCU")
    960963  ("LFCrossTileBoundaryFlag",      m_bLFCrossTileBoundaryFlag,             true,          "1: cross-tile-boundary loop filtering. 0:non-cross-tile-boundary loop filtering")
     964#if SVC_EXTENSION
     965  ("WaveFrontSynchro%d",          cfg_waveFrontSynchro,             0,  MAX_LAYERS,          "0: no synchro; 1 synchro with TR; 2 TRR etc")
     966#else
    961967  ("WaveFrontSynchro",            m_iWaveFrontSynchro,             0,          "0: no synchro; 1 synchro with TR; 2 TRR etc")
     968#endif
    962969  ("ScalingList",                 m_useScalingListId,              0,          "0: no scaling list, 1: default scaling lists, 2: scaling lists specified in ScalingListFile")
    963970  ("ScalingListFile",             cfg_ScalingListFile,             string(""), "Scaling list file name")
     
    24582465  }
    24592466 
     2467#if !SVC_EXTENSION
    24602468  Bool tileFlag = (m_numTileColumnsMinus1 > 0 || m_numTileRowsMinus1 > 0 );
    24612469  xConfirmPara( tileFlag && m_iWaveFrontSynchro,            "Tile and Wavefront can not be applied together");
    24622470
    24632471  //TODO:ChromaFmt assumes 4:2:0 below
    2464 #if !SVC_EXTENSION
    24652472  xConfirmPara( m_iSourceWidth  % TComSPS::getWinUnitX(CHROMA_420) != 0, "Picture width must be an integer multiple of the specified chroma subsampling");
    24662473  xConfirmPara( m_iSourceHeight % TComSPS::getWinUnitY(CHROMA_420) != 0, "Picture height must be an integer multiple of the specified chroma subsampling");
     
    32283235    Int m_uiMaxCUHeight = m_acLayerCfg[layer].m_uiMaxCUHeight;
    32293236#endif
    3230 #endif
     3237
     3238    Bool tileFlag = (m_numTileColumnsMinus1 > 0 || m_numTileRowsMinus1 > 0 );
     3239    Int m_iWaveFrontSynchro = m_acLayerCfg[layer].m_waveFrontSynchro;
     3240    xConfirmPara( tileFlag && m_iWaveFrontSynchro,            "Tile and Wavefront can not be applied together");
     3241#endif
     3242
    32313243  if(m_vuiParametersPresentFlag && m_bitstreamRestrictionFlag)
    32323244  {
     
    33053317  }
    33063318#endif
     3319#if !SVC_EXTENSION
    33073320  xConfirmPara( m_iWaveFrontSynchro < 0, "WaveFrontSynchro cannot be negative" );
    3308 #if !SVC_EXTENSION
    33093321  xConfirmPara( m_iWaveFrontSubstreams <= 0, "WaveFrontSubstreams must be positive" );
    33103322  xConfirmPara( m_iWaveFrontSubstreams > 1 && !m_iWaveFrontSynchro, "Must have WaveFrontSynchro > 0 in order to have WaveFrontSubstreams > 1" );
Note: See TracChangeset for help on using the changeset viewer.