Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibCommon/TComMotionInfo.cpp
- Timestamp:
- 12 Apr 2018, 11:12:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.2-dev/source/Lib/TLibCommon/TComMotionInfo.cpp
r1405 r1412 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 6, ITU/ISO/IEC6 * Copyright (c) 2010-2017, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 40 40 #include "assert.h" 41 41 #include <stdlib.h> 42 #if NH_3D _SPIVMP42 #if NH_3D 43 43 #include "TComDataCU.h" 44 44 #include "TComPic.h" … … 330 330 } 331 331 332 #if NH_3D _SPIVMP332 #if NH_3D 333 333 Void TComCUMvField::setMvFieldSP( TComDataCU* pcCU, UInt uiAbsPartIdx, TComMvField cMvField, Int iWidth, Int iHeight ) 334 334 { … … 358 358 * \param scale Factor by which to subsample motion information 359 359 */ 360 #if REDUCED_ENCODER_MEMORY 361 Void TComCUMvField::compress(SChar *pePredMode, const SChar* pePredModeSource, const Int scale, const TComCUMvField &source) 362 { 363 const Int numSubpartsWithIdenticalMotion = scale * scale; 364 assert( numSubpartsWithIdenticalMotion > 0 && numSubpartsWithIdenticalMotion <= m_uiNumPartition); 365 assert(source.m_uiNumPartition == m_uiNumPartition); 366 367 for ( Int partIdx = 0; partIdx < m_uiNumPartition; partIdx += numSubpartsWithIdenticalMotion ) 368 { 369 TComMv cMv(0,0); 370 Int iRefIdx = 0; 371 372 cMv = source.m_pcMv[ partIdx ]; 373 PredMode predMode = static_cast<PredMode>( pePredModeSource[ partIdx ] ); 374 iRefIdx = source.m_piRefIdx[ partIdx ]; 375 for ( Int i = 0; i < numSubpartsWithIdenticalMotion; i++ ) 376 { 377 m_pcMv[ partIdx + i ] = cMv; 378 pePredMode[ partIdx + i ] = predMode; 379 m_piRefIdx[ partIdx + i ] = iRefIdx; 380 } 381 } 382 } 383 #else 384 360 385 Void TComCUMvField::compress(SChar* pePredMode, Int scale) 361 386 { … … 379 404 } 380 405 } 406 #endif 381 407 382 408 #if NH_MV … … 405 431 } 406 432 407 #if NH_3D _MLC433 #if NH_3D 408 434 Void TComMotionCand::print( Int i ) 409 435 {
Note: See TracChangeset for help on using the changeset viewer.