Changeset 288 in 3DVCSoftware for branches/HTM-5.1-dev0-MERL-Mediatek-Fix/source
- Timestamp:
- 18 Feb 2013, 16:20:54 (12 years ago)
- Location:
- branches/HTM-5.1-dev0-MERL-Mediatek-Fix/source/Lib/TLibCommon
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-5.1-dev0-MERL-Mediatek-Fix/source/Lib/TLibCommon/TComDataCU.cpp
r280 r288 3788 3788 deriveLeftRightTopIdxGeneral( cCurPS, uiAbsPartIdx, uiPUIdx, uiPartIdxLT, uiPartIdxRT ); 3789 3789 deriveLeftBottomIdxGeneral( cCurPS, uiAbsPartIdx, uiPUIdx, uiPartIdxLB ); 3790 3790 #if !FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 3791 3791 #if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 3792 3792 if( m_pcSlice->getIsDepth()) … … 3822 3822 } 3823 3823 } 3824 #if FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 3825 xInheritVspMode( pcTextureCU, uiPartIdxCenter, bVspMvZeroDone, iCount, iVSPIndexTrue, pcMvFieldNeighbours, &cDisInfo ) ; 3826 #endif 3824 3827 #if SIMP_MRG_PRUN 3825 3828 if ( mrgCandIdx == iCount ) … … 3831 3834 } 3832 3835 } 3836 #endif 3833 3837 #endif 3834 3838 … … 3893 3897 #endif 3894 3898 } 3899 #if FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 3900 #if MTK_DEPTH_MERGE_TEXTURE_CANDIDATE_C0137 3901 if( m_pcSlice->getIsDepth()) 3902 { 3903 UInt uiPartIdxCenter; 3904 xDeriveCenterIdx( cCurPS, uiPUIdx, uiPartIdxCenter ); 3905 TComDataCU *pcTextureCU = m_pcSlice->getTexturePic()->getCU( getAddr() ); 3906 if ( pcTextureCU && !pcTextureCU->isIntra( uiPartIdxCenter ) ) 3907 { 3908 abCandIsInter[iCount] = true; 3909 puhInterDirNeighbours[iCount] = pcTextureCU->getInterDir( uiPartIdxCenter ); 3910 if( ( puhInterDirNeighbours[iCount] & 1 ) == 1 ) 3911 { 3912 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_0, pcMvFieldNeighbours[iCount<<1] ); 3913 TComMv cMvPred = pcMvFieldNeighbours[iCount<<1].getMv(); 3914 const TComMv cAdd( 1 << ( 2 - 1 ), 1 << ( 2 - 1 ) ); 3915 cMvPred+=cAdd; 3916 cMvPred>>=2; 3917 clipMv(cMvPred); 3918 pcMvFieldNeighbours[iCount<<1].setMvField(cMvPred,pcMvFieldNeighbours[iCount<<1].getRefIdx()); 3919 } 3920 if ( getSlice()->isInterB() ) 3921 { 3922 if( ( puhInterDirNeighbours[iCount] & 2 ) == 2 ) 3923 { 3924 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_1, pcMvFieldNeighbours[(iCount<<1)+1] ); 3925 TComMv cMvPred = pcMvFieldNeighbours[(iCount<<1)+1].getMv(); 3926 const TComMv cAdd( 1 << ( 2 - 1 ), 1 << ( 2 - 1 ) ); 3927 cMvPred+=cAdd; 3928 cMvPred>>=2; 3929 clipMv(cMvPred); 3930 pcMvFieldNeighbours[(iCount<<1)+1].setMvField(cMvPred,pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx()); 3931 } 3932 } 3933 #if FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 3934 xInheritVspMode( pcTextureCU, uiPartIdxCenter, bVspMvZeroDone, iCount, iVSPIndexTrue, pcMvFieldNeighbours, &cDisInfo ) ; 3935 #endif 3936 #if SIMP_MRG_PRUN 3937 if ( mrgCandIdx == iCount ) 3938 { 3939 return; 3940 } 3941 #endif 3942 iCount ++; 3943 } 3944 } 3945 #endif 3946 #endif 3895 3947 #if QC_MRG_CANS_B0048 3896 3948 Int iPdmDir[2] = {0, 0}; -
branches/HTM-5.1-dev0-MERL-Mediatek-Fix/source/Lib/TLibCommon/TypeDef.h
r284 r288 41 41 //! \ingroup TLibCommon 42 42 //! \{ 43 44 #define FIX_TEXTURE_MERGING_CANDIDATE_VSP_C0137_C0152 1 43 45 #define QC_MVHEVC_B0046 0 //JCT3V-B0046: disable 3DHEVC tools 44 46 #define QC_IV_AS_LT_B0046 1 //JCT3V-B0046: inter-view reference pictures are treated as long-term pictures … … 54 56 55 57 // C TRACK 3 56 #define MERL_VSP_C0152 0// JCT3V-C0152: 1: enable VSP-related tools; 0: disable VSP-related tools58 #define MERL_VSP_C0152 1 // JCT3V-C0152: 1: enable VSP-related tools; 0: disable VSP-related tools 57 59 #define MTK_SAIT_TEMPORAL_FIRST_ORDER_C0141_C0097 1 // JCT3V-C0141/C0097 58 60 #define MTK_SIMPLIFY_DVTC_C0135 1 // JCT3V-C0135
Note: See TracChangeset for help on using the changeset viewer.