Changeset 1325 in 3DVCSoftware for branches/HTM-15.1-MV-draft-4/source/App/TAppRenderer/TAppRendererCfg.h
- Timestamp:
- 7 Sep 2015, 18:40:35 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-15.1-MV-draft-4/source/App/TAppRenderer/TAppRendererCfg.h
r1313 r1325 47 47 #include <vector> 48 48 49 #if NH_3D50 51 // ====================================================================================================================52 // Class definition53 // ====================================================================================================================54 55 /// encoder configuration class56 class TAppRendererCfg57 {58 protected:59 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 $$64 Bool m_bContOutputFileNumbering; ///< use continous numbering instead of view numbering65 Bool m_bSweep; ///< 1: Store view range in file66 67 68 // bit-depth ( Currently internal, output and input luma and chroma bit-depth are required to be equal to 8 )69 Int m_inputBitDepth[2]; ///< bit-depth of input file (luma/chroma component)70 Int m_outputBitDepth[2]; ///< bit-depth of output file (luma/chroma component)71 Int m_internalBitDepth[2]; ///< bit-depth renderer operates at in luma/chroma (input/output files will be converted)72 73 74 // derived75 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 names78 79 //// source specification ////80 Int m_iSourceWidth; ///< source width in pixel81 Int m_iSourceHeight; ///< source height in pixel82 Int m_iFrameSkip; ///< number of skipped frames from the beginning83 Int m_iFramesToBeRendered; ///< number of rendered frames84 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 views90 91 // derived92 TAppComCamPara m_cCameraData; ///< class to store camera parameters93 TRenModSetupStrParser m_cRenModStrParser; ///< class to manage View to be rendered94 Bool m_bUseSetupString; ///< true if setup string is used95 96 Int m_iNumberOfInputViews; ///< number of input Views97 Int m_iNumberOfOutputViews; ///< number views to synthesize98 99 //// renderer Modes ////100 Int m_iRenderDirection; ///< 0: interpolate, 1: extrapolate from left, 2: extrapolate from right101 102 Int m_iLog2SamplingFactor; ///< factor for horizontal upsampling before processing103 Bool m_bUVUp; ///< upsampling of chroma planes before processing104 Int m_iPreProcMode; ///< depth pre-processing: 0 = none, 1 = binominal filtering105 Int m_iPreFilterSize; ///< for PreProcMode = 1: size of filter kernel106 Bool m_bSimEnhance; ///< Similarity enhancement before blending107 Int m_iBlendMode; ///< merging of left and right image: 0 = average, 1 = only holes from right, 2 = only holes from left108 Int m_iBlendZThresPerc; ///< z-difference threshold for blending in percent of total z-range109 Bool m_bBlendUseDistWeight; ///< 0: blend using average; 1: blend factor depends on view distance110 Int m_iBlendHoleMargin; ///< Margin around boundaries111 Bool m_bTempDepthFilter; ///< Zheijang temporal enhancement filter112 Int m_iInterpolationMode; ///< 0: NN, 1: linear, 2: cspline113 Int m_iHoleFillingMode; ///< 0: none, 1: line wise background extension114 Int m_iPostProcMode; ///< 0: none, 1: horizontal 3-tap median115 Int m_iRenderMode; ///< 0: use renderer116 Int m_iShiftPrecision; ///< Precision used for Interpolation Mode 4117 Int m_iUsedPelMapMarExt; ///< Used Pel map extra margin118 119 Void xCheckParameter (); ///< check validity of configuration values120 Void xPrintParameter (); ///< print configuration values121 Void xPrintUsage (); ///< print usage122 123 Void xCreateFileNames();124 Void xGetMaxPrecision( IntAry1d adIn, Int& iPrecBefore, Int& iPrecAfter );125 Void xAddNumberToFileName( Char* pchSourceFileName, Char*& rpchTargetFileName, Int iNumberToAdd, UInt uiPrecBefore, UInt uiPrecAfter );126 public:127 TAppRendererCfg();128 virtual ~TAppRendererCfg();129 130 public:131 Void create (); ///< create option handling class132 Void destroy (); ///< destroy option handling class133 Bool parseCfg ( Int argc, Char* argv[] ); ///< parse configuration file to fill member variables134 Bool xConfirmParameter(Bool bflag, const Char* message);135 136 137 };// END CLASS DEFINITION TAppRendererCfg138 139 #endif // __TAppRENDERERCFG__140 49 #endif // NH_3D
Note: See TracChangeset for help on using the changeset viewer.