Changeset 564 in 3DVCSoftware
- Timestamp:
- 12 Aug 2013, 06:58:37 (11 years ago)
- Location:
- branches/HTM-DEV-2.0-dev2-MediaTek
- Files:
-
- 2 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-DEV-2.0-dev2-MediaTek/source/App/TAppDecoder/TAppDecTop.cpp
r542 r564 311 311 TComPic* picLastCoded = m_ivPicLists.getPic( m_tDecTop[dI]->getLayerId(), pocLastPic ); 312 312 assert( picLastCoded != NULL ); 313 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 314 picLastCoded->compressMotion(1); 315 #else 313 316 picLastCoded->compressMotion(); 317 #endif 314 318 } 315 319 } -
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 { -
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibCommon/TComDataCU.h
r559 r564 591 591 Void getMvPredAbove ( TComMv& rcMvPred ) { rcMvPred = m_cMvFieldB.getMv(); } 592 592 Void getMvPredAboveRight ( TComMv& rcMvPred ) { rcMvPred = m_cMvFieldC.getMv(); } 593 593 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 594 Void compressMV (int scale); 595 #else 594 596 Void compressMV (); 595 597 #endif 596 598 // ------------------------------------------------------------------------------------------------------------------- 597 599 // utility functions for neighbouring information -
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibCommon/TComPic.cpp
r539 r564 146 146 deleteSEIs(m_SEIs); 147 147 } 148 148 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 149 Void TComPic::compressMotion(int scale) 150 #else 149 151 Void TComPic::compressMotion() 152 #endif 150 153 { 151 154 TComPicSym* pPicSym = getPicSym(); … … 153 156 { 154 157 TComDataCU* pcCU = pPicSym->getCU(uiCUAddr); 158 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 159 pcCU->compressMV(scale); 160 #else 155 161 pcCU->compressMV(); 162 #endif 156 163 } 157 164 } -
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibCommon/TComPic.h
r541 r564 179 179 Void setNumReorderPics(Int i, UInt tlayer) { m_numReorderPics[tlayer] = i; } 180 180 Int getNumReorderPics(UInt tlayer) { return m_numReorderPics[tlayer]; } 181 181 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 182 Void compressMotion(int scale); 183 #else 182 184 Void compressMotion(); 185 #endif 183 186 UInt getCurrSliceIdx() { return m_uiCurrSliceIdx; } 184 187 Void setCurrSliceIdx(UInt i) { m_uiCurrSliceIdx = i; } -
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibCommon/TypeDef.h
r563 r564 99 99 #define MTK_FAST_TEXTURE_ENCODING_E0173 1 // Fast merge mode decision and early CU determination for texture component of dependent view, JCT3V-E0173 100 100 #define MTK_CLIPPING_ALIGN_IC_E0168 1 // To support simplify bi-prediction PU with identical motion checking, JCT3V-E0168 101 #define MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 1 // Progressive MV Compression, JCT3V-E0170 101 102 102 103 #if H_3D_NBDV -
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibDecoder/TDecGop.cpp
r542 r564 214 214 rpcPic->destroyNonDBFilterInfo(); 215 215 } 216 216 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 217 rpcPic->compressMotion(2); 218 #endif 217 219 #if !H_3D 218 220 rpcPic->compressMotion(); -
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibEncoder/TEncGOP.cpp
r542 r564 1768 1768 pcPic->destroyNonDBFilterInfo(); 1769 1769 } 1770 1770 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 1771 pcPic->compressMotion(2); 1772 #endif 1771 1773 #if !H_3D 1772 1774 pcPic->compressMotion(); -
branches/HTM-DEV-2.0-dev2-MediaTek/source/Lib/TLibEncoder/TEncTop.cpp
r542 r564 392 392 if( picLastCoded ) 393 393 { 394 #if MTK_SONY_PROGRESSIVE_MV_COMPRESSION_E0170 395 picLastCoded->compressMotion(1); 396 #else 394 397 picLastCoded->compressMotion(); 398 #endif 395 399 } 396 400 #endif
Note: See TracChangeset for help on using the changeset viewer.