Changeset 1386 in 3DVCSoftware for trunk/source/App/TAppRenderer
- Timestamp:
- 13 Nov 2015, 16:29:39 (9 years ago)
- Location:
- trunk/source/App/TAppRenderer
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/App/TAppRenderer/RendererMain.cpp
r1313 r1386 35 35 #include <time.h> 36 36 #include "../../Lib/TLibCommon/CommonDef.h" 37 #if NH_3D 37 #if NH_3D_VSO 38 38 #include "TAppRendererTop.h" 39 39 // ==================================================================================================================== -
trunk/source/App/TAppRenderer/TAppRendererCfg.cpp
r1313 r1386 44 44 #include "../../Lib/TAppCommon/program_options_lite.h" 45 45 46 #if NH_3D 46 #if NH_3D_VSO 47 47 48 48 using namespace std; … … 111 111 \retval true when success 112 112 */ 113 Bool TAppRendererCfg::parseCfg( Int argc, Char* argv[] )113 Bool TAppRendererCfg::parseCfg( Int argc, TChar* argv[] ) 114 114 { 115 115 bool do_help = false; … … 121 121 122 122 /* File I/O */ 123 ("VideoInputFileBaseName,v", m_pchVideoInputFileBaseName, ( Char*) 0, "Basename to generate video input file names")124 ("DepthInputFileBaseName,d", m_pchDepthInputFileBaseName, ( Char*) 0, "Basename to generate depth input file names")125 ("SynthOutputFileBaseName,s", m_pchSynthOutputFileBaseName, ( Char*) 0, "Basename to generate synthesized output file names")123 ("VideoInputFileBaseName,v", m_pchVideoInputFileBaseName, (TChar*) 0, "Basename to generate video input file names") 124 ("DepthInputFileBaseName,d", m_pchDepthInputFileBaseName, (TChar*) 0, "Basename to generate depth input file names") 125 ("SynthOutputFileBaseName,s", m_pchSynthOutputFileBaseName, (TChar*) 0, "Basename to generate synthesized output file names") 126 126 ("ContOutputFileNumbering", m_bContOutputFileNumbering , false , "Continuous Output File Numbering") 127 127 ("Sweep" , m_bSweep , false , "Store all views in first Output File") 128 128 129 ("VideoInputFile_%d,v_%d", m_pchVideoInputFileList , ( Char *) 0, MAX_INPUT_VIEW_NUM , "Original Yuv video input file name %d")130 ("DepthInputFile_%d,d_%d", m_pchDepthInputFileList , ( Char *) 0, MAX_INPUT_VIEW_NUM , "Original Yuv depth input file name %d")131 ("SynthOutputFile_%d,s_%d", m_pchSynthOutputFileList, ( Char *) 0, MAX_OUTPUT_VIEW_NUM, "Synthesized Yuv output file name %d")129 ("VideoInputFile_%d,v_%d", m_pchVideoInputFileList , (TChar *) 0, MAX_INPUT_VIEW_NUM , "Original Yuv video input file name %d") 130 ("DepthInputFile_%d,d_%d", m_pchDepthInputFileList , (TChar *) 0, MAX_INPUT_VIEW_NUM , "Original Yuv depth input file name %d") 131 ("SynthOutputFile_%d,s_%d", m_pchSynthOutputFileList, (TChar *) 0, MAX_OUTPUT_VIEW_NUM, "Synthesized Yuv output file name %d") 132 132 133 133 ("InputBitDepth", m_inputBitDepth[0], 8, "Bit-depth of input file") … … 146 146 147 147 /* Camera Specification */ 148 ("CameraParameterFile,-cpf", m_pchCameraParameterFile, (Char *) 0, "Camera Parameter File Name")149 ("BaseViewCameraNumbers" , m_pchBaseViewCameraNumbers, ( Char *) 0, "Numbers of base views")150 ("SynthViewCameraNumbers" , m_pchSynthViewCameraNumbers, ( Char *) 0, "Numbers of views to synthesis")151 ("ViewConfig" , m_pchViewConfig, ( Char *) 0, "View Configuration" )148 ("CameraParameterFile,-cpf", m_pchCameraParameterFile, (TChar *) 0, "Camera Parameter File Name") 149 ("BaseViewCameraNumbers" , m_pchBaseViewCameraNumbers, (TChar *) 0, "Numbers of base views") 150 ("SynthViewCameraNumbers" , m_pchSynthViewCameraNumbers, (TChar *) 0, "Numbers of views to synthesis") 151 ("ViewConfig" , m_pchViewConfig, (TChar *) 0, "View Configuration" ) 152 152 153 153 /* Renderer Modes */ … … 458 458 } 459 459 460 Void TAppRendererCfg::xAddNumberToFileName( Char* pchSourceFileName,Char*& rpchTargetFileName, Int iNumberToAdd, UInt uiPrecBefore, UInt uiPrecAfter )460 Void TAppRendererCfg::xAddNumberToFileName( TChar* pchSourceFileName, TChar*& rpchTargetFileName, Int iNumberToAdd, UInt uiPrecBefore, UInt uiPrecAfter ) 461 461 { 462 462 … … 468 468 } 469 469 470 Char pchNumberBuffer[2* LOG10_VIEW_NUM_PREC + 2];471 Char pchPrintBuffer[10];470 TChar pchNumberBuffer[2* LOG10_VIEW_NUM_PREC + 2]; 471 TChar pchPrintBuffer[10]; 472 472 473 473 Double dNumberToAdd = ( (Double) iNumberToAdd ) / VIEW_NUM_PREC; … … 488 488 size_t iAddLength = strlen(pchNumberBuffer); 489 489 490 rpchTargetFileName = ( Char*) malloc(iInLength+iAddLength+1);491 492 Char* pchPlaceHolder = strrchr(pchSourceFileName,'$');490 rpchTargetFileName = (TChar*) malloc(iInLength+iAddLength+1); 491 492 TChar* pchPlaceHolder = strrchr(pchSourceFileName,'$'); 493 493 assert( pchPlaceHolder ); 494 494 -
trunk/source/App/TAppRenderer/TAppRendererCfg.h
r1313 r1386 47 47 #include <vector> 48 48 49 #if NH_3D 49 #if NH_3D_VSO 50 50 51 51 // ==================================================================================================================== … … 59 59 60 60 //// file I/O //// 61 Char*m_pchVideoInputFileBaseName; ///< input video file base name, placeholder for numbering $$62 Char*m_pchDepthInputFileBaseName; ///< input depth file base name, placeholder for numbering $$63 Char*m_pchSynthOutputFileBaseName; ///< output synth file base name, placeholder for numbering $$61 TChar* m_pchVideoInputFileBaseName; ///< input video file base name, placeholder for numbering $$ 62 TChar* m_pchDepthInputFileBaseName; ///< input depth file base name, placeholder for numbering $$ 63 TChar* m_pchSynthOutputFileBaseName; ///< output synth file base name, placeholder for numbering $$ 64 64 Bool m_bContOutputFileNumbering; ///< use continous numbering instead of view numbering 65 65 Bool m_bSweep; ///< 1: Store view range in file … … 73 73 74 74 // derived 75 std::vector< Char*> m_pchVideoInputFileList;///< source file names76 std::vector< Char*> m_pchDepthInputFileList;///< source depth file names77 std::vector< Char*> m_pchSynthOutputFileList;///< output reconstruction file names75 std::vector<TChar*> m_pchVideoInputFileList; ///< source file names 76 std::vector<TChar*> m_pchDepthInputFileList; ///< source depth file names 77 std::vector<TChar*> m_pchSynthOutputFileList; ///< output reconstruction file names 78 78 79 79 //// source specification //// … … 84 84 85 85 ////camera specification //// 86 Char*m_pchCameraParameterFile; ///< camera parameter file87 Char*m_pchSynthViewCameraNumbers; ///< numbers of views to synthesize88 Char*m_pchViewConfig; ///< String to setup renderer89 Char*m_pchBaseViewCameraNumbers; ///< numbers of base views86 TChar* m_pchCameraParameterFile; ///< camera parameter file 87 TChar* m_pchSynthViewCameraNumbers; ///< numbers of views to synthesize 88 TChar* m_pchViewConfig; ///< String to setup renderer 89 TChar* m_pchBaseViewCameraNumbers; ///< numbers of base views 90 90 91 91 // derived … … 123 123 Void xCreateFileNames(); 124 124 Void xGetMaxPrecision( IntAry1d adIn, Int& iPrecBefore, Int& iPrecAfter ); 125 Void xAddNumberToFileName( Char* pchSourceFileName,Char*& rpchTargetFileName, Int iNumberToAdd, UInt uiPrecBefore, UInt uiPrecAfter );125 Void xAddNumberToFileName( TChar* pchSourceFileName, TChar*& rpchTargetFileName, Int iNumberToAdd, UInt uiPrecBefore, UInt uiPrecAfter ); 126 126 public: 127 127 TAppRendererCfg(); … … 131 131 Void create (); ///< create option handling class 132 132 Void destroy (); ///< destroy option handling class 133 Bool parseCfg ( Int argc, Char* argv[] ); ///< parse configuration file to fill member variables134 Bool xConfirmParameter(Bool bflag, const Char* message);133 Bool parseCfg ( Int argc, TChar* argv[] ); ///< parse configuration file to fill member variables 134 Bool xConfirmParameter(Bool bflag, const TChar* message); 135 135 136 136 -
trunk/source/App/TAppRenderer/TAppRendererTop.cpp
r1313 r1386 41 41 #include "TAppRendererTop.h" 42 42 43 #if NH_3D 43 #if NH_3D_VSO 44 44 45 45 // ==================================================================================================================== … … 488 488 } 489 489 490 #if H_3D_REN_MAX_DEV_OUT490 #if NH_3D_REN_MAX_DEV_OUT 491 491 Double dMaxDispDiff = m_cCameraData.getMaxShiftDeviation(); 492 492 -
trunk/source/App/TAppRenderer/TAppRendererTop.h
r1313 r1386 40 40 #define __TAppRendererTOP__ 41 41 #include "../../Lib/TLibCommon/CommonDef.h" 42 #if NH_3D 42 #if NH_3D_VSO 43 43 #include "../../Lib/TLibRenderer/TRenTop.h" 44 44 #include "../../Lib/TLibVideoIO/TVideoIOYuv.h"
Note: See TracChangeset for help on using the changeset viewer.