Changeset 768 in 3DVCSoftware for branches/HTM-9.2-dev0/source/App
- Timestamp:
- 13 Jan 2014, 00:44:19 (11 years ago)
- Location:
- branches/HTM-9.2-dev0/source/App
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-9.2-dev0/source/App/TAppDecoder/TAppDecCfg.cpp
r766 r768 124 124 if ( !cfg_TargetDecLayerIdSetFile.empty() ) 125 125 { 126 #if H_MV 126 127 m_targetDecLayerIdSetFileEmpty = false; 128 #endif 127 129 FILE* targetDecLayerIdSetFile = fopen ( cfg_TargetDecLayerIdSetFile.c_str(), "r" ); 128 130 if ( targetDecLayerIdSetFile ) -
branches/HTM-9.2-dev0/source/App/TAppDecoder/TAppDecCfg.h
r766 r768 75 75 76 76 std::vector<Int> m_targetDecLayerIdSet; ///< set of LayerIds to be included in the sub-bitstream extraction process. 77 #if H_MV 77 78 Bool m_targetDecLayerIdSetFileEmpty; ///< indication if target layers are given by file 79 #endif 78 80 Int m_respectDefDispWindow; ///< Only output content inside the default display window 79 81 … … 84 86 TAppDecCfg() 85 87 : m_pchBitstreamFile(NULL) 86 #if H_MV87 #endif88 88 , m_pchReconFile(NULL) 89 89 , m_iSkipFrame(0) … … 92 92 , m_iMaxTemporalLayer(-1) 93 93 , m_decodedPictureHashSEIEnabled(0) 94 #if H_MV 94 95 , m_targetDecLayerIdSetFileEmpty(true) 96 #endif 95 97 , m_respectDefDispWindow(0) 96 98 {} -
branches/HTM-9.2-dev0/source/App/TAppEncoder/TAppEncCfg.cpp
r766 r768 444 444 ("QuadtreeTUMaxDepthIntra", m_uiQuadtreeTUMaxDepthIntra, 1u, "Depth of TU tree for intra CUs") 445 445 ("QuadtreeTUMaxDepthInter", m_uiQuadtreeTUMaxDepthInter, 2u, "Depth of TU tree for inter CUs") 446 447 446 // Coding structure parameters 447 #if H_MV 448 448 ("IntraPeriod,-ip", m_iIntraPeriod,std::vector<Int>(1,-1), "Intra period in frames, (-1: only first frame), per layer") 449 #else 450 ("IntraPeriod,-ip", m_iIntraPeriod, -1, "Intra period in frames, (-1: only first frame)") 451 #endif 449 452 ("DecodingRefreshType,-dr", m_iDecodingRefreshType, 0, "Intra refresh type (0:none 1:CRA 2:IDR)") 450 453 ("GOPSize,g", m_iGOPSize, 1, "GOP size of temporal structure") … … 1440 1443 xConfirmPara( m_iGOPSize < 1 , "GOP Size must be greater or equal to 1" ); 1441 1444 xConfirmPara( m_iGOPSize > 1 && m_iGOPSize % 2, "GOP Size must be a multiple of 2, if GOP Size is greater than 1" ); 1445 #if H_MV 1442 1446 for( Int layer = 0; layer < m_numberOfLayers; layer++ ) 1443 1447 { 1444 1448 xConfirmPara( (m_iIntraPeriod[layer] > 0 && m_iIntraPeriod[layer] < m_iGOPSize) || m_iIntraPeriod[layer] == 0, "Intra period must be more than GOP size, or -1 , not 0" ); 1445 1449 } 1450 #else 1451 xConfirmPara( (m_iIntraPeriod > 0 && m_iIntraPeriod < m_iGOPSize) || m_iIntraPeriod == 0, "Intra period must be more than GOP size, or -1 , not 0" ); 1452 #endif 1446 1453 xConfirmPara( m_iDecodingRefreshType < 0 || m_iDecodingRefreshType > 2, "Decoding Refresh Type must be equal to 0, 1 or 2" ); 1447 1454 #if H_MV … … 1469 1476 if (m_iDecodingRefreshType == 2) 1470 1477 { 1478 #if H_MV 1471 1479 for (Int i = 0; i < m_numberOfLayers; i++ ) 1472 1480 { 1473 1481 xConfirmPara( m_iIntraPeriod[i] > 0 && m_iIntraPeriod[i] <= m_iGOPSize , "Intra period must be larger than GOP size for periodic IDR pictures"); 1474 1482 } 1483 #else 1484 xConfirmPara( m_iIntraPeriod > 0 && m_iIntraPeriod <= m_iGOPSize , "Intra period must be larger than GOP size for periodic IDR pictures"); 1485 #endif 1475 1486 } 1476 1487 xConfirmPara( (m_uiMaxCUWidth >> m_uiMaxCUDepth) < 4, "Minimum partition width size should be larger than or equal to 8"); … … 1731 1742 /* if this is an intra-only sequence, ie IntraPeriod=1, don't verify the GOP structure 1732 1743 * This permits the ability to omit a GOP structure specification */ 1733 if (m_iIntraPeriod[layer] == 1 && m_GOPList[0].m_POC == -1) { 1744 #if H_MV 1745 if (m_iIntraPeriod[layer] == 1 && m_GOPList[0].m_POC == -1) 1746 { 1747 #else 1748 if (m_iIntraPeriod == 1 && m_GOPList[0].m_POC == -1) { 1749 #endif 1734 1750 m_GOPList[0] = GOPEntry(); 1735 1751 m_GOPList[0].m_QPFactor = 1; … … 1756 1772 } 1757 1773 Int numOK=0; 1774 #if H_MV 1775 xConfirmPara( m_iIntraPeriod >=0&&(m_iIntraPeriod%m_iGOPSize!=0), "Intra period must be a multiple of GOPSize, or -1" ); 1776 #else 1758 1777 xConfirmPara( m_iIntraPeriod[layer] >=0&&(m_iIntraPeriod[layer]%m_iGOPSize!=0), "Intra period must be a multiple of GOPSize, or -1" ); 1778 #endif 1759 1779 1760 1780 for(Int i=0; i<m_iGOPSize; i++) … … 2292 2312 printf("Min PCM size : %d\n", 1 << m_uiPCMLog2MinSize); 2293 2313 printf("Motion search range : %d\n", m_iSearchRange ); 2314 #if H_MV 2294 2315 xPrintParaVector( "Intra period", m_iIntraPeriod ); 2316 #else 2317 printf("Intra period : %d\n", m_iIntraPeriod ); 2318 #endif 2295 2319 printf("Decoding refresh type : %d\n", m_iDecodingRefreshType ); 2296 2320 #if !H_MV -
branches/HTM-9.2-dev0/source/App/TAppEncoder/TAppEncCfg.h
r766 r768 178 178 179 179 // coding structure 180 #if H_MV 180 181 std::vector<Int> m_iIntraPeriod; ///< period of I-slice (random access period) 182 #else 183 Int m_iIntraPeriod; ///< period of I-slice (random access period) 184 #endif 181 185 Int m_iDecodingRefreshType; ///< random access type 182 186 Int m_iGOPSize; ///< GOP size of hierarchical structure -
branches/HTM-9.2-dev0/source/App/TAppEncoder/TAppEncTop.cpp
r767 r768 230 230 231 231 //====== Coding Structure ======== 232 #if H_MV 232 233 m_cTEncTop.setIntraPeriod ( m_iIntraPeriod[ layerIdInVps ] ); 234 #else 235 m_cTEncTop.setIntraPeriod ( m_iIntraPeriod ); 236 #endif 233 237 m_cTEncTop.setDecodingRefreshType ( m_iDecodingRefreshType ); 234 238 m_cTEncTop.setGOPSize ( m_iGOPSize );
Note: See TracChangeset for help on using the changeset viewer.