Changeset 1203 in SHVCSoftware
- Timestamp:
- 8 Jul 2015, 20:57:55 (10 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r1179 r1203 95 95 #if AVC_BASE 96 96 ("BLReconFile,-ibl", cfg_BLReconFile, string(""), "BL reconstructed YUV input file name") 97 #if !REPN_FORMAT_IN_VPS98 ("BLSourceWidth,-wdt", m_iBLSourceWidth, 0, "BL source picture width")99 ("BLSourceHeight,-hgt", m_iBLSourceHeight, 0, "BL source picture height")100 #endif101 97 #endif 102 98 ("TargetLayerId,-lid", targetLayerId, -1, "Target layer id") -
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.h
r1177 r1203 84 84 #if AVC_BASE 85 85 Char* m_pchBLReconFile; ///< input BL reconstruction file name 86 #if !REPN_FORMAT_IN_VPS87 Int m_iBLSourceWidth;88 Int m_iBLSourceHeight;89 #endif90 86 #endif 91 87 CommonDecoderParams m_commonDecoderParams; … … 113 109 #if Q0074_COLOUR_REMAPPING_SEI 114 110 , m_colourRemapSEIEnabled(0) 115 #endif116 #if SVC_EXTENSION117 #if AVC_BASE && !REPN_FORMAT_IN_VPS118 , m_iBLSourceWidth(0)119 , m_iBLSourceHeight(0)120 #endif121 111 #endif 122 112 , m_respectDefDispWindow(0) -
branches/SHM-dev/source/App/TAppDecoder/TAppDecTop.cpp
r1200 r1203 796 796 if (display) 797 797 { 798 #if REPN_FORMAT_IN_VPS799 798 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 800 799 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 806 805 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 807 806 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff ); 808 #else809 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(),810 m_outputColourSpaceConvert,811 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),812 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),813 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),814 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff );815 #endif816 807 } 817 808 } … … 915 906 const Window &conf = pcPic->getConformanceWindow(); 916 907 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 917 #if REPN_FORMAT_IN_VPS 908 918 909 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 919 910 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 924 915 conf.getWindowTopOffset() * yScal + defDisp.getWindowTopOffset(), 925 916 conf.getWindowBottomOffset()* yScal + defDisp.getWindowBottomOffset() ); 926 #else927 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), m_outputColourSpaceConvert,928 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),929 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),930 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),931 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() );932 #endif933 917 } 934 918 … … 1051 1035 const Window &defDisp = m_respectDefDispWindow ? pcPicTop->getDefDisplayWindow() : Window(); 1052 1036 const Bool isTff = pcPicTop->isTopField(); 1053 #if REPN_FORMAT_IN_VPS 1037 1054 1038 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 1055 1039 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 1060 1044 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 1061 1045 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff ); 1062 #else1063 m_acTVideoIOYuvReconFile[layerId].write( pcPicTop->getPicYuvRec(), pcPicBottom->getPicYuvRec(), m_outputColourSpaceConvert,1064 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),1065 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),1066 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),1067 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset(), NUM_CHROMA_FORMAT, isTff );1068 #endif1069 1046 } 1070 1047 … … 1154 1131 const Window &conf = pcPic->getConformanceWindow(); 1155 1132 const Window &defDisp = m_respectDefDispWindow ? pcPic->getDefDisplayWindow() : Window(); 1156 #if REPN_FORMAT_IN_VPS 1133 1157 1134 UInt chromaFormatIdc = pcPic->getSlice(0)->getChromaFormatIdc(); 1158 1135 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ), yScal = TComSPS::getWinUnitY( chromaFormatIdc ); … … 1163 1140 conf.getWindowTopOffset() *yScal + defDisp.getWindowTopOffset(), 1164 1141 conf.getWindowBottomOffset()*yScal + defDisp.getWindowBottomOffset() ); 1165 #else1166 m_acTVideoIOYuvReconFile[layerId].write( pcPic->getPicYuvRec(), m_outputColourSpaceConvert,1167 conf.getWindowLeftOffset() + defDisp.getWindowLeftOffset(),1168 conf.getWindowRightOffset() + defDisp.getWindowRightOffset(),1169 conf.getWindowTopOffset() + defDisp.getWindowTopOffset(),1170 conf.getWindowBottomOffset() + defDisp.getWindowBottomOffset() );1171 #endif1172 1142 } 1173 1143 … … 1300 1270 const Window &defDisp = m_respectDefDispWindow ? pic->getDefDisplayWindow() : Window(); 1301 1271 Int xScal = 1, yScal = 1; 1302 #if REPN_FORMAT_IN_VPS 1272 1303 1273 UInt chromaFormatIdc = pic->getSlice(0)->getChromaFormatIdc(); 1304 1274 xScal = TComSPS::getWinUnitX( chromaFormatIdc ); 1305 1275 yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1306 #endif 1276 1307 1277 TComPicYuv* pPicCYuvRec = pic->getPicYuvRec(); 1308 1278 m_acTVideoIOYuvReconFile[layerId].write( pPicCYuvRec, m_outputColourSpaceConvert, … … 1655 1625 const Window &defDisp = m_respectDefDispWindow ? checkPic.getDefDisplayWindow() : Window(); 1656 1626 Int xScal = 1, yScal = 1; 1657 #if REPN_FORMAT_IN_VPS1627 1658 1628 UInt chromaFormatIdc = checkPic.getSlice(0)->getChromaFormatIdc(); 1659 1629 xScal = TComSPS::getWinUnitX( chromaFormatIdc ); 1660 1630 yScal = TComSPS::getWinUnitY( chromaFormatIdc ); 1661 #endif1631 1662 1632 if( checkPic.getPOC() <= pocValue ) 1663 1633 { -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1202 r1203 737 737 Double* cfg_fQP [MAX_LAYERS]; 738 738 Int* cfg_layerId [MAX_LAYERS]; 739 #if REPN_FORMAT_IN_VPS740 739 Int* cfg_repFormatIdx [MAX_LAYERS]; 741 #endif742 740 Int* cfg_SourceWidth [MAX_LAYERS]; 743 741 Int* cfg_SourceHeight [MAX_LAYERS]; … … 848 846 cfg_colourRemapSEIFileRoot[layer] = &m_acLayerCfg[layer].m_colourRemapSEIFileRoot; 849 847 #endif 850 #if REPN_FORMAT_IN_VPS 851 cfg_repFormatIdx[layer] = &m_acLayerCfg[layer].m_repFormatIdx; 852 #endif 848 cfg_repFormatIdx[layer] = &m_acLayerCfg[layer].m_repFormatIdx; 853 849 cfg_layerId[layer] = &m_acLayerCfg[layer].m_layerId; 854 850 cfg_SourceWidth[layer] = &m_acLayerCfg[layer].m_iSourceWidth; … … 1041 1037 ("FrameRate%d,-fr%d", cfg_FrameRate, 0, MAX_LAYERS, "Frame rate for layer %d") 1042 1038 ("LambdaModifier%d,-LM%d", m_adLambdaModifier, Double(1.0), MAX_TLAYER, "Lambda modifier for temporal layer %d") 1043 #if REPN_FORMAT_IN_VPS1044 1039 ("RepFormatIdx%d", cfg_repFormatIdx, -1, MAX_LAYERS, "Index to the representation format structure used from the VPS") 1045 #endif1046 1040 ("LayerId%d", cfg_layerId, -1, MAX_LAYERS, "Layer id") 1047 1041 -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1201 r1203 472 472 Int m_adaptiveResolutionChange; ///< Indicate adaptive resolution change frame 473 473 Bool m_skipPictureAtArcSwitch; ///< Indicates that when ARC up-switching is performed the higher layer picture is a skip picture 474 #if REPN_FORMAT_IN_VPS 474 475 475 RepFormatCfg m_repFormatCfg[16]; ///< Rep_format structures 476 #endif477 476 #if N0383_IL_CONSTRAINED_TILE_SETS_SEI 478 477 Bool m_interLayerConstrainedTileSetsSEIEnabled; … … 557 556 Void cfgStringToArrayNumEntries(Int **arr, string const cfgString, Int &numEntries, const char* logString); 558 557 559 #if REPN_FORMAT_IN_VPS560 558 RepFormatCfg* getRepFormatCfg(Int i) { return &m_repFormatCfg[i]; } 561 #endif562 559 #if LAYER_CTB 563 560 Bool getUsePCM() { return m_usePCM; } -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.cpp
r1200 r1203 45 45 m_cReconFile(string("")), 46 46 m_conformanceMode( 0 ), 47 m_aidQP(NULL) 48 #if REPN_FORMAT_IN_VPS 49 , m_repFormatIdx (-1) 50 #endif 47 m_aidQP(NULL), 48 m_repFormatIdx (-1) 51 49 #if Q0074_COLOUR_REMAPPING_SEI 52 50 , m_colourRemapSEIFileRoot(string("")) … … 214 212 printf("Input File : %s\n", m_cInputFile.c_str() ); 215 213 printf("Reconstruction File : %s\n", m_cReconFile.c_str() ); 216 #if REPN_FORMAT_IN_VPS214 #if SVC_EXTENSION 217 215 printf("Real Format : %dx%d %dHz\n", m_iSourceWidth - ( m_confWinLeft + m_confWinRight ) * TComSPS::getWinUnitX( m_chromaFormatIDC ), m_iSourceHeight - ( m_confWinTop + m_confWinBottom ) * TComSPS::getWinUnitY( m_chromaFormatIDC ), m_iFrameRate ); 218 216 #else … … 314 312 m_aiPad[0] = m_confWinRight = ((m_iSourceWidth / minCuSize) + 1) * minCuSize - m_iSourceWidth; 315 313 m_iSourceWidth += m_confWinRight; 316 #if REPN_FORMAT_IN_VPS314 #if SVC_EXTENSION 317 315 m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC ); 318 316 #endif … … 327 325 m_aiPad[1] = m_confWinBottom << 1; 328 326 } 329 #if REPN_FORMAT_IN_VPS327 #if SVC_EXTENSION 330 328 m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC ); 331 329 #endif … … 346 344 m_confWinRight = m_aiPad[0]; 347 345 m_confWinBottom = m_aiPad[1]; 348 #if REPN_FORMAT_IN_VPS346 #if SVC_EXTENSION 349 347 m_confWinRight /= TComSPS::getWinUnitX( m_chromaFormatIDC ); 350 348 m_confWinBottom /= TComSPS::getWinUnitY( m_chromaFormatIDC ); … … 429 427 xConfirmPara( m_aiPad[1] % TComSPS::getWinUnitY(CHROMA_420) != 0, "Vertical padding must be an integer multiple of the specified chroma subsampling"); 430 428 431 #if ! REPN_FORMAT_IN_VPS429 #if !SVC_EXTENSION 432 430 xConfirmPara( m_confLeft % TComSPS::getWinUnitX(CHROMA_420) != 0, "Left conformance window offset must be an integer multiple of the specified chroma subsampling"); 433 431 xConfirmPara( m_confRight % TComSPS::getWinUnitX(CHROMA_420) != 0, "Right conformance window offset must be an integer multiple of the specified chroma subsampling"); -
branches/SHM-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r1182 r1203 118 118 Bool m_useHighPrecisionPredictionWeighting; 119 119 120 #if REPN_FORMAT_IN_VPS121 120 Int m_repFormatIdx; 122 #endif123 121 #if Q0074_COLOUR_REMAPPING_SEI 124 122 string m_colourRemapSEIFileRoot; ///< Colour Remapping Information SEI message parameters file … … 206 204 Bool getRCForceIntraQP() {return m_RCForceIntraQP; } 207 205 #endif 208 #if REPN_FORMAT_IN_VPS209 206 Int getRepFormatIdx() { return m_repFormatIdx; } 210 207 Void setRepFormatIdx(Int x) { m_repFormatIdx = x; } 211 208 Void setSourceWidth(Int x) { m_iSourceWidth = x; } 212 209 Void setSourceHeight(Int x) { m_iSourceHeight = x; } 213 #endif214 210 Int getMaxTidIlRefPicsPlus1() { return m_maxTidIlRefPicsPlus1; } 215 211 #if LAYER_CTB -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1201 r1203 93 93 } 94 94 95 #if REPN_FORMAT_IN_VPS96 95 Int maxRepFormatIdx = -1; 97 96 Int formatIdx = -1; … … 183 182 m_acTEncTop[mapIdxToLayer[idx]].setSkipPictureAtArcSwitch ( m_skipPictureAtArcSwitch ); 184 183 } 184 185 185 delete [] mapIdxToLayer; 186 #endif187 186 188 187 //Populate PTL in VPS … … 2198 2197 Void TAppEncTop::xWriteRecon(UInt layer, Int iNumEncoded) 2199 2198 { 2200 #if REPN_FORMAT_IN_VPS2199 #if SVC_EXTENSION 2201 2200 ChromaFormat chromaFormatIdc = m_acLayerCfg[layer].getChromaFormatIDC(); 2202 2201 Int xScal = TComSPS::getWinUnitX( chromaFormatIdc ); … … 2224 2223 if( !m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRecTop->isReconstructed() && pcPicYuvRecBottom->isReconstructed() ) 2225 2224 { 2226 #if REPN_FORMAT_IN_VPS2225 #if SVC_EXTENSION 2227 2226 m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRecTop, pcPicYuvRecBottom, ipCSC, m_acLayerCfg[layer].getConfWinLeft() * xScal, m_acLayerCfg[layer].getConfWinRight() * xScal, 2228 2227 m_acLayerCfg[layer].getConfWinTop() * yScal, m_acLayerCfg[layer].getConfWinBottom() * yScal, NUM_CHROMA_FORMAT, m_isTopFieldFirst ); … … 2249 2248 if( !m_acLayerCfg[layer].getReconFile().empty() && pcPicYuvRec->isReconstructed() ) 2250 2249 { 2251 #if REPN_FORMAT_IN_VPS2250 #if SVC_EXTENSION 2252 2251 m_acTVideoIOYuvReconFile[layer].write( pcPicYuvRec, ipCSC, m_acLayerCfg[layer].getConfWinLeft() * xScal, m_acLayerCfg[layer].getConfWinRight() * xScal, 2253 2252 m_acLayerCfg[layer].getConfWinTop() * yScal, m_acLayerCfg[layer].getConfWinBottom() * yScal ); -
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 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 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 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 -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.cpp
r1200 r1203 738 738 { 739 739 Window &conf = pcSPS->getConformanceWindow(); 740 #if REPN_FORMAT_IN_VPS740 #if SVC_EXTENSION 741 741 READ_UVLC( uiCode, "conf_win_left_offset" ); conf.setWindowLeftOffset ( uiCode ); 742 742 READ_UVLC( uiCode, "conf_win_right_offset" ); conf.setWindowRightOffset ( uiCode ); … … 1188 1188 pcSlice->setDependentSliceSegmentFlag(false); 1189 1189 } 1190 #if REPN_FORMAT_IN_VPS1190 #if SVC_EXTENSION 1191 1191 Int numCTUs = ((pcSlice->getPicWidthInLumaSamples()+sps->getMaxCUWidth()-1)/sps->getMaxCUWidth())*((pcSlice->getPicHeightInLumaSamples()+sps->getMaxCUHeight()-1)/sps->getMaxCUHeight()); 1192 1192 #else … … 1789 1789 pcSlice->setSliceQp (26 + pps->getPicInitQPMinus26() + iCode); 1790 1790 1791 #if REPN_FORMAT_IN_VPS1791 #if SVC_EXTENSION 1792 1792 g_bitDepthLayer[CHANNEL_TYPE_LUMA][pcSlice->getLayerId()] = pcSlice->getBitDepthY(); 1793 1793 g_bitDepthLayer[CHANNEL_TYPE_CHROMA][pcSlice->getLayerId()] = pcSlice->getBitDepthC(); … … 2336 2336 #endif 2337 2337 2338 #if REPN_FORMAT_IN_VPS2338 #if SVC_EXTENSION 2339 2339 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 2340 2340 #else … … 2957 2957 vps->checkNecessaryLayerFlagCondition(); 2958 2958 2959 #if REPN_FORMAT_IN_VPS2960 2959 READ_UVLC( uiCode, "vps_num_rep_formats_minus1" ); 2961 2960 vps->setVpsNumRepFormats( uiCode + 1 ); … … 3005 3004 } 3006 3005 } 3007 #endif3008 3006 3009 3007 READ_FLAG(uiCode, "max_one_active_ref_layer_flag" ); … … 3183 3181 } 3184 3182 3185 #if REPN_FORMAT_IN_VPS3186 3183 Void TDecCavlc::parseRepFormat( RepFormat *repFormat, RepFormat *repFormatPrev ) 3187 3184 { … … 3235 3232 } 3236 3233 } 3237 #endif //REPN_FORMAT_IN_VPS 3234 3238 3235 #if VPS_DPB_SIZE_TABLE 3239 3236 Void TDecCavlc::parseVpsDpbSizeTable( TComVPS *vps ) -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCAVLC.h
r1185 r1203 132 132 Void parseVPSVUI ( TComVPS* pcVPS ); 133 133 Void defaultVPSVUI ( TComVPS* pcVPS ); 134 #if REPN_FORMAT_IN_VPS135 134 Void parseRepFormat ( RepFormat *repFormat, RepFormat *repFormatPrev ); 136 #endif137 135 #if VPS_DPB_SIZE_TABLE 138 136 Void parseVpsDpbSizeTable( TComVPS *vps ); -
branches/SHM-dev/source/Lib/TLibDecoder/TDecCu.cpp
r1128 r1203 222 222 223 223 TComSlice * pcSlice = pcCU->getPic()->getSlice(pcCU->getPic()->getCurrSliceIdx()); 224 #if REPN_FORMAT_IN_VPS 224 225 #if SVC_EXTENSION 225 226 if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) ) 226 227 #else … … 254 255 uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiIdx] ]; 255 256 256 #if REPN_FORMAT_IN_VPS257 #if SVC_EXTENSION 257 258 if ( !isLastCtuOfSliceSegment && ( uiLPelX < pcCU->getSlice()->getPicWidthInLumaSamples() ) && ( uiTPelY < pcCU->getSlice()->getPicHeightInLumaSamples() ) ) 258 259 #else … … 406 407 TComSlice * pcSlice = pCtu->getPic()->getSlice(pCtu->getPic()->getCurrSliceIdx()); 407 408 408 #if REPN_FORMAT_IN_VPS409 #if SVC_EXTENSION 409 410 if( ( uiRPelX >= pcSlice->getPicWidthInLumaSamples() ) || ( uiBPelY >= pcSlice->getPicHeightInLumaSamples() ) ) 410 411 411 #else 412 412 if( ( uiRPelX >= pcSlice->getSPS()->getPicWidthInLumaSamples() ) || ( uiBPelY >= pcSlice->getSPS()->getPicHeightInLumaSamples() ) ) … … 426 426 uiTPelY = pCtu->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiIdx] ]; 427 427 428 #if REPN_FORMAT_IN_VPS428 #if SVC_EXTENSION 429 429 if( ( uiLPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiTPelY < pcSlice->getPicHeightInLumaSamples() ) ) 430 430 #else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecSbac.cpp
r1029 r1203 946 946 { 947 947 UInt uiSign; 948 #if REPN_FORMAT_IN_VPS948 #if SVC_EXTENSION 949 949 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 950 950 #else -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.cpp
r1200 r1203 288 288 } 289 289 290 #if REPN_FORMAT_IN_VPS291 290 rpcPic->create ( pcSlice->getPicWidthInLumaSamples(), pcSlice->getPicHeightInLumaSamples(), pcSlice->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 292 291 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true); 293 #else294 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,295 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true);296 #endif297 298 292 #else //SVC_EXTENSION 299 293 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, … … 345 339 } 346 340 347 #if REPN_FORMAT_IN_VPS348 341 rpcPic->create ( pcSlice->getPicWidthInLumaSamples(), pcSlice->getPicHeightInLumaSamples(), pcSlice->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, 349 342 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true); 350 #else351 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth,352 conformanceWindow, defaultDisplayWindow, numReorderPics, pcSlice->getSPS(), true);353 #endif354 343 #else //SVC_EXTENSION 355 344 rpcPic->create ( pcSlice->getSPS()->getPicWidthInLumaSamples(), pcSlice->getSPS()->getPicHeightInLumaSamples(), pcSlice->getSPS()->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, … … 652 641 for (UInt channel = 0; channel < MAX_NUM_CHANNEL_TYPE; channel++) 653 642 { 654 #if REPN_FORMAT_IN_VPS643 #if SVC_EXTENSION 655 644 g_bitDepth[channel] = isLuma(ChannelType(channel)) ? m_apcSlicePilot->getBitDepthY() : m_apcSlicePilot->getBitDepthC(); 656 645 #else … … 677 666 678 667 m_cSAO.destroy(); 679 #if REPN_FORMAT_IN_VPS668 #if SVC_EXTENSION 680 669 m_cSAO.create( m_apcSlicePilot->getPicWidthInLumaSamples(), m_apcSlicePilot->getPicHeightInLumaSamples(), sps->getChromaFormatIdc(), sps->getMaxCUWidth(), sps->getMaxCUHeight(), sps->getMaxCUDepth(), pps->getSaoOffsetBitShift(CHANNEL_TYPE_LUMA), pps->getSaoOffsetBitShift(CHANNEL_TYPE_CHROMA) ); 681 670 #else … … 1205 1194 xActivateParameterSets(); 1206 1195 1207 #if REPN_FORMAT_IN_VPS1196 #if SVC_EXTENSION 1208 1197 // Initialize ILRP if needed, only for the current layer 1209 1198 // ILRP intialization should go along with activation of parameters sets, … … 1211 1200 xInitILRP(m_apcSlicePilot); 1212 1201 #endif 1202 1213 1203 if (!m_apcSlicePilot->getDependentSliceSegmentFlag()) 1214 1204 { … … 2284 2274 2285 2275 #if SVC_EXTENSION 2286 #if !REPN_FORMAT_IN_VPS2287 Void TDecTop::xInitILRP(TComSPS *pcSPS)2288 #else2289 2276 Void TDecTop::xInitILRP(TComSlice *slice) 2290 #endif 2291 { 2292 #if REPN_FORMAT_IN_VPS 2277 { 2293 2278 TComSPS* pcSPS = slice->getSPS(); 2294 2279 Int bitDepthY = slice->getBitDepthY(); … … 2296 2281 Int picWidth = slice->getPicWidthInLumaSamples(); 2297 2282 Int picHeight = slice->getPicHeightInLumaSamples(); 2298 #endif 2299 if( m_layerId>0)2300 { 2301 #if REPN_FORMAT_IN_VPS 2283 2284 if( m_layerId > 0 ) 2285 { 2286 2302 2287 g_bitDepth[CHANNEL_TYPE_LUMA] = bitDepthY; 2303 2288 g_bitDepth[CHANNEL_TYPE_CHROMA] = bitDepthC; 2304 #else2305 g_bitDepth[CHANNEL_TYPE_LUMA] = pcSPS->getBitDepthY();2306 g_bitDepth[CHANNEL_TYPE_CHROMA] = pcSPS->getBitDepthC();2307 #endif2308 2289 g_uiMaxCUWidth = pcSPS->getMaxCUWidth(); 2309 2290 g_uiMaxCUHeight = pcSPS->getMaxCUHeight(); … … 2338 2319 2339 2320 #if AUXILIARY_PICTURES 2340 #if REPN_FORMAT_IN_VPS2341 2321 m_cIlpPic[j]->create(picWidth, picHeight, slice->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true); 2342 2322 #else 2343 m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), pcSPS->getChromaFormatIdc(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true);2344 #endif2345 #else2346 #if REPN_FORMAT_IN_VPS2347 2323 m_cIlpPic[j]->create(picWidth, picHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true); 2348 #else2349 m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, pcSPS, true);2350 #endif2351 2324 #endif 2352 2325 for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCtusInFrame(); i++) -
branches/SHM-dev/source/Lib/TLibDecoder/TDecTop.h
r1199 r1203 136 136 #if AVC_BASE 137 137 fstream* m_pBLReconFile; 138 #if !REPN_FORMAT_IN_VPS139 Int m_iBLSourceWidth;140 Int m_iBLSourceHeight;141 #endif142 138 #endif 143 139 … … 258 254 Void setBLReconFile( fstream* pFile ) { m_pBLReconFile = pFile; } 259 255 fstream* getBLReconFile() { return m_pBLReconFile; } 260 #if !REPN_FORMAT_IN_VPS 261 Void setBLsize( Int iWidth, Int iHeight ) { m_iBLSourceWidth = iWidth; m_iBLSourceHeight = iHeight; } 262 Int getBLWidth() { return m_iBLSourceWidth; } 263 Int getBLHeight() { return m_iBLSourceHeight; } 264 #endif 265 #endif 266 #if REPN_FORMAT_IN_VPS 256 #endif 267 257 Void xInitILRP(TComSlice *slice); 268 #else269 Void xInitILRP(TComSPS *pcSPS);270 #endif271 258 CommonDecoderParams* getCommonDecoderParams() { return m_commonDecoderParams; } 272 259 Void setCommonDecoderParams(CommonDecoderParams* x) { m_commonDecoderParams = x; } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1199 r1203 587 587 if (conf.getWindowEnabledFlag()) 588 588 { 589 #if REPN_FORMAT_IN_VPS589 #if SVC_EXTENSION 590 590 WRITE_UVLC( conf.getWindowLeftOffset(), "conf_win_left_offset" ); 591 591 WRITE_UVLC( conf.getWindowRightOffset(), "conf_win_right_offset" ); … … 1606 1606 Int iDQp = pcCU->getQP( uiAbsPartIdx ) - pcCU->getRefQP( uiAbsPartIdx ); 1607 1607 1608 #if REPN_FORMAT_IN_VPS1608 #if SVC_EXTENSION 1609 1609 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 1610 1610 #else … … 2132 2132 } 2133 2133 2134 #if REPN_FORMAT_IN_VPS2135 2134 // The value of vps_num_rep_formats_minus1 shall be in the range of 0 to 255, inclusive. 2136 2135 assert( vps->getVpsNumRepFormats() > 0 && vps->getVpsNumRepFormats() <= 256 ); … … 2166 2165 } 2167 2166 } 2168 #endif2169 2167 2170 2168 WRITE_FLAG(vps->getMaxOneActiveRefLayerFlag(), "max_one_active_ref_layer_flag"); … … 2230 2228 } 2231 2229 2232 #if REPN_FORMAT_IN_VPS2233 2230 Void TEncCavlc::codeRepFormat( RepFormat *repFormat ) 2234 2231 { … … 2263 2260 } 2264 2261 } 2265 #endif 2262 2266 2263 #if VPS_DPB_SIZE_TABLE 2267 2264 Void TEncCavlc::codeVpsDpbSizeTable(TComVPS *vps) -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.h
r1185 r1203 160 160 Void codeVPSExtension ( TComVPS* pcVPS ); 161 161 Void codeVPSVUI ( TComVPS *vps ); 162 #if REPN_FORMAT_IN_VPS163 162 Void codeRepFormat ( RepFormat *repFormat ); 164 #endif165 163 #if VPS_DPB_SIZE_TABLE 166 164 Void codeVpsDpbSizeTable (TComVPS *vps); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1150 r1203 1163 1163 1164 1164 #if SVC_EXTENSION 1165 #if REPN_FORMAT_IN_VPS1166 1165 struct RepFormatCfg 1167 1166 { … … 1182 1181 }; 1183 1182 std::istringstream &operator>>(std::istringstream &in, RepFormatCfg &repFormatCfg); 1184 #endif1185 1183 #endif //SVC_EXTENSION 1186 1184 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCu.cpp
r1029 r1203 410 410 { 411 411 Int idQP = m_pcEncCfg->getMaxDeltaQP(); 412 #if REPN_FORMAT_IN_VPS412 #if SVC_EXTENSION 413 413 iMinQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP ); 414 414 iMaxQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP ); … … 446 446 TComSlice * pcSlice = rpcTempCU->getPic()->getSlice(rpcTempCU->getPic()->getCurrSliceIdx()); 447 447 // We need to split, so don't try these modes. 448 #if REPN_FORMAT_IN_VPS448 #if SVC_EXTENSION 449 449 if ( ( uiRPelX < rpcBestCU->getSlice()->getPicWidthInLumaSamples() ) && 450 450 ( uiBPelY < rpcBestCU->getSlice()->getPicHeightInLumaSamples() ) ) … … 808 808 { 809 809 Int idQP = m_pcEncCfg->getMaxDeltaQP(); 810 #if REPN_FORMAT_IN_VPS810 #if SVC_EXTENSION 811 811 iMinQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP-idQP ); 812 812 iMaxQP = Clip3( -rpcTempCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQP+idQP ); … … 858 858 pcSubTempPartCU->initSubCU( rpcTempCU, uiPartUnitIdx, uhNextDepth, iQP ); // clear sub partition datas or init. 859 859 860 #if REPN_FORMAT_IN_VPS860 #if SVC_EXTENSION 861 861 if( ( pcSubBestPartCU->getCUPelX() < pcSlice->getPicWidthInLumaSamples() ) && ( pcSubBestPartCU->getCUPelY() < pcSlice->getPicHeightInLumaSamples() ) ) 862 862 #else … … 1032 1032 iQpOffset = Int(floor( dQpOffset + 0.49999 )); 1033 1033 } 1034 #if REPN_FORMAT_IN_VPS1034 #if SVC_EXTENSION 1035 1035 return Clip3(-pcCU->getSlice()->getQpBDOffsetY(), MAX_QP, iBaseQp+iQpOffset ); 1036 1036 #else … … 1063 1063 #endif 1064 1064 1065 #if REPN_FORMAT_IN_VPS1065 #if SVC_EXTENSION 1066 1066 if( ( uiRPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiBPelY < pcSlice->getPicHeightInLumaSamples() ) ) 1067 1067 #else … … 1093 1093 uiLPelX = pcCU->getCUPelX() + g_auiRasterToPelX[ g_auiZscanToRaster[uiAbsPartIdx] ]; 1094 1094 uiTPelY = pcCU->getCUPelY() + g_auiRasterToPelY[ g_auiZscanToRaster[uiAbsPartIdx] ]; 1095 #if REPN_FORMAT_IN_VPS 1095 1096 #if SVC_EXTENSION 1096 1097 if( ( uiLPelX < pcSlice->getPicWidthInLumaSamples() ) && ( uiTPelY < pcSlice->getPicHeightInLumaSamples() ) ) 1097 1098 #else -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1201 r1203 2237 2237 } 2238 2238 2239 #if REPN_FORMAT_IN_VPS2239 #if SVC_EXTENSION 2240 2240 sliceQP = Clip3( -pcSlice->getQpBDOffsetY(), MAX_QP, sliceQP ); 2241 2241 #else … … 3016 3016 const Int minCuWidth = pcPic->getMinCUWidth(); 3017 3017 const Int minCuHeight = pcPic->getMinCUHeight(); 3018 #if REPN_FORMAT_IN_VPS3018 #if SVC_EXTENSION 3019 3019 const Int paddedWidth = ((pcSlice->getPicWidthInLumaSamples() + minCuWidth - 1) / minCuWidth) * minCuWidth; 3020 3020 const Int paddedHeight= ((pcSlice->getPicHeightInLumaSamples() + minCuHeight - 1) / minCuHeight) * minCuHeight; -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSbac.cpp
r1029 r1203 876 876 Int iDQp = pcCU->getQP( uiAbsPartIdx ) - pcCU->getRefQP( uiAbsPartIdx ); 877 877 878 #if REPN_FORMAT_IN_VPS878 #if SVC_EXTENSION 879 879 Int qpBdOffsetY = pcCU->getSlice()->getQpBDOffsetY(); 880 880 #else -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r1201 r1203 4696 4696 } 4697 4697 4698 #if REPN_FORMAT_IN_VPS4698 #if SVC_EXTENSION 4699 4699 qpMin = bHighPass ? Clip3( -pcCU->getSlice()->getQpBDOffsetY(), MAX_QP, pcCU->getQP(0) - m_iMaxDeltaQP ) : pcCU->getQP( 0 ); 4700 4700 qpMax = bHighPass ? Clip3( -pcCU->getSlice()->getQpBDOffsetY(), MAX_QP, pcCU->getQP(0) + m_iMaxDeltaQP ) : pcCU->getQP( 0 ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1201 r1203 339 339 if(eSliceType!=I_SLICE) 340 340 { 341 #if REPN_FORMAT_IN_VPS341 #if SVC_EXTENSION 342 342 if (!(( m_pcCfg->getMaxDeltaQP() == 0 ) && (dQP == -rpcSlice->getQpBDOffsetY() ) && (rpcSlice->getPPS()->getTransquantBypassEnableFlag()))) 343 343 #else … … 413 413 } 414 414 415 #if REPN_FORMAT_IN_VPS415 #if SVC_EXTENSION 416 416 iQP = max( -rpcSlice->getQpBDOffsetY(), min( MAX_QP, (Int) floor( dQP + 0.5 ) ) ); 417 417 #else … … 474 474 { 475 475 dQP = xGetQPValueAccordingToLambda( dLambda ); 476 #if REPN_FORMAT_IN_VPS476 #if SVC_EXTENSION 477 477 iQP = max( -rpcSlice->getQpBDOffsetY(), min( MAX_QP, (Int) floor( dQP + 0.5 ) ) ); 478 478 #else … … 721 721 pCtu->initCtu( pcPic, ctuRsAddr ); 722 722 723 #if REPN_FORMAT_IN_VPS723 #if SVC_EXTENSION 724 724 Int height = min( pcSlice->getSPS()->getMaxCUHeight(),pcSlice->getPicHeightInLumaSamples() - ctuRsAddr / pcPic->getFrameWidthInCtus() * pcSlice->getSPS()->getMaxCUHeight() ); 725 725 Int width = min( pcSlice->getSPS()->getMaxCUWidth(),pcSlice->getPicWidthInLumaSamples() - ctuRsAddr % pcPic->getFrameWidthInCtus() * pcSlice->getSPS()->getMaxCUWidth() ); … … 897 897 } 898 898 899 #if REPN_FORMAT_IN_VPS899 #if SVC_EXTENSION 900 900 estQP = Clip3( -pcSlice->getQpBDOffsetY(), MAX_QP, estQP ); 901 901 #else -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.cpp
r1200 r1203 813 813 for (UInt channelType = 0; channelType < MAX_NUM_CHANNEL_TYPE; channelType++) 814 814 { 815 #if REPN_FORMAT_IN_VPS815 #if SVC_EXTENSION 816 816 m_cSPS.setBitDepth (ChannelType(channelType), m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) ); 817 817 m_cSPS.setQpBDOffset (ChannelType(channelType), (6 * (m_cVPS.getVpsRepFormat( m_cVPS.getVpsRepFormatIdx( m_cVPS.getLayerIdxInVps( m_layerId ) ) )->getBitDepthVps(ChannelType(channelType)) - 8))); … … 1408 1408 } 1409 1409 1410 #if !REPN_FORMAT_IN_VPS1411 Void TEncTop::xInitILRP()1412 {1413 if(m_layerId>0)1414 {1415 g_bitDepthY = m_cSPS.getBitDepthY();1416 g_bitDepthC = m_cSPS.getBitDepthC();1417 g_uiMaxCUWidth = m_cSPS.getMaxCUWidth();1418 g_uiMaxCUHeight = m_cSPS.getMaxCUHeight();1419 g_uiMaxCUDepth = m_cSPS.getMaxCUDepth();1420 g_uiAddCUDepth = max (0, m_cSPS.getLog2MinCodingBlockSize() - (Int)m_cSPS.getQuadtreeTULog2MinSize() );1421 1422 Int numReorderPics[MAX_TLAYER];1423 Window &conformanceWindow = m_cSPS.getConformanceWindow();1424 Window defaultDisplayWindow = m_cSPS.getVuiParametersPresentFlag() ? m_cSPS.getVuiParameters()->getDefaultDisplayWindow() : Window();1425 1426 if (m_cIlpPic[0] == NULL)1427 {1428 for (Int j=0; j < m_numLayer; j++) // consider to set to NumDirectRefLayers[LayerIdInVps[nuh_layer_id]]1429 {1430 m_cIlpPic[j] = new TComPic;1431 #if AUXILIARY_PICTURES1432 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, m_chromaFormatIDC, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true);1433 #else1434 m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, &m_cSPS, true);1435 #endif1436 for (Int i=0; i<m_cIlpPic[j]->getPicSym()->getNumberOfCUsInFrame(); i++)1437 {1438 m_cIlpPic[j]->getPicSym()->getCU(i)->initCU(m_cIlpPic[j], i);1439 }1440 }1441 }1442 }1443 }1444 #else1445 1410 Void TEncTop::xInitILRP() 1446 1411 { … … 1510 1475 } 1511 1476 } 1512 #endif1513 1477 1514 1478 Window& TEncTop::getScaledRefLayerWindowForLayer(Int layerId)
Note: See TracChangeset for help on using the changeset viewer.