Changeset 756 in SHVCSoftware for branches/SHM-6-dev/source/App/TAppEncoder
- Timestamp:
- 29 Apr 2014, 23:55:59 (11 years ago)
- Location:
- branches/SHM-6-dev/source/App/TAppEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r705 r756 69 69 , m_avcBaseLayerFlag(0) 70 70 #endif 71 #if N0120_MAX_TID_REF_CFG72 71 , m_maxTidRefPresentFlag(1) 73 #endif74 72 , m_pColumnWidth() 75 73 , m_pRowHeight() … … 420 418 Int* cfg_OutputBitDepthC [MAX_LAYERS]; 421 419 #endif 422 #if N0120_MAX_TID_REF_CFG423 420 Int* cfg_maxTidIlRefPicsPlus1[MAX_LAYERS]; 424 #endif425 421 for(UInt layer = 0; layer < MAX_LAYERS; layer++) 426 422 { … … 491 487 cfg_OutputBitDepthC [layer] = &m_acLayerCfg[layer].m_outputBitDepthC; 492 488 #endif 493 #if N0120_MAX_TID_REF_CFG 494 cfg_maxTidIlRefPicsPlus1[layer] = &m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1; 495 #endif 489 cfg_maxTidIlRefPicsPlus1[layer] = &m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1; 496 490 #if AUXILIARY_PICTURES 497 491 cfg_auxId[layer] = &m_acLayerCfg[layer].m_auxId; … … 598 592 ("OutputBitDepthC%d", cfg_OutputBitDepthC, 0, MAX_LAYERS, "As per OutputBitDepth but for chroma component. (default:InternalBitDepthC)") 599 593 #endif 600 #if N0120_MAX_TID_REF_CFG601 594 ("MaxTidRefPresentFlag", m_maxTidRefPresentFlag, true, "max_tid_ref_present_flag (0: not present, 1: present(default)) " ) 602 595 ("MaxTidIlRefPicsPlus1%d", cfg_maxTidIlRefPicsPlus1, 1, MAX_LAYERS, "allowed maximum temporal_id for inter-layer prediction") 603 #endif604 596 #if O0223_PICTURE_TYPES_ALIGN_FLAG 605 597 ("CrossLayerPictureTypeAlignFlag", m_crossLayerPictureTypeAlignFlag, true, "align picture type across layers" ) … … 2234 2226 xConfirmPara(m_framePackingSEIType < 3 || m_framePackingSEIType > 5 , "SEIFramePackingType must be in rage 3 to 5"); 2235 2227 } 2228 2229 #if SVC_EXTENSION 2236 2230 #if VPS_EXTN_DIRECT_REF_LAYERS 2237 2231 xConfirmPara( (m_acLayerCfg[0].m_numSamplePredRefLayers != 0) && (m_acLayerCfg[0].m_numSamplePredRefLayers != -1), "Layer 0 cannot have any reference layers" ); … … 2304 2298 } 2305 2299 #endif 2306 #if N0120_MAX_TID_REF_CFG2307 2300 for (UInt layer=0; layer < MAX_LAYERS-1; layer++) 2308 2301 { 2309 2302 xConfirmPara(m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1 < 0 || m_acLayerCfg[layer].m_maxTidIlRefPicsPlus1 > 7, "MaxTidIlRefPicsPlus1 must be in range 0 to 7"); 2310 2303 } 2311 #endif2312 2304 #if AUXILIARY_PICTURES 2313 2305 for (UInt layer=0; layer < MAX_LAYERS-1; layer++) … … 2320 2312 xConfirmPara( m_nCGSFlag < 0 || m_nCGSFlag > 1 , "0<=CGS<=1" ); 2321 2313 #endif 2314 #endif //SVC_EXTENSION 2322 2315 #undef xConfirmPara 2323 2316 if (check_failed) -
branches/SHM-6-dev/source/App/TAppEncoder/TAppEncCfg.h
r694 r756 73 73 Char* m_BLSyntaxFile; ///< input syntax file 74 74 #endif 75 #if N0120_MAX_TID_REF_CFG76 75 Bool m_maxTidRefPresentFlag; 77 #endif78 76 #else 79 77 Char* m_pchInputFile; ///< source file name -
branches/SHM-6-dev/source/App/TAppEncoder/TAppEncLayerCfg.h
r700 r756 83 83 #endif 84 84 85 #if N0120_MAX_TID_REF_CFG86 85 Int m_maxTidIlRefPicsPlus1; 87 #endif88 86 Int m_iWaveFrontSubstreams; //< If iWaveFrontSynchro, this is the number of substreams per frame (dependent tiles) or per tile (independent tiles). 89 87 … … 181 179 Void setSourceHeight(Int x) { m_iSourceHeight = x; } 182 180 #endif 183 #if N0120_MAX_TID_REF_CFG184 181 Int getMaxTidIlRefPicsPlus1() { return m_maxTidIlRefPicsPlus1; } 185 #endif186 182 #if LAYER_CTB 187 183 UInt getMaxCUWidth() {return m_uiMaxCUWidth; } -
branches/SHM-6-dev/source/App/TAppEncoder/TAppEncTop.cpp
r755 r756 261 261 m_acTEncTop[layer].setMaxTempLayer ( m_maxTempLayer ); 262 262 m_acTEncTop[layer].setUseAMP( m_enableAMP ); 263 #if N0120_MAX_TID_REF_CFG 264 if (layer<m_numLayers-1)263 264 if( layer < m_numLayers - 1 ) 265 265 { 266 266 m_acTEncTop[layer].setMaxTidIlRefPicsPlus1 ( m_acLayerCfg[layer].getMaxTidIlRefPicsPlus1()); 267 267 } 268 #endif 268 269 269 #if VPS_EXTN_DIRECT_REF_LAYERS 270 270 if(layer) … … 1102 1102 #if VPS_TSLAYERS 1103 1103 vps->setMaxTSLayersPresentFlag(true); 1104 1104 1105 for( i = 0; i < vps->getMaxLayers(); i++ ) 1105 1106 { … … 1107 1108 } 1108 1109 #endif 1109 #if N0120_MAX_TID_REF_CFG1110 1110 vps->setMaxTidRefPresentFlag(m_maxTidRefPresentFlag); 1111 #else1112 vps->setMaxTidRefPresentFlag(true);1113 #endif1114 1111 if (vps->getMaxTidRefPresentFlag()) 1115 1112 { 1116 1113 for( i = 0; i < vps->getMaxLayers() - 1; i++ ) 1117 1114 { 1118 #if N0120_MAX_TID_REF_CFG1119 1115 #if O0225_MAX_TID_FOR_REF_LAYERS 1120 1116 for( Int j = i+1; j < vps->getMaxLayers(); j++) … … 1125 1121 vps->setMaxTidIlRefPicsPlus1(i, m_acTEncTop[i].getMaxTidIlRefPicsPlus1()); 1126 1122 #endif 1127 #else1128 #if O0225_MAX_TID_FOR_REF_LAYERS1129 for( Int j = i+1; j < vps->getMaxLayers(); j++)1130 {1131 vps->setMaxTidIlRefPicsPlus1(i, j, vps->getMaxTLayers()+1);1132 }1133 #else1134 vps->setMaxTidIlRefPicsPlus1(i, vps->getMaxTLayers()+1);1135 #endif1136 #endif1137 1123 } 1138 1124 }
Note: See TracChangeset for help on using the changeset viewer.