Changeset 50 in 3DVCSoftware for branches/0.3-nokia/source/Lib/TLibCommon
- Timestamp:
- 4 Apr 2012, 16:55:35 (13 years ago)
- Location:
- branches/0.3-nokia/source/Lib/TLibCommon
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.3-nokia/source/Lib/TLibCommon/CommonDef.h
r21 r50 58 58 59 59 #define HM_VERSION "3.0rc2" ///< Current software version 60 #define NV_VERSION "0. 3" ///< Current software version60 #define NV_VERSION "0.4" ///< Current software version 61 61 62 62 // ==================================================================================================================== -
branches/0.3-nokia/source/Lib/TLibCommon/SEI.h
r5 r50 41 41 class SEI 42 42 { 43 #if BITSTREAM_EXTRACTION 44 protected: 45 UInt m_uiLayerId; 46 #endif 47 43 48 public: 44 49 enum PayloadType { … … 51 56 52 57 virtual PayloadType payloadType() const = 0; 58 59 #if BITSTREAM_EXTRACTION 60 Void setLayerId ( UInt u ) { m_uiLayerId = u; } 61 UInt getLayerId () const { return m_uiLayerId; } 62 #endif 53 63 }; 54 64 -
branches/0.3-nokia/source/Lib/TLibCommon/TComBitStream.cpp
r5 r50 61 61 m_auiSliceByteLocation = NULL; 62 62 m_uiSliceCount = 0; 63 #if BITSTREAM_EXTRACTION 64 m_apulPacketPayloadBuffer = new UInt[uiSize]; 65 m_uiPacketPayloadSize = 0; 66 #endif 63 67 } 64 68 … … 66 70 { 67 71 delete [] m_apulStreamPacketBegin; m_apulStreamPacketBegin = NULL; 72 #if BITSTREAM_EXTRACTION 73 delete [] m_apulPacketPayloadBuffer; m_apulPacketPayloadBuffer = NULL; 74 #endif 68 75 } 69 76 … … 148 155 xReadNextWord(); 149 156 } 157 158 #if BITSTREAM_EXTRACTION 159 UInt TComBitstream::reinitParsing() 160 { 161 rewindStreamPacket(); 162 memcpy( m_apulStreamPacketBegin, m_apulPacketPayloadBuffer, m_uiPacketPayloadSize ); 163 initParsing( m_uiPacketPayloadSize ); 164 return m_uiPacketPayloadSize; 165 } 166 #endif 150 167 151 168 #if LCEC_INTRA_MODE || QC_LCEC_INTER_MODE … … 319 336 UChar* pucWrite = reinterpret_cast<UChar*> (getBuffer()); 320 337 338 #if BITSTREAM_EXTRACTION 339 memcpy( m_apulPacketPayloadBuffer, m_apulStreamPacketBegin, uiBytesRead ); 340 m_uiPacketPayloadSize = uiBytesRead; 341 #endif 342 321 343 for( ; uiReadOffset < uiBytesRead; uiReadOffset++ ) 322 344 { -
branches/0.3-nokia/source/Lib/TLibCommon/TComBitStream.h
r5 r50 85 85 UInt m_uiSliceProcessed; 86 86 87 #if BITSTREAM_EXTRACTION 88 UInt* m_apulPacketPayloadBuffer; 89 UInt m_uiPacketPayloadSize; 90 #endif 91 87 92 UInt xSwap ( UInt ui ) 88 93 { … … 164 169 165 170 void insertAt(const TComBitstream& src, unsigned pos); 171 172 #if BITSTREAM_EXTRACTION 173 UInt reinitParsing(); 174 #endif 166 175 }; 167 176 -
branches/0.3-nokia/source/Lib/TLibCommon/TComSlice.cpp
r34 r50 66 66 m_iViewIdx = 0 ; 67 67 68 #if BITSTREAM_EXTRACTION 69 m_uiLayerId = 0; 70 #endif 71 68 72 #if SONY_COLPIC_AVAILABILITY 69 73 m_iViewOrderIdx = 0; … … 659 663 m_bUseMVI = false; 660 664 #endif 661 665 666 #if BITSTREAM_EXTRACTION 667 m_uiLayerId = 0; 668 #endif 662 669 m_uiViewId = 0; 663 670 m_iViewOrderIdx = 0; … … 698 705 TComPPS::TComPPS() 699 706 { 707 #if BITSTREAM_EXTRACTION 708 m_uiLayerId = 0; 709 #endif 700 710 #if CONSTRAINED_INTRA_PRED 701 711 m_bConstrainedIntraPred = false; -
branches/0.3-nokia/source/Lib/TLibCommon/TComSlice.h
r34 r50 76 76 UInt m_uiMaxTrDepth; 77 77 78 #if BITSTREAM_EXTRACTION 79 UInt m_uiLayerId; 80 #endif 78 81 UInt m_uiViewId; 79 82 Int m_iViewOrderIdx; … … 311 314 TComResidualGenerator* getResidualGenerator() { return m_pcResidualGenerator; } 312 315 #endif 316 317 #if BITSTREAM_EXTRACTION 318 Void setLayerId ( UInt u ) { m_uiLayerId = u; } 319 UInt getLayerId () { return m_uiLayerId; } 320 #endif 313 321 }; 314 322 … … 326 334 UInt m_uiPPSId; 327 335 UInt m_uiSPSId; 336 #if BITSTREAM_EXTRACTION 337 UInt m_uiLayerId; 338 #endif 328 339 329 340 public: … … 346 357 Void setUseWP ( Bool b ) { m_bUseWeightPred = b; } 347 358 Void setWPBiPredIdc ( UInt u ) { m_uiBiPredIdc = u; } 359 #endif 360 361 #if BITSTREAM_EXTRACTION 362 Void setLayerId ( UInt u ) { m_uiLayerId = u; } 363 UInt getLayerId () { return m_uiLayerId; } 348 364 #endif 349 365 }; … … 376 392 UInt m_uiPPSId; 377 393 Int m_iPOC; 394 #if BITSTREAM_EXTRACTION 395 UInt m_uiLayerId; 396 #endif 378 397 #if SONY_COLPIC_AVAILABILITY 379 398 Int m_iViewOrderIdx; … … 540 559 Void setLambda( Double d ) { m_dLambda = d; } 541 560 Double getLambda() { return m_dLambda; } 561 562 #if BITSTREAM_EXTRACTION 563 Void setLayerId( UInt u ) { m_uiLayerId = u; } 564 UInt getLayerId() { return m_uiLayerId; } 565 #endif 542 566 543 567 Void setViewIdx(Int i) { m_iViewIdx = i; } -
branches/0.3-nokia/source/Lib/TLibCommon/TypeDef.h
r34 r50 40 40 41 41 42 #define FLEX_CODING_ORDER 1 43 44 #define SONY_COLPIC_AVAILABILITY 1 42 #define BITSTREAM_EXTRACTION 1 43 #define FLEX_CODING_ORDER 1 44 #define DISABLE_FCO_FOR_VSO 0 45 46 #define SONY_COLPIC_AVAILABILITY 1 45 47 46 48 //>>>>> HHI 3DV tools >>>>> … … 55 57 #define HHI_VSO_DIST_INT 1 // view synthesis optimization integer distorition in rdo process 56 58 #define HHI_VSO_LS_TABLE 1 // table based lambda scaling 59 #define HHI_VSO_PRINT_DIST 0 // print VSO distortion instead of depth distrotion 57 60 58 61 #if HHI_INTERVIEW_SKIP_LAMBDA_SCALE && !HHI_INTERVIEW_SKIP
Note: See TracChangeset for help on using the changeset viewer.