Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibRenderer/TRenSingleModel.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/TLibRenderer/TRenSingleModel.cpp
r1405 r1412 246 246 247 247 248 #if !RM_FIX_SETUP249 template <BlenMod iBM, Bool bBitInc> Void250 TRenSingleModelC<iBM,bBitInc>::setupInitialState( Int curViewPosInModel )251 {252 xRenderAll( );253 254 if ( m_bLimOutput )255 {256 AOT( curViewPosInModel == VIEWPOS_INVALID )257 xSetLimOutStruct( (curViewPosInModel == VIEWPOS_RIGHT) ? VIEWPOS_LEFT : VIEWPOS_RIGHT );258 }259 }260 #endif261 262 #if RM_FIX_SETUP263 248 template <BlenMod iBM, Bool bBitInc> Void 264 249 TRenSingleModelC<iBM,bBitInc>::setupRefView ( TComPicYuv* pcOrgVideo ) … … 287 272 template <BlenMod iBM, Bool bBitInc> Void 288 273 TRenSingleModelC<iBM,bBitInc>::setupLut( Int** ppiShiftLutLeft, Int** ppiBaseShiftLutLeft, Int** ppiShiftLutRight, Int** ppiBaseShiftLutRight, Int iDistToLeft ) 289 #else 290 template <BlenMod iBM, Bool bBitInc> Void 291 TRenSingleModelC<iBM,bBitInc>::setupLutAndRef( TComPicYuv* pcOrgVideo, Int** ppiShiftLutLeft, Int** ppiBaseShiftLutLeft, Int** ppiShiftLutRight, Int** ppiBaseShiftLutRight, Int iDistToLeft, Bool bRenderRef ) 292 #endif 293 { 294 #if !RM_FIX_SETUP 295 AOT( !m_bUseOrgRef && pcOrgVideo ); 296 #endif 274 { 297 275 AOT( (ppiShiftLutLeft == NULL) && (m_iMode == 0 || m_iMode == 2) ); 298 276 AOT( (ppiShiftLutRight == NULL) && (m_iMode == 1 || m_iMode == 2) ); … … 306 284 TRenFilter<REN_BIT_DEPTH>::setupZLUT( true, 30, iDistToLeft, ppiBaseShiftLutLeft, ppiBaseShiftLutRight, m_iBlendZThres, m_iBlendDistWeight, m_piInvZLUTLeft, m_piInvZLUTRight ); 307 285 } 308 309 #if !RM_FIX_SETUP 310 // Copy Reference 311 m_pcPicYuvRef = pcOrgVideo; 312 313 if ( pcOrgVideo ) 314 { 315 assert( pcOrgVideo->getChromaFormat() == CHROMA_420 ); 316 317 TRenFilter<REN_BIT_DEPTH>::copy( pcOrgVideo->getAddr( COMPONENT_Y ) + m_iHorOffset * pcOrgVideo->getStride( COMPONENT_Y ), pcOrgVideo->getStride( COMPONENT_Y ), m_iWidth, m_iUsedHeight, m_aapiRefVideoPel[0], m_aiRefVideoStrides[0]); 318 TRenFilter<REN_BIT_DEPTH>::sampleCUpHorUp(0, pcOrgVideo->getAddr( COMPONENT_Cb ) + (m_iHorOffset >> 1) * pcOrgVideo->getStride( COMPONENT_Cb ), pcOrgVideo->getStride( COMPONENT_Cb ), m_iWidth >> 1, m_iUsedHeight >> 1, m_aapiRefVideoPel[1], m_aiRefVideoStrides[1]); 319 TRenFilter<REN_BIT_DEPTH>::sampleCUpHorUp(0, pcOrgVideo->getAddr( COMPONENT_Cr ) + (m_iHorOffset >> 1) * pcOrgVideo->getStride( COMPONENT_Cr ), pcOrgVideo->getStride( COMPONENT_Cr ), m_iWidth >> 1, m_iUsedHeight >> 1, m_aapiRefVideoPel[2], m_aiRefVideoStrides[2]); 320 xSetStructRefView(); 321 } 322 else 323 { 324 if ( bRenderRef ) 325 { 326 xRenderAll( ); 327 xSetStructSynthViewAsRefView(); 328 } 329 } 330 #endif 331 } 332 333 template <BlenMod iBM, Bool bBitInc> Void 334 #if RM_FIX_SETUP 286 } 287 288 template <BlenMod iBM, Bool bBitInc> Void 335 289 TRenSingleModelC<iBM,bBitInc>::renderAll( ) 336 #else337 TRenSingleModelC<iBM,bBitInc>::xRenderAll( )338 #endif339 290 { 340 291 // Initial Rendering 341 #if RM_FIX_SETUP342 292 resetStructError(); 343 #else344 xResetStructError();345 #endif346 293 xInitSampleStructs(); 347 294 switch ( m_iMode ) … … 465 412 466 413 template <BlenMod iBM, Bool bBitInc> Void 467 #if RM_FIX_SETUP468 414 TRenSingleModelC<iBM,bBitInc>::resetStructError( ) 469 #else470 TRenSingleModelC<iBM,bBitInc>::xResetStructError( )471 #endif472 415 { 473 416 RenModelOutPels* pcCurOutSampleRow = m_pcOutputSamples; … … 484 427 485 428 template <BlenMod iBM, Bool bBitInc> Void 486 #if RM_FIX_SETUP487 429 TRenSingleModelC<iBM,bBitInc>::setLimOutStruct(Int iSourceViewPos ) 488 #else489 TRenSingleModelC<iBM,bBitInc>::xSetLimOutStruct(Int iSourceViewPos )490 #endif491 430 { 492 431 RM_AOF( m_bLimOutput ); … … 537 476 538 477 template <BlenMod iBM, Bool bBitInc> Void 539 #if RM_FIX_SETUP540 478 TRenSingleModelC<iBM,bBitInc>::setStructSynthViewAsRefView( ) 541 #else542 TRenSingleModelC<iBM,bBitInc>::xSetStructSynthViewAsRefView( )543 #endif544 479 { 545 480 AOT( m_iMode < 0 || m_iMode > 2);
Note: See TracChangeset for help on using the changeset viewer.