Changeset 1203 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon
- Timestamp:
- 8 Jul 2015, 20:57:55 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibCommon
- Files:
-
- 7 edited
-
TComDataCU.cpp (modified) (9 diffs)
-
TComLoopFilter.cpp (modified) (1 diff)
-
TComSampleAdaptiveOffset.cpp (modified) (1 diff)
-
TComSlice.cpp (modified) (8 diffs)
-
TComSlice.h (modified) (8 diffs)
-
TComTrQuant.cpp (modified) (2 diffs)
-
TypeDef.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComDataCU.cpp
r1147 r1203 326 326 TComSlice * pcSlice = pcPic->getSlice(pcPic->getCurrSliceIdx()); 327 327 328 #if REPN_FORMAT_IN_VPS328 #if SVC_EXTENSION 329 329 const UInt picWidth = pcSlice->getPicWidthInLumaSamples(); 330 330 const UInt picHeight = pcSlice->getPicHeightInLumaSamples(); … … 1149 1149 const UInt numPartInCtuWidth = m_pcPic->getNumPartInCtuWidth(); 1150 1150 1151 #if REPN_FORMAT_IN_VPS1151 #if SVC_EXTENSION 1152 1152 if( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxRT] + m_pcPic->getMinCUWidth() ) >= m_pcSlice->getPicWidthInLumaSamples() ) 1153 1153 #else … … 1209 1209 UInt uiAbsZorderCUIdxLB = g_auiZscanToRaster[ m_absZIdxInCtu ] + (m_puhHeight[0] / m_pcPic->getMinCUHeight() - 1)*numPartInCtuWidth; 1210 1210 1211 #if REPN_FORMAT_IN_VPS1211 #if SVC_EXTENSION 1212 1212 if( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxLB] + m_pcPic->getMinCUHeight() ) >= m_pcSlice->getPicHeightInLumaSamples() ) 1213 1213 #else … … 1257 1257 UInt uiAbsZorderCUIdxLB = g_auiZscanToRaster[ m_absZIdxInCtu ] + ((m_puhHeight[0] / m_pcPic->getMinCUHeight()) - 1)*numPartInCtuWidth; 1258 1258 1259 #if REPN_FORMAT_IN_VPS1259 #if SVC_EXTENSION 1260 1260 if( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxLB] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getPicHeightInLumaSamples()) 1261 1261 #else … … 1305 1305 const UInt numPartInCtuWidth = m_pcPic->getNumPartInCtuWidth(); 1306 1306 1307 #if REPN_FORMAT_IN_VPS1307 #if SVC_EXTENSION 1308 1308 if( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxRT] + (m_pcPic->getPicSym()->getMinCUHeight() * uiPartUnitOffset)) >= m_pcSlice->getPicWidthInLumaSamples() ) 1309 1309 #else … … 2511 2511 Int ctuRsAddr = -1; 2512 2512 2513 #if REPN_FORMAT_IN_VPS2513 #if SVC_EXTENSION 2514 2514 if ( ( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdxTmp] + m_pcPic->getMinCUWidth () ) < m_pcSlice->getPicWidthInLumaSamples() ) // image boundary check 2515 2515 && ( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdxTmp] + m_pcPic->getMinCUHeight() ) < m_pcSlice->getPicHeightInLumaSamples() ) ) … … 2853 2853 uiAbsPartIdx = g_auiZscanToRaster[uiPartIdxRB]; 2854 2854 Int ctuRsAddr = -1; 2855 #if REPN_FORMAT_IN_VPS 2855 2856 #if SVC_EXTENSION 2856 2857 if ( ( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelX() + g_auiRasterToPelX[uiAbsPartIdx] + m_pcPic->getMinCUWidth () ) < m_pcSlice->getPicWidthInLumaSamples()) // image boundary check 2857 2858 && ( ( m_pcPic->getCtu(m_ctuRsAddr)->getCUPelY() + g_auiRasterToPelY[uiAbsPartIdx] + m_pcPic->getMinCUHeight() ) < m_pcSlice->getPicHeightInLumaSamples() ) ) … … 2930 2931 Int iMvShift = 2; 2931 2932 Int iOffset = 8; 2932 #if REPN_FORMAT_IN_VPS2933 #if SVC_EXTENSION 2933 2934 Int iHorMax = ( m_pcSlice->getPicWidthInLumaSamples() + iOffset - m_uiCUPelX - 1 ) << iMvShift; 2934 2935 #else … … 2937 2938 Int iHorMin = ( -(Int)g_uiMaxCUWidth - iOffset - (Int)m_uiCUPelX + 1 ) << iMvShift; 2938 2939 2939 #if REPN_FORMAT_IN_VPS2940 #if SVC_EXTENSION 2940 2941 Int iVerMax = ( m_pcSlice->getPicHeightInLumaSamples() + iOffset - m_uiCUPelY - 1 ) << iMvShift; 2941 2942 #else -
branches/SHM-dev/source/Lib/TLibCommon/TComLoopFilter.cpp
r1029 r1203 181 181 UInt uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsZorderIdx] ]; 182 182 UInt uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsZorderIdx] ]; 183 #if REPN_FORMAT_IN_VPS183 #if SVC_EXTENSION 184 184 if( ( uiLPelX < pcCU->getSlice()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getPicHeightInLumaSamples() ) ) 185 185 #else -
branches/SHM-dev/source/Lib/TLibCommon/TComSampleAdaptiveOffset.cpp
r1029 r1203 668 668 UInt uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsZorderIdx] ]; 669 669 UInt uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsZorderIdx] ]; 670 #if REPN_FORMAT_IN_VPS670 #if SVC_EXTENSION 671 671 if( ( uiLPelX < pcCU->getSlice()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getPicHeightInLumaSamples() ) ) 672 672 #else -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.cpp
r1200 r1203 1932 1932 , m_bitRatePresentVpsFlag (false) 1933 1933 , m_picRatePresentVpsFlag (false) 1934 #if REPN_FORMAT_IN_VPS1935 1934 , m_repFormatIdxPresentFlag (false) 1936 1935 , m_vpsNumRepFormats (1) 1937 #endif1938 1936 , m_viewIdLen (0) 1939 1937 , m_vpsNonVuiExtLength (0) … … 2009 2007 } 2010 2008 2011 ::memset(m_bitRatePresentFlag, 0, sizeof(m_bitRatePresentFlag)); 2012 ::memset(m_picRatePresentFlag, 0, sizeof(m_picRatePresentFlag)); 2013 ::memset(m_avgBitRate , 0, sizeof(m_avgBitRate) ); 2014 ::memset(m_maxBitRate , 0, sizeof(m_maxBitRate) ); 2015 ::memset(m_constPicRateIdc , 0, sizeof(m_constPicRateIdc) ); 2016 ::memset(m_avgPicRate , 0, sizeof(m_avgPicRate) ); 2017 #if REPN_FORMAT_IN_VPS 2018 ::memset( m_vpsRepFormatIdx, 0, sizeof(m_vpsRepFormatIdx) ); 2019 #endif 2020 ::memset(m_viewIdVal, 0, sizeof(m_viewIdVal)); 2009 ::memset( m_bitRatePresentFlag, 0, sizeof(m_bitRatePresentFlag) ); 2010 ::memset( m_picRatePresentFlag, 0, sizeof(m_picRatePresentFlag) ); 2011 ::memset( m_avgBitRate , 0, sizeof(m_avgBitRate) ); 2012 ::memset( m_maxBitRate , 0, sizeof(m_maxBitRate) ); 2013 ::memset( m_constPicRateIdc , 0, sizeof(m_constPicRateIdc) ); 2014 ::memset( m_avgPicRate , 0, sizeof(m_avgPicRate) ); 2015 ::memset( m_vpsRepFormatIdx , 0, sizeof(m_vpsRepFormatIdx) ); 2016 ::memset( m_viewIdVal , 0, sizeof(m_viewIdVal)) ; 2021 2017 2022 2018 for( Int i = 0; i < MAX_NUM_LAYER_IDS; i++ ) … … 2115 2111 , m_extensionFlag ( false ) 2116 2112 , m_bV1CompatibleSPSFlag ( 0) 2117 #if REPN_FORMAT_IN_VPS2118 2113 , m_updateRepFormatFlag (false) 2119 2114 , m_updateRepFormatIndex (0) 2120 #endif2121 2115 #if SCALINGLIST_INFERRING 2122 2116 , m_inferScalingListFlag ( false ) … … 3507 3501 } 3508 3502 3509 #if REPN_FORMAT_IN_VPS3510 3503 UInt TComSlice::getPicWidthInLumaSamples() 3511 3504 { … … 3573 3566 #endif 3574 3567 3575 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )3568 if( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3576 3569 { 3577 3570 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) … … 3598 3591 UInt retVal, layerId = getLayerId(); 3599 3592 3600 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )3593 if( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3601 3594 { 3602 3595 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) … … 3623 3616 UInt retVal, layerId = getLayerId(); 3624 3617 3625 if ( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 )3618 if( layerId == 0 || sps->getV1CompatibleSPSFlag() == 1 ) 3626 3619 { 3627 3620 if( layerId == 0 && vps->getNonHEVCBaseLayerFlag() ) … … 3687 3680 , m_bitDepthVpsChroma (0) 3688 3681 {} 3689 #endif //REPN_FORMAT_IN_VPS3690 3682 3691 3683 Void TComPTL::copyProfileInfo(TComPTL *ptl) -
branches/SHM-dev/source/Lib/TLibCommon/TComSlice.h
r1201 r1203 508 508 }; 509 509 510 #if REPN_FORMAT_IN_VPS510 #if SVC_EXTENSION 511 511 class RepFormat 512 512 { … … 558 558 Void setConformanceWindowVps(Window& conformanceWindow ) { m_conformanceWindowVps = conformanceWindow; } 559 559 }; 560 #endif //REPN_FORMAT_IN_VPS560 #endif 561 561 562 562 class TComVPS … … 682 682 Bool m_altOutputLayerFlag[MAX_VPS_LAYER_SETS_PLUS1 + 2*MAX_NUM_ADD_LAYER_SETS]; 683 683 684 #if REPN_FORMAT_IN_VPS685 684 Bool m_repFormatIdxPresentFlag; 686 685 Int m_vpsNumRepFormats; // coded as minus1 687 686 RepFormat m_vpsRepFormat[16]; 688 687 Int m_vpsRepFormatIdx[16]; 689 #endif 688 690 689 Int m_viewIdLen; 691 690 Int m_viewIdVal [MAX_LAYERS]; … … 1051 1050 Void setBspHrdIdx(Int i, Int j, Int k, Int l, Int m, Int val) { m_bspHrdIdx[i][j][k][l][m] = val; } 1052 1051 #endif 1053 Void setBaseLayerPSCompatibilityFlag (Int layer, int val) { m_baseLayerPSCompatibilityFlag[layer] = val; } 1054 Int getBaseLayerPSCompatibilityFlag (Int layer) { return m_baseLayerPSCompatibilityFlag[layer];} 1055 Bool getAltOuputLayerFlag(Int idx) { return m_altOutputLayerFlag[idx]; } 1056 Void setAltOuputLayerFlag(Int idx, Bool x) { m_altOutputLayerFlag[idx] = x; } 1057 1058 #if REPN_FORMAT_IN_VPS 1059 Bool getRepFormatIdxPresentFlag() { return m_repFormatIdxPresentFlag; } 1060 Void setRepFormatIdxPresentFlag(Bool x) { m_repFormatIdxPresentFlag = x; } 1061 1062 Int getVpsNumRepFormats() { return m_vpsNumRepFormats; } 1063 Void setVpsNumRepFormats(Int x) { m_vpsNumRepFormats = x; } 1064 1065 RepFormat* getVpsRepFormat(Int idx) { return &m_vpsRepFormat[idx]; } 1066 1067 Int getVpsRepFormatIdx(Int idx) { return m_vpsRepFormatIdx[idx]; } 1068 Void setVpsRepFormatIdx(Int idx, Int x) { m_vpsRepFormatIdx[idx] = x; } 1069 #endif 1070 1071 Void setViewIdLen( Int val ) { m_viewIdLen = val; } 1072 Int getViewIdLen( ) { return m_viewIdLen; } 1073 1074 Void setViewIdVal( Int viewOrderIndex, Int val ) { m_viewIdVal[viewOrderIndex] = val; } 1075 Int getViewIdVal( Int viewOrderIndex ) { return m_viewIdVal[viewOrderIndex]; } 1052 Void setBaseLayerPSCompatibilityFlag (Int layer, int val) { m_baseLayerPSCompatibilityFlag[layer] = val; } 1053 Int getBaseLayerPSCompatibilityFlag (Int layer) { return m_baseLayerPSCompatibilityFlag[layer];} 1054 Bool getAltOuputLayerFlag(Int idx) { return m_altOutputLayerFlag[idx]; } 1055 Void setAltOuputLayerFlag(Int idx, Bool x) { m_altOutputLayerFlag[idx] = x; } 1056 1057 Bool getRepFormatIdxPresentFlag() { return m_repFormatIdxPresentFlag; } 1058 Void setRepFormatIdxPresentFlag(Bool x) { m_repFormatIdxPresentFlag = x; } 1059 1060 Int getVpsNumRepFormats() { return m_vpsNumRepFormats; } 1061 Void setVpsNumRepFormats(Int x) { m_vpsNumRepFormats = x; } 1062 1063 RepFormat* getVpsRepFormat(Int idx) { return &m_vpsRepFormat[idx]; } 1064 1065 Int getVpsRepFormatIdx(Int idx) { return m_vpsRepFormatIdx[idx]; } 1066 Void setVpsRepFormatIdx(Int idx, Int x) { m_vpsRepFormatIdx[idx] = x; } 1067 1068 Void setViewIdLen( Int val ) { m_viewIdLen = val; } 1069 Int getViewIdLen( ) { return m_viewIdLen; } 1070 1071 Void setViewIdVal( Int viewOrderIndex, Int val ) { m_viewIdVal[viewOrderIndex] = val; } 1072 Int getViewIdVal( Int viewOrderIndex ) { return m_viewIdVal[viewOrderIndex]; } 1076 1073 Int getScalabilityId(Int, ScalabilityType scalType ); 1077 1074 1078 Int getViewIndex ( Int layerIdInNuh ) { return getScalabilityId( getLayerIdxInVps(layerIdInNuh), VIEW_ORDER_INDEX ); }1075 Int getViewIndex ( Int layerIdInNuh ) { return getScalabilityId( getLayerIdxInVps(layerIdInNuh), VIEW_ORDER_INDEX ); } 1079 1076 1080 1077 Int getNumViews(); … … 1376 1373 Bool m_multiLayerExtSpsFlag; 1377 1374 Int m_NumDirectRefLayers; 1378 #if REPN_FORMAT_IN_VPS1379 1375 Bool m_updateRepFormatFlag; 1380 1376 UInt m_updateRepFormatIndex; 1381 #endif1382 1377 #if SCALINGLIST_INFERRING 1383 1378 Bool m_inferScalingListFlag; … … 1548 1543 Int getNumDirectRefLayers() { return m_NumDirectRefLayers; } 1549 1544 Void setNumDirectRefLayers(Int n) { m_NumDirectRefLayers = n; } 1550 #if REPN_FORMAT_IN_VPS1551 1545 Bool getUpdateRepFormatFlag() { return m_updateRepFormatFlag; } 1552 1546 Void setUpdateRepFormatFlag(Bool x) { m_updateRepFormatFlag = x; } 1553 1547 Int getUpdateRepFormatIndex() { return m_updateRepFormatIndex; } 1554 1548 Void setUpdateRepFormatIndex(UInt index) { m_updateRepFormatIndex = index; } 1555 #endif1556 1549 #if SCALINGLIST_INFERRING 1557 1550 Bool getInferScalingListFlag() { return m_inferScalingListFlag; } … … 2343 2336 Int getNumNegativeRpsCurrTempList(); 2344 2337 2345 #if REPN_FORMAT_IN_VPS2346 2338 UInt getPicWidthInLumaSamples(); 2347 2339 UInt getPicHeightInLumaSamples(); … … 2357 2349 2358 2350 Window& getConformanceWindow(); 2359 #endif2360 2351 2361 2352 Void setILRPic(TComPic **pcIlpPic); -
branches/SHM-dev/source/Lib/TLibCommon/TComTrQuant.cpp
r1029 r1203 112 112 } 113 113 114 #if REPN_FORMAT_IN_VPS114 #if SVC_EXTENSION 115 115 TComSlice* slice = const_cast<TComSlice*> (cu.getSlice()); 116 116 #endif … … 118 118 *this = QpParam(cu.getQP( 0 ), 119 119 toChannelType(compID), 120 #if REPN_FORMAT_IN_VPS120 #if SVC_EXTENSION 121 121 isLuma(compID) ? slice->getQpBDOffsetY() : slice->getQpBDOffsetC(), 122 122 #else -
branches/SHM-dev/source/Lib/TLibCommon/TypeDef.h
r1202 r1203 78 78 #endif 79 79 #define POC_RESET_INFO_INFERENCE 1 ///< JCTVC-Q0146: Infer the value of poc_reset_info_present_flag when not present 80 #define REPN_FORMAT_IN_VPS 1 ///< JCTVC-N0092: Signal represenation format (spatial resolution, bit depth, colour format) in the VPS81 80 #define SCALINGLIST_INFERRING 1 ///< JCTVC-N0371: inter-layer scaling list 82 81
Note: See TracChangeset for help on using the changeset viewer.