Changeset 1415 in SHVCSoftware for branches/SHM-dev
- Timestamp:
- 4 Aug 2015, 05:03:29 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1407 r1415 1188 1188 ("ConfWinTop", m_confWinTop, 0, "Top offset for window conformance mode 3") 1189 1189 ("ConfWinBottom", m_confWinBottom, 0, "Bottom offset for window conformance mode 3") 1190 ("AccessUnitDelimiter", m_AccessUnitDelimiter, false, "Enable Access Unit Delimiter NALUs") 1190 1191 ("FrameRate,-fr", m_iFrameRate, 0, "Frame rate") 1191 1192 #if Q0074_COLOUR_REMAPPING_SEI -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1406 r1415 119 119 #if !SVC_EXTENSION 120 120 Int m_aiPad[2]; ///< number of padded pixels for width and height 121 #endif 121 #endif 122 Bool m_AccessUnitDelimiter; ///< add Access Unit Delimiter NAL units 122 123 InputColourSpaceConversion m_inputColourSpaceConvert; ///< colour space conversion to apply to input video 123 124 Bool m_snrInternalColourSpace; ///< if true, then no colour space conversion is applied for snr calculation, otherwise inverse of input is applied. -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1406 r1415 543 543 544 544 m_cTEncTop.setPad ( m_aiPad ); 545 546 m_cTEncTop.setAccessUnitDelimiter ( m_AccessUnitDelimiter ); 545 547 546 548 #if SVC_EXTENSION -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.cpp
r1356 r1415 67 67 #endif 68 68 69 69 Void AUDWriter::codeAUD(TComBitIf& bs, const Int pictureType) 70 { 71 #if ENC_DEC_TRACE 72 xTraceAccessUnitDelimiter(); 73 #endif 74 75 assert (pictureType < 3); 76 setBitstream(&bs); 77 WRITE_CODE(pictureType, 3, "pic_type"); 78 xWriteRbspTrailingBits(); 79 } 70 80 71 81 // ==================================================================================================================== -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCavlc.h
r1307 r1415 64 64 // Class definition 65 65 // ==================================================================================================================== 66 67 class AUDWriter : public SyntaxElementWriter 68 { 69 public: 70 AUDWriter() {}; 71 virtual ~AUDWriter() {}; 72 73 Void codeAUD(TComBitIf& bs, const Int pictureType); 74 }; 66 75 67 76 /// CAVLC encoder class -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1406 r1415 143 143 Int m_aiPad[2]; 144 144 145 Bool m_AccessUnitDelimiter; ///< add Access Unit Delimiter NAL units 145 146 146 147 Int m_iMaxRefPicNum; ///< this is used to mimic the sliding mechanism used by the decoder … … 622 623 623 624 Int getPad ( Int i ) { assert (i < 2 ); return m_aiPad[i]; } 625 626 Bool getAccessUnitDelimiter() const { return m_AccessUnitDelimiter; } 627 Void setAccessUnitDelimiter(Bool val){ m_AccessUnitDelimiter = val; } 624 628 625 629 //======== Transform ============= -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.cpp
r1400 r1415 49 49 #include <time.h> 50 50 #include <math.h> 51 51 52 #include <deque> 53 using namespace std; 52 54 53 55 #if SVC_EXTENSION … … 56 58 #endif 57 59 58 using namespace std;59 60 60 61 //! \ingroup TLibEncoder … … 293 294 294 295 return actualTotalBits; 296 } 297 298 Void TEncGOP::xWriteAccessUnitDelimiter (AccessUnit &accessUnit, TComSlice *slice) 299 { 300 AUDWriter audWriter; 301 OutputNALUnit nalu(NAL_UNIT_ACCESS_UNIT_DELIMITER); 302 303 Int picType = slice->isIntra() ? 0 : (slice->isInterP() ? 1 : 2); 304 305 audWriter.codeAUD(nalu.m_Bitstream, picType); 306 accessUnit.push_front(new NALUnitEBSP(nalu)); 295 307 } 296 308 … … 2576 2588 #endif 2577 2589 2590 if (m_pcCfg->getAccessUnitDelimiter()) 2591 { 2592 xWriteAccessUnitDelimiter(accessUnit, pcSlice); 2593 } 2594 2578 2595 // reset presence of BP SEI indication 2579 2596 m_bufferingPeriodSEIPresentInAU = false; -
branches/SHM-dev/source/Lib/TLibEncoder/TEncGOP.h
r1336 r1415 55 55 #include "SEIwrite.h" 56 56 #include "SEIEncoder.h" 57 #if CGS_3D_ASYMLUT58 #include "TEnc3DAsymLUT.h"59 #endif60 57 61 58 #include "TEncAnalyze.h" 62 59 #include "TEncRateCtrl.h" 63 60 #include <vector> 61 62 #if CGS_3D_ASYMLUT 63 #include "TEnc3DAsymLUT.h" 64 #endif 64 65 65 66 //! \ingroup TLibEncoder … … 235 236 Double xCalculateRVM(); 236 237 238 Void xWriteAccessUnitDelimiter (AccessUnit &accessUnit, TComSlice *slice); 239 237 240 Void xCreateIRAPLeadingSEIMessages (SEIMessages& seiMessages, const TComSPS *sps, const TComPPS *pps); 238 241 Void xCreatePerPictureSEIMessages (Int picInGOP, SEIMessages& seiMessages, SEIMessages& nestedSeiMessages, TComSlice *slice);
Note: See TracChangeset for help on using the changeset viewer.