Add type name String as std::string

This commit is contained in:
jfmcarreira committed 2016-04-30 03:31:41 +01:00
1 parent 42d18a3a09
commit 3dd3e458b9
25 files changed
+128 -129

No files matched your search

+7 -7
View File
@@ -62,10 +62,10 @@ Int PlaYUVerTools::openInputs()
*/
if( m_cCmdLineHandler.Opts().hasOpt( "input" ) )
{
std::vector<std::string> inputFileNames = m_cCmdLineHandler.m_apcInputs;
std::vector<String> inputFileNames = m_cCmdLineHandler.m_apcInputs;
std::string resolutionString( "" );
std::string fmtString( "yuv420p" );
String resolutionString( "" );
String fmtString( "yuv420p" );
UInt uiBitPerPixel = 8;
UInt uiEndianness = 0;
@@ -184,7 +184,7 @@ Int PlaYUVerTools::Open( Int argc, Char *argv[] )
*/
if( m_cCmdLineHandler.Opts().hasOpt( "quality" ) )
{
std::string qualityMetric = m_cCmdLineHandler.m_strQualityMetric;
String qualityMetric = m_cCmdLineHandler.m_strQualityMetric;
if( m_apcInputStreams.size() < 2 )
{
m_cCmdLineHandler.log( LOG_ERROR, "Invalid number of inputs! " );
@@ -212,7 +212,7 @@ Int PlaYUVerTools::Open( Int argc, Char *argv[] )
*/
if( m_cCmdLineHandler.Opts().hasOpt( "module" ) )
{
std::string moduleName = m_cCmdLineHandler.m_strModule;
String moduleName = m_cCmdLineHandler.m_strModule;
PlaYUVerModuleFactoryMap& PlaYUVerModuleFactoryMap = PlaYUVerModuleFactory::Get()->getMap();
PlaYUVerModuleFactoryMap::iterator it = PlaYUVerModuleFactoryMap.begin();
@@ -263,7 +263,7 @@ Int PlaYUVerTools::Open( Int argc, Char *argv[] )
if( m_pcCurrModuleIf->m_iModuleType == FRAME_PROCESSING_MODULE )
{
// Check outputs
std::vector<std::string> outputFileNames;
std::vector<String> outputFileNames;
if( m_cCmdLineHandler.Opts().hasOpt( "output" ) )
outputFileNames.push_back( m_cCmdLineHandler.m_strOutput );
@@ -341,7 +341,7 @@ Int PlaYUVerTools::QualityOperation()
Double adAverageQuality[MAX_NUMBER_INPUTS - 1][MAX_NUMBER_COMPONENTS];
Double dQuality;
std::string metric_fmt = " ";
String metric_fmt = " ";
switch( m_uiQualityMetric )
{
case PlaYUVerFrame::PSNR_METRIC:
+1 -1
View File
@@ -70,7 +70,7 @@ private:
FpProcess m_fpProcess;
Int64 m_iFrameNum;
std::vector<std::string> m_pcOutputFileNames;
std::vector<String> m_pcOutputFileNames;
Int SaveOperation();
Int m_uiQualityMetric;
+1 -1
View File
@@ -165,7 +165,7 @@ Void PlaYUVerToolsCmdParser::listModules()
Void PlaYUVerToolsCmdParser::listModuleHelp()
{
std::string moduleName = m_strModule;
String moduleName = m_strModule;
PlaYUVerModuleIf* pcCurrModuleIf = NULL;
PlaYUVerModuleFactoryMap& PlaYUVerModuleFactoryMap = PlaYUVerModuleFactory::Get()->getMap();
+7 -7
View File
@@ -71,16 +71,16 @@ private:
Bool m_bShowVersion;
Bool m_bQuiet;
std::vector<std::string> m_apcInputs;
std::vector<std::string> m_strResolution;
std::vector<std::string> m_strPelFmt;
std::vector<String> m_apcInputs;
std::vector<String> m_strResolution;
std::vector<String> m_strPelFmt;
std::vector<UInt> m_uiBitsPerPixel;
std::vector<std::string> m_strEndianness;
std::string m_strOutput;
std::vector<String> m_strEndianness;
String m_strOutput;
Int64 m_iFrames;
std::string m_strQualityMetric;
std::string m_strModule;
String m_strQualityMetric;
String m_strModule;
Bool m_bListPelFmts;
Bool m_bListQuality;