Changeset 166 in 3DVCSoftware for branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibEncoder/TEncEntropy.cpp
- Timestamp:
- 1 Nov 2012, 19:22:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-4.0.1-VSP-dev0/source/Lib/TLibEncoder/TEncEntropy.cpp
r77 r166 169 169 } 170 170 171 172 #if FORCE_REF_VSP==1 173 Void TEncEntropy::encodeVspFlag( TComDataCU* pcCU, UInt uiAbsPartIdx, Bool bRD ) 174 { 175 if ( pcCU->getSlice()->isIntra() || pcCU->getSlice()->getViewId() == 0 ) 176 { 177 return; 178 } 179 if( bRD ) 180 { 181 uiAbsPartIdx = 0; 182 } 183 m_pcEntropyCoderIf->codeVspFlag( pcCU, uiAbsPartIdx ); 184 } 185 #endif 186 171 187 Void TEncEntropy::codeFiltCountBit(ALFParam* pAlfParam, Int64* ruiRate) 172 188 { … … 1285 1301 uiAbsPartIdx = 0; 1286 1302 } 1303 1304 #if FORCE_REF_VSP==1 1305 if( pcCU->isVspMode( uiAbsPartIdx ) ) 1306 { 1307 return; 1308 } 1309 #endif 1287 1310 1288 1311 PartSize eSize = pcCU->getPartitionSize( uiAbsPartIdx ); … … 1345 1368 { 1346 1369 encodeRefFrmIdxPU ( pcCU, uiSubPartIdx, RefPicList( uiRefListIdx ) ); 1370 #if VSP_MV_ZERO 1371 Int iRefIdx = pcCU->getCUMvField( RefPicList( uiRefListIdx ) )->getRefIdx(uiSubPartIdx); 1372 if( !(pcCU->getSlice()->getViewId() && iRefIdx >= 0 && pcCU->getSlice()->getRefViewId( RefPicList( uiRefListIdx ), iRefIdx ) == NUM_VIEW_VSP) ) 1373 { 1374 #endif 1347 1375 encodeMvdPU ( pcCU, uiSubPartIdx, RefPicList( uiRefListIdx ) ); 1348 1376 encodeMVPIdxPU ( pcCU, uiSubPartIdx, RefPicList( uiRefListIdx ) ); 1377 #if VSP_MV_ZERO 1378 } 1379 #endif 1349 1380 } 1350 1381 } … … 1632 1663 { 1633 1664 { 1665 #if FORCE_REF_VSP==1 1666 if( !pcCU->isVspMode( uiAbsPartIdx ) ) 1667 #endif 1634 1668 #if HHI_MPI 1635 1669 if( !(pcCU->getMergeFlag( uiAbsPartIdx ) && pcCU->getPartitionSize(uiAbsPartIdx) == SIZE_2Nx2N &&
Note: See TracChangeset for help on using the changeset viewer.