Changeset 608 in 3DVCSoftware for trunk/source/App/TAppRenderer/TAppRendererTop.cpp
- Timestamp:
- 1 Sep 2013, 22:47:26 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppRenderer/TAppRendererTop.cpp
r296 r608 33 33 34 34 35 36 35 #include <list> 37 36 #include <stdio.h> … … 42 41 #include "TAppRendererTop.h" 43 42 43 #if H_3D 44 44 45 // ==================================================================================================================== 45 46 // Constructor / destructor / initialization / destroy 46 47 // ==================================================================================================================== 47 #if !QC_MVHEVC_B0046 48 48 49 TAppRendererTop::TAppRendererTop() 49 50 { … … 59 60 Void TAppRendererTop::xCreateLib() 60 61 { 61 Int iInteralBitDepth = g_uiBitDepth + g_uiBitIncrement;62 Int iFileBitDepth = 8;63 62 m_pcRenTop = new TRenTop(); 64 63 … … 68 67 TVideoIOYuv* pcDepthInput = new TVideoIOYuv; 69 68 70 pcVideoInput->open( m_pchVideoInputFileList[iViewIdx], false, iFileBitDepth, iInteralBitDepth); // read mode71 pcDepthInput->open( m_pchDepthInputFileList[iViewIdx], false, iFileBitDepth, iInteralBitDepth); // read mode69 pcVideoInput->open( m_pchVideoInputFileList[iViewIdx], false, m_inputBitDepthY, m_inputBitDepthC, m_internalBitDepthY, m_internalBitDepthC); // read mode 70 pcDepthInput->open( m_pchDepthInputFileList[iViewIdx], false, m_inputBitDepthY, m_inputBitDepthC, m_internalBitDepthY, m_internalBitDepthC ); // read mode 72 71 pcVideoInput->skipFrames(m_iFrameSkip, m_iSourceWidth, m_iSourceHeight ); 73 72 pcDepthInput->skipFrames(m_iFrameSkip, m_iSourceWidth, m_iSourceHeight ); … … 80 79 { 81 80 TVideoIOYuv* pcSynthOutput = new TVideoIOYuv; 82 pcSynthOutput->open( m_pchSynthOutputFileList[iViewIdx], true, iFileBitDepth, iInteralBitDepth); // write mode81 pcSynthOutput->open( m_pchSynthOutputFileList[iViewIdx], true, m_outputBitDepthY, m_outputBitDepthC, m_internalBitDepthY, m_internalBitDepthC ); // write mode 83 82 m_apcTVideoIOYuvSynthOutput.push_back( pcSynthOutput ); 84 83 } … … 469 468 render(); 470 469 break; 470 #if H_3D_VSO 471 471 case 1: 472 472 renderModel(); 473 473 break; 474 #endif 474 475 case 10: 475 476 renderUsedPelsMap( ); 476 477 break; 477 478 478 default: 479 479 AOT(true); 480 480 } 481 } 482 481 482 #if H_3D_REN_MAX_DEV_OUT 483 Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation(); 484 485 if ( !(dMaxDispDiff < 0) ) 486 { 487 printf("\n Max. possible shift error: %12.3f samples.\n", dMaxDispDiff ); 488 } 489 #endif 490 } 491 492 #if H_3D_VSO 483 493 Void TAppRendererTop::renderModel() 484 494 { … … 493 503 } 494 504 505 506 495 507 Void TAppRendererTop::xRenderModelFromString() 496 508 { 497 498 509 xCreateLib(); 499 510 xInitLib(); … … 522 533 523 534 AOT( m_iLog2SamplingFactor != 0 ); 524 #if LGE_VSO_EARLY_SKIP_A0093535 #if H_3D_VSO_EARLY_SKIP 525 536 cCurModel.create( m_cRenModStrParser.getNumOfBaseViews(), m_cRenModStrParser.getNumOfModels(), m_iSourceWidth, m_iSourceHeight, m_iShiftPrecision, m_iBlendHoleMargin, false ); 526 537 #else … … 683 694 } 684 695 696 685 697 Void TAppRendererTop::xRenderModelFromNums() 686 698 { … … 700 712 AOT( m_iLog2SamplingFactor != 0 ); 701 713 cCurModel.setupPart( 0, m_iSourceHeight ); 702 #if LGE_VSO_EARLY_SKIP_A0093714 #if H_3D_VSO_EARLY_SKIP 703 715 cCurModel.create( m_iNumberOfInputViews, m_iNumberOfOutputViews, m_iSourceWidth, m_iSourceHeight, m_iShiftPrecision, m_iBlendHoleMargin, false ); 704 716 #else … … 880 892 881 893 } 894 #endif 882 895 883 896 Void TAppRendererTop::renderUsedPelsMap( ) … … 932 945 while ( ( ( iNumOfRenderedFrames < m_iFramesToBeRendered ) || ( m_iFramesToBeRendered == 0 ) ) && !bAnyEOS ) 933 946 { 934 935 936 947 if ( iFrame >= m_iFrameSkip ) 937 948 {
Note: See TracChangeset for help on using the changeset viewer.