Changeset 1301 in SHVCSoftware for branches/SHM-dev/source/App/TAppDecoder
- Timestamp:
- 21 Jul 2015, 00:19:48 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppDecoder/TAppDecCfg.cpp
r1273 r1301 83 83 string cfg_TargetDecLayerIdSetFile; 84 84 string outputColourSpaceConvert; 85 Int warnUnknowParameter = 0; 85 86 86 87 po::Options opts; … … 107 108 "YUV writing is skipped if omitted") 108 109 #endif 109 110 ("WarnUnknowParameter,w", warnUnknowParameter, 0, "warn for unknown configuration parameters instead of failing") 110 111 ("SkipFrames,s", m_iSkipFrame, 0, "number of frames to skip before random access") 111 112 ("OutputBitDepth,d", m_outputBitDepth[CHANNEL_TYPE_LUMA], 0, "bit depth of YUV output luma component (default: use 0 for native depth)") … … 131 132 132 133 po::setDefaults(opts); 133 const list<const Char*>& argv_unhandled = po::scanArgv(opts, argc, (const Char**) argv); 134 po::ErrorReporter err; 135 const list<const Char*>& argv_unhandled = po::scanArgv(opts, argc, (const Char**) argv, err); 134 136 135 137 for (list<const Char*>::const_iterator it = argv_unhandled.begin(); it != argv_unhandled.end(); it++) … … 142 144 po::doHelp(cout, opts); 143 145 return false; 146 } 147 148 if (err.is_errored) 149 { 150 if (!warnUnknowParameter) 151 { 152 /* errors have already been reported to stderr */ 153 return false; 154 } 144 155 } 145 156
Note: See TracChangeset for help on using the changeset viewer.