Remove variable declaration of variables
This commit is contained in:
1 parent
011856bbe2
commit
35f5e11f61
4 files changed
+8
-5
No files matched your search
@@ -43,7 +43,6 @@ PlaYUVerCmdParser::PlaYUVerCmdParser()
|
||||
( "quality_metrics", "list supported quality metrics" )/**/
|
||||
( "module_list", "list supported modules" ) /**/
|
||||
( "module_list_full", "detailed list supported modules" );
|
||||
|
||||
}
|
||||
|
||||
PlaYUVerCmdParser::~PlaYUVerCmdParser()
|
||||
|
||||
@@ -40,6 +40,8 @@ namespace plaYUVer
|
||||
|
||||
struct PlaYUVerPixFmtDescriptor;
|
||||
|
||||
#define MAX_NUMBER_COMPONENTS 4
|
||||
|
||||
/**
|
||||
* \class PlaYUVerFrame
|
||||
* \ingroup PlaYUVerLib PlaYUVerLib_Frame
|
||||
|
||||
@@ -74,7 +74,7 @@ Int PlaYUVerTools::openInputs()
|
||||
std::vector<std::string> inputFileNames = m_cCmdLineHandler.m_apcInputs;
|
||||
|
||||
PlaYUVerStream* pcStream;
|
||||
for( UInt i = 0; i < inputFileNames.size(); i++ )
|
||||
for( UInt i = 0; i < inputFileNames.size() && i < MAX_NUMBER_INPUTS; i++ )
|
||||
{
|
||||
pcStream = new PlaYUVerStream;
|
||||
try
|
||||
@@ -233,9 +233,9 @@ Int PlaYUVerTools::Close()
|
||||
|
||||
Int PlaYUVerTools::QualityOperation()
|
||||
{
|
||||
PlaYUVerFrame* apcCurrFrame[m_apcInputStreams.size()];
|
||||
Bool abEOF[m_apcInputStreams.size()];
|
||||
Double adAverageQuality[m_apcInputStreams.size() - 1][m_uiNumberOfComponents];
|
||||
PlaYUVerFrame* apcCurrFrame[MAX_NUMBER_INPUTS];
|
||||
Bool abEOF[MAX_NUMBER_INPUTS];
|
||||
Double adAverageQuality[MAX_NUMBER_INPUTS - 1][MAX_NUMBER_COMPONENTS];
|
||||
Double dQuality;
|
||||
|
||||
m_cCmdLineHandler.log( CommandLineHandle::INFO, " Measuring Quality using %s ... \n",
|
||||
|
||||
@@ -36,6 +36,8 @@ namespace plaYUVer
|
||||
|
||||
class PlaYUVerModuleIf;
|
||||
|
||||
#define MAX_NUMBER_INPUTS 10
|
||||
|
||||
class PlaYUVerTools
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in new issue
Block a user