Changeset 384 in 3DVCSoftware for branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon
- Timestamp:
- 9 May 2013, 07:51:01 (12 years ago)
- Location:
- branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp
r380 r384 53 53 #if MERL_VSP_C0152 54 54 55 #if MTK_D0156 56 #define CHECK_ADD_YET(pcCURef,uiIdx,vspIdx) && ( (!m_pcSlice->getSPS()->getUseVSPCompensation()) || (!( (pcCURef)->getVSPIndex(uiIdx) == vspIdx && bVspMvZeroDone[vspIdx-1] ))) 57 #else 55 58 #define CHECK_ADD_YET(pcCURef,uiIdx,vspIdx) && !( (pcCURef)->getVSPIndex(uiIdx) == vspIdx && bVspMvZeroDone[vspIdx-1] ) 59 #endif 56 60 57 61 inline Void TComDataCU::xInheritVspMode( TComDataCU* pcCURef, UInt uiIdx, Bool* bVspMvZeroDone, Int iCount, Int* iVSPIndexTrue, TComMvField* pcMvFieldNeighbours, DisInfo* pDInfo … … 61 65 ) 62 66 { 67 #if MTK_D0156 68 if( !m_pcSlice->getSPS()->getUseVSPCompensation() ) 69 { 70 return; 71 } 72 #endif 73 63 74 Int vspIdx = (Int) pcCURef->getVSPIndex(uiIdx); 64 75 if( vspIdx != 0 ) … … 88 99 UChar* puhInterDirNeighbours, TComMvField* pcMvFieldNeighbours, Int* iVSPIndexTrue, Int mrgCandIdx, DisInfo* pDInfo ) 89 100 { 101 #if MTK_D0156 102 if( !m_pcSlice->getSPS()->getUseVSPCompensation() ) 103 { 104 return true; 105 } 106 #endif 107 90 108 #if MERL_VSP_C0152_BugFix_ForNoDepthCase 91 109 TComPic* pRefPicBaseDepth = NULL; … … 4347 4365 bValid = false; 4348 4366 #endif 4367 4368 #if MTK_D0156 4369 if( !m_pcSlice->getSPS()->getUseVSPCompensation()) 4370 { 4371 bValid = true; 4372 } 4373 #endif 4374 4349 4375 if (abCandIsInter[i] && abCandIsInter[j]&& (puhInterDirNeighbours[i]&0x1)&&(puhInterDirNeighbours[j]&0x2) 4350 4376 #if MERL_VSP_C0152 … … 5170 5196 } 5171 5197 5198 #if MTK_D0156 5199 if( !m_pcSlice->getSPS()->getUseDVPRefine() ) 5200 { 5201 bDepthRefine = false; 5202 } 5203 #endif 5204 5172 5205 // Get Positions 5173 5206 PartSize eCUMode = getPartitionSize( uiPartAddr ); -
branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon/TComSlice.h
r374 r384 180 180 Bool m_bIVScalingFlag; 181 181 #endif 182 183 #if MTK_D0156 184 #if MERL_VSP_COMPENSATION_C0152 185 Bool m_abUseVSPCompensation[ MAX_TLAYER ]; 186 #endif 187 Bool m_abUseDVPRefine[ MAX_TLAYER ]; 188 #endif 189 182 190 public: 183 191 TComVPS(); … … 245 253 246 254 #endif 255 256 #if MTK_D0156 257 #if MERL_VSP_COMPENSATION_C0152 258 Bool getUseVSPCompensation( UInt tLayer ){ return m_abUseVSPCompensation[ tLayer ];} 259 Void setUseVSPCompensation( Bool bValue, UInt tLayer ){ m_abUseVSPCompensation[ tLayer ] = bValue;} 260 #endif 261 Bool getUseDVPRefine( UInt tLayer ){ return m_abUseDVPRefine[ tLayer ];} 262 Void setUseDVPRefine( Bool bValue, UInt tLayer ){ m_abUseDVPRefine[ tLayer ] = bValue;} 263 #endif 247 264 }; 248 265 … … 398 415 #if H3D_IVRP 399 416 TComResidualGenerator* m_pcResidualGenerator; 417 #endif 418 419 #if MTK_D0156 420 #if MERL_VSP_COMPENSATION_C0152 421 Bool m_bUseVSPCompensation; 422 #endif 423 Bool m_bUseDVPRefine; 400 424 #endif 401 425 … … 669 693 TComResidualGenerator* getResidualGenerator() { return m_pcResidualGenerator; } 670 694 #endif 695 696 #if MTK_D0156 697 698 #if MERL_VSP_COMPENSATION_C0152 699 Bool getUseVSPCompensation( ){ return m_bUseVSPCompensation;} 700 Void setUseVSPCompensation( Bool bValue ){ m_bUseVSPCompensation = bValue;} 701 #endif 702 703 Bool getUseDVPRefine( ){ return m_bUseDVPRefine;} 704 Void setUseDVPRefine( Bool bValue ){ m_bUseDVPRefine = bValue;} 705 706 #endif 671 707 }; 672 708 … … 1121 1157 Int m_iShiftPrec; 1122 1158 #endif 1159 1123 1160 1124 1161 public: -
branches/HTM-6.2-dev1-MediaTek/source/Lib/TLibCommon/TypeDef.h
r374 r384 176 176 #endif 177 177 178 178 179 ///// ***** VSP ********* 179 180 #define MERL_VSP_C0152 1 // JCT3V-C0152: 1: enable VSP-related tools; 0: disable VSP-related tools … … 183 184 #define MERL_VSP_C0152_BugFix_ForNoDepthCase 1// MERL bugfix for test condition of no depth 184 185 #define QC_BVSP_CleanUP_D0191 1 186 187 #define MTK_D0156 1 185 188 /* 186 189 * Two macros are used to configure combinations of JCT3V-C0152 and JCT3V-C0131
Note: See TracChangeset for help on using the changeset viewer.