Changeset 1203 in SHVCSoftware for branches/SHM-dev/source/App/TAppEncoder
- Timestamp:
- 8 Jul 2015, 20:57:55 (10 years ago)
- Location:
- branches/SHM-dev/source/App/TAppEncoder
- Files:
-
- 5 edited
-
TAppEncCfg.cpp (modified) (3 diffs)
-
TAppEncCfg.h (modified) (2 diffs)
-
TAppEncLayerCfg.cpp (modified) (6 diffs)
-
TAppEncLayerCfg.h (modified) (2 diffs)
-
TAppEncTop.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.