Changeset 291 in 3DVCSoftware
- Timestamp:
- 19 Feb 2013, 15:44:23 (12 years ago)
- Location:
- branches/HTM-5.1-dev0/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0/source/Lib/TLibCommon/TComDataCU.cpp
r290 r291 3878 3878 deriveLeftRightTopIdxGeneral( cCurPS, uiAbsPartIdx, uiPUIdx, uiPartIdxLT, uiPartIdxRT ); 3879 3879 deriveLeftBottomIdxGeneral( cCurPS, uiAbsPartIdx, uiPUIdx, uiPartIdxLB ); 3880 3880 #if !FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 3881 3881 #if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 3882 3882 if( m_pcSlice->getIsDepth()) … … 3912 3912 } 3913 3913 } 3914 #if FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 3915 xInheritVspMode( pcTextureCU, uiPartIdxCenter, bVspMvZeroDone, iCount, iVSPIndexTrue, pcMvFieldNeighbours, &cDisInfo ) ; 3916 #endif 3914 3917 #if SIMP_MRG_PRUN 3915 3918 if ( mrgCandIdx == iCount ) … … 3921 3924 } 3922 3925 } 3926 #endif 3923 3927 #endif 3924 3928 … … 3972 3976 #endif 3973 3977 } 3978 #if FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 3979 #if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 3980 if( m_pcSlice->getIsDepth()) 3981 { 3982 UInt uiPartIdxCenter; 3983 xDeriveCenterIdx( cCurPS, uiPUIdx, uiPartIdxCenter ); 3984 TComDataCU *pcTextureCU = m_pcSlice->getTexturePic()->getCU( getAddr() ); 3985 if ( pcTextureCU && !pcTextureCU->isIntra( uiPartIdxCenter ) ) 3986 { 3987 abCandIsInter[iCount] = true; 3988 puhInterDirNeighbours[iCount] = pcTextureCU->getInterDir( uiPartIdxCenter ); 3989 if( ( puhInterDirNeighbours[iCount] & 1 ) == 1 ) 3990 { 3991 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_0, pcMvFieldNeighbours[iCount<<1] ); 3992 TComMv cMvPred = pcMvFieldNeighbours[iCount<<1].getMv(); 3993 const TComMv cAdd( 1 << ( 2 - 1 ), 1 << ( 2 - 1 ) ); 3994 cMvPred+=cAdd; 3995 cMvPred>>=2; 3996 clipMv(cMvPred); 3997 pcMvFieldNeighbours[iCount<<1].setMvField(cMvPred,pcMvFieldNeighbours[iCount<<1].getRefIdx()); 3998 } 3999 if ( getSlice()->isInterB() ) 4000 { 4001 if( ( puhInterDirNeighbours[iCount] & 2 ) == 2 ) 4002 { 4003 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_1, pcMvFieldNeighbours[(iCount<<1)+1] ); 4004 TComMv cMvPred = pcMvFieldNeighbours[(iCount<<1)+1].getMv(); 4005 const TComMv cAdd( 1 << ( 2 - 1 ), 1 << ( 2 - 1 ) ); 4006 cMvPred+=cAdd; 4007 cMvPred>>=2; 4008 clipMv(cMvPred); 4009 pcMvFieldNeighbours[(iCount<<1)+1].setMvField(cMvPred,pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx()); 4010 } 4011 } 4012 #if FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 4013 xInheritVspMode( pcTextureCU, uiPartIdxCenter, bVspMvZeroDone, iCount, iVSPIndexTrue, pcMvFieldNeighbours, &cDisInfo ) ; 4014 #endif 4015 #if SIMP_MRG_PRUN 4016 if ( mrgCandIdx == iCount ) 4017 { 4018 return; 4019 } 4020 #endif 4021 iCount ++; 4022 } 4023 } 4024 #endif 4025 #endif 3974 4026 #if QC_MRG_CANS_B0048 3975 4027 Int iPdmDir[2] = {0, 0}; -
branches/HTM-5.1-dev0/source/Lib/TLibCommon/TypeDef.h
r290 r291 179 179 180 180 ///// ***** VSP ********* 181 #define MERL_VSP_C0152 0 // JCT3V-C0152: 1: enable VSP-related tools; 0: disable VSP-related tools 181 #define MERL_VSP_C0152 1 // JCT3V-C0152: 1: enable VSP-related tools; 0: disable VSP-related tools 182 #define FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 1 182 183 #if MERL_VSP_C0152 183 184
Note: See TracChangeset for help on using the changeset viewer.