Changeset 1310 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 21 Jul 2015, 01:25:41 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1308 r1310 103 103 ::memset(m_ltRefPicUsedByCurrPicFlag, 0, sizeof(m_ltRefPicUsedByCurrPicFlag)); 104 104 m_lastBPSEI = 0; 105 xResetNonNestedSEIPresentFlags(); 106 xResetNestedSEIPresentFlags(); 105 m_bufferingPeriodSEIPresentInAU = false; 107 106 m_associatedIRAPType = NAL_UNIT_CODED_SLICE_IDR_N_LP; 108 107 m_associatedIRAPPOC = 0; … … 572 571 m_seiEncoder.initSEIActiveParameterSets (sei, m_pcCfg->getVPS(), sps); 573 572 seiMessages.push_back(sei); 574 m_activeParameterSetSEIPresentInAU = true;575 573 } 576 574 … … 1084 1082 pictureTimingSEI->m_picStruct = (isField && slice->getPic()->isTopField())? 1 : isField? 2 : 0; 1085 1083 seiMessages.push_back(pictureTimingSEI); 1086 m_pictureTimingSEIPresentInAU = true;1087 1084 1088 1085 if ( m_pcCfg->getScalableNestingSEIEnabled() ) // put picture timing SEI into scalable nesting SEI 1089 1086 { 1090 if (m_pcCfg->getScalableNestingSEIEnabled()) 1091 { 1092 SEIPictureTiming *pictureTimingSEIcopy = new SEIPictureTiming(); 1093 pictureTimingSEI->copyTo(*pictureTimingSEIcopy); 1094 nestedSeiMessages.push_back(pictureTimingSEIcopy); 1095 } 1096 m_nestedPictureTimingSEIPresentInAU = true; 1087 SEIPictureTiming *pictureTimingSEIcopy = new SEIPictureTiming(); 1088 pictureTimingSEI->copyTo(*pictureTimingSEIcopy); 1089 nestedSeiMessages.push_back(pictureTimingSEIcopy); 1097 1090 } 1098 1091 } … … 2597 2590 #endif 2598 2591 2592 // reset presence of BP SEI indication 2593 m_bufferingPeriodSEIPresentInAU = false; 2599 2594 // create prefix SEI associated with a picture 2600 2595 xCreatePerPictureSEIMessages(iGOPid, leadingSeiMessages, nestedSeiMessages, pcSlice); … … 2887 2882 } 2888 2883 #endif 2889 2890 xResetNonNestedSEIPresentFlags();2891 xResetNestedSEIPresentFlags();2892 2884 2893 2885 pcPic->getPicYuvRec()->copyToPic(pcPicYuvRecOut); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h
r1307 r1310 136 136 UInt m_lastBPSEI; 137 137 UInt m_totalCoded; 138 Bool m_activeParameterSetSEIPresentInAU;139 138 Bool m_bufferingPeriodSEIPresentInAU; 140 Bool m_pictureTimingSEIPresentInAU;141 Bool m_nestedBufferingPeriodSEIPresentInAU;142 Bool m_nestedPictureTimingSEIPresentInAU;143 139 SEIEncoder m_seiEncoder; 144 140 … … 274 270 Int xWriteParameterSets (AccessUnit &accessUnit, TComSlice *slice); 275 271 276 Void xResetNonNestedSEIPresentFlags()277 {278 m_activeParameterSetSEIPresentInAU = false;279 m_bufferingPeriodSEIPresentInAU = false;280 m_pictureTimingSEIPresentInAU = false;281 }282 Void xResetNestedSEIPresentFlags()283 {284 m_nestedBufferingPeriodSEIPresentInAU = false;285 m_nestedPictureTimingSEIPresentInAU = false;286 }287 272 Void applyDeblockingFilterMetric( TComPic* pcPic, UInt uiNumSlices ); 288 273
Note: See TracChangeset for help on using the changeset viewer.