Changeset 1223 in SHVCSoftware for branches/SHM-dev/source
- Timestamp:
- 9 Jul 2015, 00:08:52 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1222 r1223 2100 2100 , m_updateRepFormatFlag (false) 2101 2101 , m_updateRepFormatIndex (0) 2102 #if SCALINGLIST_INFERRING 2103 , m_inferScalingListFlag ( false ) 2104 , m_scalingListRefLayerId ( 0 ) 2105 #endif 2102 , m_inferScalingListFlag ( false ) 2103 , m_scalingListRefLayerId ( 0 ) 2106 2104 #endif //SVC_EXTENSION 2107 2105 { … … 2132 2130 TComSPS::~TComSPS() 2133 2131 { 2134 #if S CALINGLIST_INFERRING2132 #if SVC_EXTENSION 2135 2133 if( !m_inferScalingListFlag ) 2136 2134 #endif … … 2299 2297 #if SVC_EXTENSION 2300 2298 , m_extensionFlag(false) 2301 #if SCALINGLIST_INFERRING2302 2299 , m_layerId(0) 2303 2300 , m_inferScalingListFlag ( false ) 2304 2301 , m_scalingListRefLayerId ( 0 ) 2305 #endif2306 2302 , m_pocResetInfoPresentFlag (false) 2307 2303 , m_numRefLayerLocationOffsets ( 0 ) … … 2334 2330 TComPPS::~TComPPS() 2335 2331 { 2336 #if S CALINGLIST_INFERRING2332 #if SVC_EXTENSION 2337 2333 if( !m_inferScalingListFlag ) 2338 2334 #endif -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1212 r1223 1375 1375 Bool m_updateRepFormatFlag; 1376 1376 UInt m_updateRepFormatIndex; 1377 #if SCALINGLIST_INFERRING1378 1377 Bool m_inferScalingListFlag; 1379 1378 UInt m_scalingListRefLayerId; 1380 #endif1381 1379 #endif //SVC_EXTENSION 1382 1380 … … 1508 1506 Void setScalingListPresentFlag( Bool b ) { m_scalingListPresentFlag = b; } 1509 1507 1510 #if S CALINGLIST_INFERRING1508 #if SVC_EXTENSION 1511 1509 Void setScalingList( TComScalingList *scalingList ) { m_scalingList = scalingList; } 1512 1510 #else … … 1547 1545 Int getUpdateRepFormatIndex() { return m_updateRepFormatIndex; } 1548 1546 Void setUpdateRepFormatIndex(UInt index) { m_updateRepFormatIndex = index; } 1549 #if SCALINGLIST_INFERRING1550 1547 Bool getInferScalingListFlag() { return m_inferScalingListFlag; } 1551 1548 UInt getScalingListRefLayerId() { return m_scalingListRefLayerId; } 1552 1549 Void setInferScalingListFlag( Bool flag ) { m_inferScalingListFlag = flag; } 1553 1550 Void setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; } 1554 #endif1555 1551 #endif //SVC_EXTENSION 1556 1552 }; … … 1652 1648 #if SVC_EXTENSION 1653 1649 Bool m_extensionFlag; 1654 #if SCALINGLIST_INFERRING1655 1650 UInt m_layerId; 1656 1651 Bool m_inferScalingListFlag; 1657 1652 UInt m_scalingListRefLayerId; 1658 #endif1659 1653 Bool m_pocResetInfoPresentFlag; 1660 1654 UInt m_numRefLayerLocationOffsets; … … 1787 1781 Void setScalingListPresentFlag( Bool b ) { m_scalingListPresentFlag = b; } 1788 1782 1789 #if S CALINGLIST_INFERRING1783 #if SVC_EXTENSION 1790 1784 Void setScalingList( TComScalingList *scalingList ) { m_scalingList = scalingList; } 1791 1785 #else … … 1806 1800 Int getExtensionFlag() { return m_extensionFlag; } 1807 1801 Void setExtensionFlag(Int n) { m_extensionFlag = n; } 1808 #if SCALINGLIST_INFERRING1809 1802 UInt getLayerId() { return m_layerId; } 1810 1803 Void setLayerId( UInt layerId ) { m_layerId = layerId; } … … 1813 1806 Void setInferScalingListFlag( Bool flag ) { m_inferScalingListFlag = flag; } 1814 1807 Void setScalingListRefLayerId( UInt layerId ) { m_scalingListRefLayerId = layerId; } 1815 #endif1816 1808 Bool getPocResetInfoPresentFlag() { return m_pocResetInfoPresentFlag; } 1817 1809 Void setPocResetInfoPresentFlag(const Bool val) { m_pocResetInfoPresentFlag = val; } -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1222 r1223 56 56 #endif 57 57 58 #define SCALINGLIST_INFERRING 1 ///< JCTVC-N0371: inter-layer scaling list59 60 58 #define AVC_BASE 1 ///< YUV BL reading for AVC base SVC 61 59 #define SVC_POC 1 ///< POC signalling and reset -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1217 r1223 397 397 pcPPS->setPocResetInfoPresentFlag(uiCode ? true : false); 398 398 399 #if SCALINGLIST_INFERRING400 399 READ_FLAG( uiCode, "pps_infer_scaling_list_flag" ); 401 400 pcPPS->setInferScalingListFlag( uiCode ); … … 409 408 pcPPS->setScalingListPresentFlag( false ); 410 409 } 411 #endif412 410 413 411 READ_UVLC( uiCode, "num_ref_loc_offsets" ); pcPPS->setNumRefLayerLocationOffsets(uiCode); -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1220 r1223 460 460 461 461 #if SVC_EXTENSION 462 #if SCALINGLIST_INFERRING463 462 // scaling list settings and checks 464 463 TComVPS *activeVPS = m_parameterSetManagerDecoder.getActiveVPS(); … … 524 523 525 524 } 526 #endif527 525 528 526 #if AVC_BASE … … 1796 1794 pcSlice->setScalingList ( pcSlice->getSPS()->getScalingList() ); 1797 1795 1798 #if S CALINGLIST_INFERRING1796 #if SVC_EXTENSION 1799 1797 if( pcSlice->getPPS()->getScalingListPresentFlag() || pcSlice->getPPS()->getInferScalingListFlag() ) 1800 1798 #else … … 1804 1802 pcSlice->setScalingList ( pcSlice->getPPS()->getScalingList() ); 1805 1803 } 1806 #if SCALINGLIST_INFERRING 1804 1805 #if SVC_EXTENSION 1807 1806 if( m_layerId == 0 || ( m_layerId > 0 && !pcSlice->getPPS()->getInferScalingListFlag() && !pcSlice->getSPS()->getInferScalingListFlag() ) ) 1808 1807 #endif … … 1866 1865 TComPPS* pps = new TComPPS(); 1867 1866 1868 #if S CALINGLIST_INFERRING1867 #if SVC_EXTENSION 1869 1868 pps->setLayerId( m_layerId ); 1870 1869 #endif -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1220 r1223 250 250 Void setCommonDecoderParams(CommonDecoderParams* x) { m_commonDecoderParams = x; } 251 251 Void checkValueOfTargetOutputLayerSetIdx(TComVPS *vps); 252 #if SCALINGLIST_INFERRING 252 253 253 ParameterSetManagerDecoder* getParameterSetManager() { return &m_parameterSetManagerDecoder; } 254 #endif 254 255 255 #if CONFORMANCE_BITSTREAM_MODE 256 256 std::vector<TComPic>* getConfListPic() {return &m_confListPic; } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1217 r1223 306 306 case PPS_EXT__MLAYER: 307 307 WRITE_FLAG( pcPPS->getPocResetInfoPresentFlag() ? 1 : 0, "poc_reset_info_present_flag" ); 308 #if SCALINGLIST_INFERRING 308 309 309 WRITE_FLAG( pcPPS->getInferScalingListFlag() ? 1 : 0, "pps_infer_scaling_list_flag" ); 310 310 if( pcPPS->getInferScalingListFlag() ) … … 314 314 WRITE_CODE( pcPPS->getScalingListRefLayerId(), 6, "pps_scaling_list_ref_layer_id" ); 315 315 } 316 #endif317 316 318 317 WRITE_UVLC( pcPPS->getNumRefLayerLocationOffsets(), "num_ref_loc_offsets" ); … … 644 643 if(pcSPS->getScalingListFlag()) 645 644 { 646 #if S CALINGLIST_INFERRING645 #if SVC_EXTENSION 647 646 if( !V1CompatibleSPSFlag ) 648 647 { … … 665 664 codeScalingList( m_pcSlice->getScalingList() ); 666 665 } 667 #if S CALINGLIST_INFERRING666 #if SVC_EXTENSION 668 667 } 669 668 #endif -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1213 r1223 1262 1262 else if(m_pcEncTop->getUseScalingListId() == SCALING_LIST_DEFAULT) 1263 1263 { 1264 #if S CALINGLIST_INFERRING1264 #if SVC_EXTENSION 1265 1265 // inferring of the scaling list can be moved to the config file 1266 1266 UInt refLayerId = 0; … … 1283 1283 m_pcEncTop->getPPS()->setScalingListPresentFlag(false); 1284 1284 1285 #if S CALINGLIST_INFERRING1285 #if SVC_EXTENSION 1286 1286 } 1287 1287 #endif … … 1292 1292 else if(m_pcEncTop->getUseScalingListId() == SCALING_LIST_FILE_READ) 1293 1293 { 1294 #if S CALINGLIST_INFERRING1294 #if SVC_EXTENSION 1295 1295 // inferring of the scaling list can be moved to the config file 1296 1296 UInt refLayerId = 0; … … 1320 1320 m_pcEncTop->getPPS()->setScalingListPresentFlag(false); 1321 1321 1322 #if S CALINGLIST_INFERRING1322 #if SVC_EXTENSION 1323 1323 } 1324 1324 #endif -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1212 r1223 999 999 1000 1000 #if SVC_EXTENSION 1001 #if SCALINGLIST_INFERRING1002 1001 m_cPPS.setLayerId( m_layerId ); 1003 #endif1004 1002 1005 1003 if( !m_numDirectRefLayers && m_numAddLayerSets )
Note: See TracChangeset for help on using the changeset viewer.