Changeset 112 in 3DVCSoftware for branches/HTM-4.0-Orange/source/Lib/TLibCommon
- Timestamp:
- 30 Aug 2012, 09:18:03 (12 years ago)
- Location:
- branches/HTM-4.0-Orange/source/Lib/TLibCommon
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.0-Orange/source/Lib/TLibCommon/TComDataCU.cpp
r100 r112 152 152 #endif 153 153 #endif 154 #if OL_DEPTHLIMIT 155 //add a variable to store the partition information 156 //a 2D array in part_symbol,uidepth format 157 //initialize m_partInfo to OL_END_CU 158 for (int i=0; i < OL_PART_BUF_SIZE; i++) 159 { 160 for (int j=0; j < 2; j++) 161 m_uiPartInfo[i][j] = OL_END_CU; 162 } 163 #endif 154 164 } 155 165 … … 456 466 Void TComDataCU::initCU( TComPic* pcPic, UInt iCUAddr ) 457 467 { 468 #if OL_DEPTHLIMIT 469 TComDataCU* pcCU = pcPic->getCU(iCUAddr); 470 #endif 458 471 459 472 m_pcPic = pcPic; … … 672 685 m_apcCUColocated[1] = getSlice()->getRefPic( REF_PIC_LIST_1, 0)->getCU( m_uiCUAddr ); 673 686 } 687 #if OL_DEPTHLIMIT 688 setPartDumpFlag (pcCU->getPartDumpFlag()); 689 #endif 674 690 } 675 691 … … 1001 1017 memcpy(m_uiSliceStartCU,pcCU->m_uiSliceStartCU+uiPartOffset,sizeof(UInt)*m_uiNumPartition); 1002 1018 memcpy(m_uiEntropySliceStartCU,pcCU->m_uiEntropySliceStartCU+uiPartOffset,sizeof(UInt)*m_uiNumPartition); 1019 #if OL_DEPTHLIMIT 1020 setPartDumpFlag (pcCU->getPartDumpFlag()); 1021 #endif 1003 1022 } 1004 1023 -
branches/HTM-4.0-Orange/source/Lib/TLibCommon/TComDataCU.h
r100 r112 237 237 UInt* m_uiSliceStartCU; ///< Start CU address of current slice 238 238 UInt* m_uiEntropySliceStartCU; ///< Start CU address of current slice 239 240 #if OL_DEPTHLIMIT 241 //add a variable to store the partition information 242 //a 2D array in uidepth,part_symbol format 243 UInt m_uiPartInfo[OL_PART_BUF_SIZE][2]; 244 UInt m_uiPartNum; 245 Bool b_dumpPartInfo; 246 #endif 239 247 240 248 // ------------------------------------------------------------------------------------------------------------------- … … 596 604 597 605 Void compressMV (); 606 607 #if OL_DEPTHLIMIT 608 Void resetPartInfo () {m_uiPartNum = 0;}; 609 Void incrementPartInfo () {m_uiPartNum ++;}; 610 Void updatePartInfo(UInt uiSymbol, UInt uiDepth) {m_uiPartInfo[m_uiPartNum][0] = uiSymbol; m_uiPartInfo 611 [m_uiPartNum][1] = uiDepth;}; 612 UInt* readPartInfo() {return (UInt*)m_uiPartInfo;}; 613 // UInt getPartNumIdx() {return m_uiPartNum;}; //added this to get the index 614 //flag to signal to start dumping 615 Void setPartDumpFlag(bool flag) {b_dumpPartInfo = flag;}; 616 Bool getPartDumpFlag() {return b_dumpPartInfo;}; 617 #endif 598 618 599 619 // ------------------------------------------------------------------------------------------------------------------- -
branches/HTM-4.0-Orange/source/Lib/TLibCommon/TComSlice.cpp
r101 r112 1441 1441 , m_bUseDMM (false) 1442 1442 #endif 1443 #if OL_DEPTHLIMIT 1444 , m_bDepthPartitionLimiting (false) 1445 #endif 1443 1446 { 1444 1447 // AMVP parameter -
branches/HTM-4.0-Orange/source/Lib/TLibCommon/TComSlice.h
r101 r112 354 354 #endif 355 355 356 #if OL_DEPTHLIMIT 357 Bool m_bDepthPartitionLimiting; 358 #endif 359 356 360 #if DEPTH_MAP_GENERATION 357 361 UInt m_uiPredDepthMapGeneration; … … 619 623 #endif 620 624 625 #if OL_DEPTHLIMIT 626 Void setUseDPL(Bool b) {m_bDepthPartitionLimiting = b; } 627 Bool getUseDPL() {return m_bDepthPartitionLimiting;} 628 #endif 629 621 630 Void initMultiviewSPS ( UInt uiViewId, Int iViewOrderIdx = 0, UInt uiCamParPrecision = 0, Bool bCamParSlice = false, Int** aaiScale = 0, Int** aaiOffset = 0 ); 622 631 Void initMultiviewSPSDepth ( UInt uiViewId, Int iViewOrderIdx ); -
branches/HTM-4.0-Orange/source/Lib/TLibCommon/TypeDef.h
r110 r112 42 42 //! \{ 43 43 44 #define OL_DEPTHLIMIT 1 //JCT2-A0044 45 #if OL_DEPTHLIMIT 46 #define OL_DO_NOT_LIMIT_INTRA_SLICES_PART 1 //Turn this on to not perform depth limiting for I-SLICES. 47 #define OL_END_CU MAX_INT //Default for initialising the partition information buffer 48 #define OL_PART_BUF_SIZE 86 //maximum number of possible partition bits in a CU 49 #endif 50 44 51 #define FIXES 1 45 52 #define POZNAN_CABAC_INIT_FLAG_FIX 1 … … 94 101 #define SAIT_VSO_EST_A0033 1 // JCT2-A0033 modification 3 95 102 #define LGE_VSO_EARLY_SKIP_A0093 1 // JCT2-A0093 modification 4 96 #define LGE_WVSO_A0119 1// JCT2-A0119 Depth Metric with a weighted depth fidelity term103 #define LGE_WVSO_A0119 0 // JCT2-A0119 Depth Metric with a weighted depth fidelity term 97 104 98 105 #define HHI_INTERVIEW_SKIP 1
Note: See TracChangeset for help on using the changeset viewer.