Changeset 564 in 3DVCSoftware for branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp
- Timestamp:
- 12 Aug 2013, 06:58:37 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibCommon/TComDataCU.cpp
r559 r564 3083 3083 abCandIsInter[iCount] = true; 3084 3084 puhInterDirNeighbours[iCount] = pcTextureCU->getInterDir( uiPartIdxCenter ); 3085 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 3086 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_0, pcMvFieldNeighbours[iCount<<1] ); 3087 if (pcMvFieldNeighbours[iCount<<1].getRefIdx()>=0) 3088 #else 3085 3089 if( ( puhInterDirNeighbours[iCount] & 1 ) == 1 ) 3086 { 3090 #endif 3091 { 3092 #if !MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 3087 3093 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_0, pcMvFieldNeighbours[iCount<<1] ); 3094 #endif 3088 3095 TComMv cMvPred = pcMvFieldNeighbours[iCount<<1].getMv(); 3089 3096 … … 3102 3109 if ( getSlice()->isInterB() ) 3103 3110 { 3111 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 3112 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_1, pcMvFieldNeighbours[(iCount<<1)+1] ); 3113 if (pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx()>=0) 3114 #else 3104 3115 if( ( puhInterDirNeighbours[iCount] & 2 ) == 2 ) 3116 #endif 3105 3117 { 3118 #if !MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 3106 3119 pcTextureCU->getMvField( pcTextureCU, uiPartIdxCenter, REF_PIC_LIST_1, pcMvFieldNeighbours[(iCount<<1)+1] ); 3120 #endif 3107 3121 TComMv cMvPred = pcMvFieldNeighbours[(iCount<<1)+1].getMv(); 3108 3122 #if H_3D_IC … … 3115 3129 } 3116 3130 } 3131 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 3132 puhInterDirNeighbours[iCount] = (pcMvFieldNeighbours[iCount<<1].getRefIdx()>=0)?1:0; 3133 puhInterDirNeighbours[iCount] += (pcMvFieldNeighbours[(iCount<<1)+1].getRefIdx()>=0)?2:0; 3134 #endif 3117 3135 #if H_3D_NBDV 3118 3136 pcMvFieldNeighbours[iCount<<1 ].getMv().setIDVFlag (false); … … 4381 4399 + ( iPartWidth/m_pcPic->getMinCUWidth() )/2]; 4382 4400 } 4383 4401 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 4402 Void TComDataCU::compressMV(int scale) 4403 #else 4384 4404 Void TComDataCU::compressMV() 4385 { 4405 #endif 4406 { 4407 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 4408 Int scaleFactor = (4 / scale ) * AMVP_DECIMATION_FACTOR / m_unitSize; 4409 #else 4386 4410 Int scaleFactor = 4 * AMVP_DECIMATION_FACTOR / m_unitSize; 4411 #endif 4387 4412 if (scaleFactor > 0) 4388 4413 {
Note: See TracChangeset for help on using the changeset viewer.