Changeset 1203 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 8 Jul 2015, 20:57:55 (9 years ago)
- Location:
- branches/SHM-dev/source/App
- Files:
-
- 8 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 );
Note: See TracChangeset for help on using the changeset viewer.