Changeset 397 in SHVCSoftware for branches/SHM-3.1-dev/source/App
- Timestamp:
- 17 Sep 2013, 18:53:51 (11 years ago)
- Location:
- branches/SHM-3.1-dev/source/App/TAppEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r389 r397 73 73 , m_scalingListFile() 74 74 , m_elRapSliceBEnabled(0) 75 #if N0120_MAX_TID_REF_CFG 76 , m_maxTidIlRefPicsPlus1PresentFlag(1) 77 #endif 75 78 { 76 79 for(UInt layer=0; layer<MAX_LAYERS; layer++) … … 397 400 Bool* cfg_RCForceIntraQP [MAX_LAYERS]; 398 401 #endif 402 #if N0120_MAX_TID_REF_CFG 403 Int* cfg_maxTidIlRefPicsPlus1[MAX_LAYERS]; 404 #endif 399 405 for(UInt layer = 0; layer < MAX_LAYERS; layer++) 400 406 { … … 442 448 cfg_RCForceIntraQP[layer] = &m_acLayerCfg[layer].m_RCForceIntraQP; 443 449 #endif 450 #if N0120_MAX_TID_REF_CFG 451 cfg_maxTidIlRefPicsPlus1[layer] = &m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1; 452 #endif 444 453 } 445 454 #if AVC_BASE … … 514 523 " bottom-right luma sample of the EL picture, in units of two luma samples") 515 524 #endif 525 #if N0120_MAX_TID_REF_CFG 526 ("MaxTidIlRefPicsPlus1Present", m_maxTidIlRefPicsPlus1PresentFlag, true, "max_tid_il_ref_pics_plus1_present_flag (0: not present, 1: present(default)) " ) 527 ("MaxTidIlRefPicsPlus1%d", cfg_maxTidIlRefPicsPlus1, 1, MAX_LAYERS, "allowed maximum temporal_id for inter-layer prediction") 528 #endif 516 529 #if AVC_BASE 517 530 ("AvcBase,-avc", m_avcBaseLayerFlag, 0, "avc_base_layer_flag") … … 2087 2100 } 2088 2101 #endif 2102 #if N0120_MAX_TID_REF_CFG 2103 for (UInt layer=0; layer < MAX_LAYERS-1; layer++) 2104 { 2105 xConfirmPara(m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1 < 0 || m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1 > 7, "MaxTidIlRefPicsPlus1 must be in range 0 to 7"); 2106 } 2107 #endif 2089 2108 #undef xConfirmPara 2090 2109 if (check_failed) -
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncCfg.h
r389 r397 76 76 Int m_ilSampleOnlyPred[ MAX_LAYERS ]; 77 77 #endif 78 #if N0120_MAX_TID_REF_CFG 79 Bool m_maxTidIlRefPicsPlus1PresentFlag; 80 #endif 78 81 #else 79 82 Char* m_pchInputFile; ///< source file name -
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r389 r397 66 66 #endif 67 67 68 #if N0120_MAX_TID_REF_CFG 69 Int m_maxTidIlRefPicsPlus1; 70 #endif 68 71 #if SVC_EXTENSION 69 72 Int m_iWaveFrontSubstreams; //< If iWaveFrontSynchro, this is the number of substreams per frame (dependent tiles) or per tile (independent tiles). … … 155 158 Void setSourceHeight(Int x) {m_iSourceHeight = x; } 156 159 #endif 160 #if N0120_MAX_TID_REF_CFG 161 Int getMaxTidIlRefPicsPlus1() { return m_maxTidIlRefPicsPlus1; } 162 #endif 157 163 }; // END CLASS DEFINITION TAppEncLayerCfg 158 164 -
branches/SHM-3.1-dev/source/App/TAppEncoder/TAppEncTop.cpp
r395 r397 195 195 m_acTEncTop[layer].setMaxTempLayer ( m_maxTempLayer ); 196 196 m_acTEncTop[layer].setUseAMP( m_enableAMP ); 197 #if N0120_MAX_TID_REF_CFG 198 if (layer<m_numLayers-1) 199 { 200 m_acTEncTop[layer].setMaxTidIlRefPicsPlus1 ( m_acLayerCfg[layer].getMaxTidIlRefPicsPlus1()); 201 } 202 #endif 197 203 #if VPS_EXTN_DIRECT_REF_LAYERS 198 204 if(layer) … … 925 931 #endif 926 932 #if N0120_MAX_TID_REF_PRESENT_FLAG 933 #if N0120_MAX_TID_REF_CFG 934 vps->setMaxTidIlRefPicsPlus1PresentFlag(m_maxTidIlRefPicsPlus1PresentFlag); 935 #else 927 936 vps->setMaxTidIlRefPicsPlus1PresentFlag(true); 937 #endif 928 938 if (vps->getMaxTidIlRefPicsPlus1PresentFlag()) 929 939 { 930 940 for( i = 0; i < MAX_VPS_LAYER_ID_PLUS1 - 1; i++ ) 931 941 { 942 #if N0120_MAX_TID_REF_CFG 943 vps->setMaxSublayerForIlpPlus1(i, m_acTEncTop[i].getMaxTidIlRefPicsPlus1()); 944 #else 932 945 vps->setMaxSublayerForIlpPlus1(i, vps->getMaxTLayers()+1); 946 #endif 933 947 } 934 948 }
Note: See TracChangeset for help on using the changeset viewer.