Changeset 135 in SHVCSoftware for branches/SHM-2.0-dev
- Timestamp:
- 2 May 2013, 03:16:26 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-2.0-dev/source/Lib/TLibEncoder/TEncTop.cpp
r134 r135 501 501 TEncPic* pcEPic = new TEncPic; 502 502 503 #if SVC_EXTENSION //Temporal solution, should be modified 504 if(m_layerId > 0) 505 { 506 #if VPS_EXTN_DIRECT_REF_LAYERS_CONTINUE 507 TEncTop *pcEncTopBase = (TEncTop *)getRefLayerEnc( m_layerId ); 508 #else 509 TEncTop *pcEncTopBase = (TEncTop *)getLayerEnc( m_layerId-1 ); 510 #endif 511 if(m_iSourceWidth != pcEncTopBase->getSourceWidth() || m_iSourceHeight != pcEncTopBase->getSourceHeight() ) 512 { 513 pcEPic->setSpatialEnhLayerFlag( true ); 514 } 515 } 516 503 517 #if SVC_UPSAMPLING 504 518 pcEPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, m_cPPS.getMaxCuDQPDepth()+1 , … … 508 522 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics); 509 523 #endif 524 #endif 510 525 rpcPic = pcEPic; 511 526 } … … 513 528 { 514 529 rpcPic = new TComPic; 515 516 517 #if SVC_UPSAMPLING518 rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,519 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS);520 #else521 rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,522 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics);523 #endif524 }525 530 526 531 #if SVC_EXTENSION //Temporal solution, should be modified … … 537 542 } 538 543 } 539 #endif 544 545 #if SVC_UPSAMPLING 546 rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 547 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics, &m_cSPS); 548 #else 549 rpcPic->create( m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 550 m_conformanceWindow, m_defaultDisplayWindow, m_numReorderPics); 551 #endif 552 #endif 553 } 540 554 541 555 if (getUseSAO())
Note: See TracChangeset for help on using the changeset viewer.