Changeset 1301 in SHVCSoftware for branches/SHM-dev/source/App
- Timestamp:
- 21 Jul 2015, 00:19:48 (10 years ago)
- Location:
- branches/SHM-dev/source/App
- Files:
-
- 2 edited
-
TAppDecoder/TAppDecCfg.cpp (modified) (4 diffs)
-
TAppEncoder/TAppEncCfg.cpp (modified) (4 diffs)
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 -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1298 r1301 1024 1024 SMultiValueInput<Int> cfg_timeCodeSeiTimeOffsetLength (0, 31, 0, MAX_TIMECODE_SEI_SETS); 1025 1025 SMultiValueInput<Int> cfg_timeCodeSeiTimeOffsetValue (std::numeric_limits<Int>::min(), std::numeric_limits<Int>::max(), 0, MAX_TIMECODE_SEI_SETS); 1026 Int warnUnknowParameter = 0; 1026 1027 1027 1028 #if Q0096_OVERLAY_SEI … … 1045 1046 ("help", do_help, false, "this help text") 1046 1047 ("c", po::parseConfigFile, "configuration file name") 1048 ("WarnUnknowParameter,w", warnUnknowParameter, 0, "warn for unknown configuration parameters instead of failing") 1047 1049 1048 1050 // File, I/O and source parameters … … 1688 1690 1689 1691 po::setDefaults(opts); 1690 const list<const Char*>& argv_unhandled = po::scanArgv(opts, argc, (const Char**) argv); 1692 po::ErrorReporter err; 1693 const list<const Char*>& argv_unhandled = po::scanArgv(opts, argc, (const Char**) argv, err); 1691 1694 1692 1695 #if SVC_EXTENSION … … 1720 1723 po::doHelp(cout, opts); 1721 1724 return false; 1725 } 1726 1727 if (err.is_errored) 1728 { 1729 if (!warnUnknowParameter) 1730 { 1731 /* error report has already been printed on stderr */ 1732 return false; 1733 } 1722 1734 } 1723 1735
Note: See TracChangeset for help on using the changeset viewer.