Changeset 1394 in 3DVCSoftware for branches/HTM-16.0-dev1/source/App/TAppRenderer/TAppRendererCfg.cpp
- Timestamp:
- 4 Mar 2016, 09:42:34 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.0-dev1/source/App/TAppRenderer/TAppRendererCfg.cpp
r1386 r1394 44 44 #include "../../Lib/TAppCommon/program_options_lite.h" 45 45 46 #if NH_3D_VSO 46 #if NH_3D_VSO || NH_3D 47 47 48 48 using namespace std; … … 207 207 else 208 208 { 209 if ( m_bUseSetupString ) 210 { 211 std::vector<Int> iaTempViews; 212 std::vector<Int>* piaTempViews; 213 m_cCameraData .convertNumberString( m_pchBaseViewCameraNumbers, iaTempViews, VIEW_NUM_PREC ); 214 m_cRenModStrParser.setString( (Int) iaTempViews.size(), m_pchViewConfig ); 215 piaTempViews = m_cRenModStrParser.getSynthViews(); 216 m_iNumberOfOutputViews = (Int) m_cRenModStrParser.getNumOfModels(); 217 m_iNumberOfInputViews = (Int) m_cRenModStrParser.getNumOfBaseViews(); 218 m_bContOutputFileNumbering = true; 219 220 m_cCameraData.init( MAX_INPUT_VIEW_NUM, uiInputBitDepth, uiCamParPrecision, (UInt)m_iFrameSkip, (UInt)m_iFramesToBeRendered, 221 m_pchCameraParameterFile, m_pchBaseViewCameraNumbers, NULL, piaTempViews, m_iLog2SamplingFactor+m_iShiftPrecision ); 222 } 223 else 224 { 225 m_cCameraData.init( MAX_INPUT_VIEW_NUM, uiInputBitDepth, uiCamParPrecision, (UInt)m_iFrameSkip, (UInt)m_iFramesToBeRendered, 226 m_pchCameraParameterFile, m_pchBaseViewCameraNumbers, m_pchSynthViewCameraNumbers, NULL, m_iLog2SamplingFactor+m_iShiftPrecision ); 227 m_iNumberOfOutputViews = (Int) m_cCameraData.getSynthViewNumbers().size(); 228 m_iNumberOfInputViews = (Int) m_cCameraData.getBaseViewNumbers() .size(); 229 } 209 #if NH_3D_VSO 210 if ( m_bUseSetupString ) 211 { 212 std::vector<Int> iaTempViews; 213 std::vector<Int>* piaTempViews; 214 m_cCameraData .convertNumberString( m_pchBaseViewCameraNumbers, iaTempViews, VIEW_NUM_PREC ); 215 m_cRenModStrParser.setString( (Int) iaTempViews.size(), m_pchViewConfig ); 216 piaTempViews = m_cRenModStrParser.getSynthViews(); 217 m_iNumberOfOutputViews = (Int) m_cRenModStrParser.getNumOfModels(); 218 m_iNumberOfInputViews = (Int) m_cRenModStrParser.getNumOfBaseViews(); 219 m_bContOutputFileNumbering = true; 220 221 m_cCameraData.init( MAX_INPUT_VIEW_NUM, uiInputBitDepth, uiCamParPrecision, (UInt)m_iFrameSkip, (UInt)m_iFramesToBeRendered, 222 m_pchCameraParameterFile, m_pchBaseViewCameraNumbers, NULL, piaTempViews, m_iLog2SamplingFactor+m_iShiftPrecision ); 223 } 224 else 225 { 226 m_cCameraData.init( MAX_INPUT_VIEW_NUM, uiInputBitDepth, uiCamParPrecision, (UInt)m_iFrameSkip, (UInt)m_iFramesToBeRendered, 227 m_pchCameraParameterFile, m_pchBaseViewCameraNumbers, m_pchSynthViewCameraNumbers, NULL, m_iLog2SamplingFactor+m_iShiftPrecision ); 228 m_iNumberOfOutputViews = (Int) m_cCameraData.getSynthViewNumbers().size(); 229 m_iNumberOfInputViews = (Int) m_cCameraData.getBaseViewNumbers() .size(); 230 } 231 #else 232 AOF( false ); // Compile with VSO enabled to use this option. 233 #endif 230 234 } 231 235
Note: See TracChangeset for help on using the changeset viewer.