Seperate command opts by app
This commit is contained in:
1 parent
e924a06a9e
commit
40aa4f95f3
4 files changed
+42
-24
No files matched your search
@@ -62,21 +62,11 @@ po::options_description PlaYUVerCmdParser::GetCommandOpts()
|
||||
( "pel_fmts", "list pixel formats" ) /**/
|
||||
( "frames,f", po::value<UInt>(), "number of frames" );
|
||||
|
||||
po::options_description qualityOpts( "Quality" );
|
||||
qualityOpts.add_options() /**/
|
||||
( "quality", po::value<std::string>(), "select a quality metric" ) /**/
|
||||
( "quality_metrics", "list supported quality metrics" );
|
||||
|
||||
po::options_description moduleOpts( "Module" );
|
||||
moduleOpts.add_options() /**/
|
||||
( "module", po::value<std::string>(), "select a module" ) /**/
|
||||
( "module_list", "list supported modules" );
|
||||
|
||||
po::options_description commonOpts( "Common" );
|
||||
commonOpts.add_options()/**/
|
||||
( "help", "produce help message" )/**/
|
||||
( "version", "show version and exit" );
|
||||
commonOpts.add( inputOpts ).add( qualityOpts ).add( moduleOpts );
|
||||
commonOpts.add( inputOpts );
|
||||
return commonOpts;
|
||||
}
|
||||
|
||||
@@ -136,16 +126,6 @@ Bool PlaYUVerCmdParser::checkListingOpts()
|
||||
}
|
||||
bRet |= true;
|
||||
}
|
||||
|
||||
if( m_cOptionsMap.count( "quality_metrics" ) )
|
||||
{
|
||||
printf( "PlaYUVer supported quality metrics: \n" );
|
||||
for( UInt i = 0; i < PlaYUVerFrame::supportedQualityMetricsList().size(); i++ )
|
||||
{
|
||||
printf( " %s\n", PlaYUVerFrame::supportedQualityMetricsList()[i].c_str() );
|
||||
}
|
||||
bRet |= true;
|
||||
}
|
||||
return bRet;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user