Changeset 1131 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 7 Jul 2015, 03:31:59 (10 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1130 r1131 371 371 Int m_elRapSliceBEnabled; 372 372 Int m_adaptiveResolutionChange; 373 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS374 373 int m_layerSwitchOffBegin; 375 374 int m_layerSwitchOffEnd; 376 #endif377 375 Bool m_altOutputLayerFlag; 378 376 Int m_skipPictureAtArcSwitch; … … 1014 1012 Void setAdaptiveResolutionChange(Int x) { m_adaptiveResolutionChange = x; } 1015 1013 Int getAdaptiveResolutionChange() { return m_adaptiveResolutionChange; } 1016 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS 1017 Void setLayerSwitchOffBegin(Int x) { m_layerSwitchOffBegin = x; } 1018 Int getLayerSwitchOffBegin() { return m_layerSwitchOffBegin; } 1019 Void setLayerSwitchOffEnd(Int x) { m_layerSwitchOffEnd = x; } 1020 Int getLayerSwitchOffEnd() { return m_layerSwitchOffEnd; } 1021 #endif 1022 Void setSkipPictureAtArcSwitch(Int x) { m_skipPictureAtArcSwitch = x; } 1023 Int getSkipPictureAtArcSwitch() { return m_skipPictureAtArcSwitch; } 1014 Void setLayerSwitchOffBegin(Int x) { m_layerSwitchOffBegin = x; } 1015 Int getLayerSwitchOffBegin() { return m_layerSwitchOffBegin; } 1016 Void setLayerSwitchOffEnd(Int x) { m_layerSwitchOffEnd = x; } 1017 Int getLayerSwitchOffEnd() { return m_layerSwitchOffEnd; } 1018 Void setSkipPictureAtArcSwitch(Int x) { m_skipPictureAtArcSwitch = x; } 1019 Int getSkipPictureAtArcSwitch() { return m_skipPictureAtArcSwitch; } 1024 1020 #if AUXILIARY_PICTURES 1025 Void setChromaFormatIDC(ChromaFormat x) { m_chromaFormatIDC = x; }1026 ChromaFormat getChromaFormatIDC() { return m_chromaFormatIDC; }1027 #endif 1028 Bool getAltOuputLayerFlag() const { return m_altOutputLayerFlag; }1029 Void setAltOuputLayerFlag(Bool b) { m_altOutputLayerFlag = b; }1021 Void setChromaFormatIDC(ChromaFormat x) { m_chromaFormatIDC = x; } 1022 ChromaFormat getChromaFormatIDC() { return m_chromaFormatIDC; } 1023 #endif 1024 Bool getAltOuputLayerFlag() const { return m_altOutputLayerFlag; } 1025 Void setAltOuputLayerFlag(Bool b) { m_altOutputLayerFlag = b; } 1030 1026 #if O0149_CROSS_LAYER_BLA_FLAG 1031 Bool getCrossLayerBLAFlag() const { return m_crossLayerBLAFlag; }1032 Void setCrossLayerBLAFlag(Bool b) { m_crossLayerBLAFlag = b; }1027 Bool getCrossLayerBLAFlag() const { return m_crossLayerBLAFlag; } 1028 Void setCrossLayerBLAFlag(Bool b) { m_crossLayerBLAFlag = b; } 1033 1029 #endif 1034 1030 #if FAST_INTRA_SHVC 1035 Bool getUseFastIntraScalable () { return m_useFastIntraScalable; }1036 Void setUseFastIntraScalable ( Bool b ) { m_useFastIntraScalable = b; }1031 Bool getUseFastIntraScalable () { return m_useFastIntraScalable; } 1032 Void setUseFastIntraScalable ( Bool b ) { m_useFastIntraScalable = b; } 1037 1033 #endif 1038 1034 #if VPS_EXTN_DIRECT_REF_LAYERS -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1130 r1131 122 122 m_lastPocPeriodId = -1; 123 123 #endif 124 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS125 124 m_noRaslOutputFlag = false; 126 125 m_prevPicHasEos = false; 127 #endif128 126 #endif //SVC_EXTENSION 129 127 … … 1111 1109 continue; 1112 1110 } 1113 #endif 1114 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS 1111 1115 1112 if (pocCurr > m_pcEncTop->getLayerSwitchOffBegin() && pocCurr < m_pcEncTop->getLayerSwitchOffEnd()) 1116 1113 { … … 1208 1205 } 1209 1206 #endif 1210 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS 1207 1211 1208 // Set the nal unit type 1212 1209 pcSlice->setNalUnitType(getNalUnitType(pocCurr, m_iLastIDR, isField)); 1213 #endif 1210 1214 1211 #if NO_CLRAS_OUTPUT_FLAG 1215 1212 if (m_layerId == 0 && … … 1225 1222 m_pcEncTop->setNoClrasOutputFlag(true); 1226 1223 } 1227 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS1228 1224 else if (m_prevPicHasEos) 1229 1225 { 1230 1226 m_pcEncTop->setNoClrasOutputFlag(true); 1231 1227 } 1232 #endif1233 1228 else if (pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_BLA_W_LP 1234 1229 || pcSlice->getNalUnitType() == NAL_UNIT_CODED_SLICE_BLA_W_RADL … … 1258 1253 } 1259 1254 #endif 1260 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS1261 1255 xCheckLayerReset(pcSlice); 1262 1256 xSetNoRaslOutputFlag(pcSlice); 1263 1257 xSetLayerInitializedFlag(pcSlice); 1264 #endif 1258 1265 1259 if (m_pcEncTop->getAdaptiveResolutionChange() > 0 && m_layerId > 0 && pocCurr > m_pcEncTop->getAdaptiveResolutionChange()) 1266 1260 { … … 1365 1359 } 1366 1360 1367 #if !R0071_IRAP_EOS_CROSS_LAYER_IMPACTS1368 // Set the nal unit type1369 pcSlice->setNalUnitType(getNalUnitType(pocCurr, m_iLastIDR, isField));1370 #endif1371 1361 #if SVC_EXTENSION 1372 1362 if (m_layerId > 0) … … 1535 1525 } 1536 1526 } 1527 #else 1528 // Set the nal unit type 1529 pcSlice->setNalUnitType(getNalUnitType(pocCurr, m_iLastIDR, isField)); 1537 1530 #endif //#if SVC_EXTENSION 1538 1531 … … 2926 2919 m_pcEntropyCoder->setBitstream(&nalu.m_Bitstream); 2927 2920 2928 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS2929 if (pcSlice->isIRAP())2921 #if SVC_EXTENSION 2922 if( pcSlice->isIRAP() ) 2930 2923 { 2931 2924 //the inference for NoOutputPriorPicsFlag … … 3451 3444 } 3452 3445 3453 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS3446 #if SVC_EXTENSION 3454 3447 m_prevPicHasEos = false; 3455 3448 if (m_pcCfg->getLayerSwitchOffBegin() < m_pcCfg->getLayerSwitchOffEnd()) … … 5341 5334 #endif 5342 5335 5343 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS5344 5336 Void TEncGOP::xCheckLayerReset(TComSlice *slice) 5345 5337 { … … 5457 5449 } 5458 5450 } 5459 #endif // R0071_IRAP_EOS_CROSS_LAYER_IMPACTS5460 5461 5451 #endif //SVC_EXTENSION 5462 5452 -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h
r1089 r1131 175 175 Int m_lastPocPeriodId; 176 176 #endif 177 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS178 177 Bool m_noRaslOutputFlag; 179 178 Bool m_prevPicHasEos; 180 #endif181 179 #endif 182 180 … … 315 313 Void free_mem2DintWithPad(Int **array2D, Int iPadY, Int iPadX); 316 314 #endif 317 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS318 315 Void xCheckLayerReset(TComSlice *slice); 319 316 Void xSetNoRaslOutputFlag(TComSlice *slice); 320 317 Void xSetLayerInitializedFlag(TComSlice *slice); 321 #endif322 318 #endif //SVC_EXTENSION 323 319 };// END CLASS DEFINITION TEncGOP -
branches/SHM-dev/source/Lib/TLibEncoder/TEncTop.h
r1093 r1131 156 156 Int m_currPocMsb; 157 157 #endif 158 #if R0071_IRAP_EOS_CROSS_LAYER_IMPACTS159 158 Bool m_prevPicHasEos; 160 #endif161 159 #endif //SVC_EXTENSION 162 160 protected:
Note: See TracChangeset for help on using the changeset viewer.