Format code
This commit is contained in:
1 parent
501e24fc5d
commit
404e58e0ce
109 files changed
+494
-593
No files matched your search
@@ -28,7 +28,6 @@
|
||||
#include "lib/PlaYUVerModuleIf.h"
|
||||
#include "modules/PlaYUVerModuleFactory.h"
|
||||
|
||||
|
||||
PlaYUVerTools::PlaYUVerTools()
|
||||
{
|
||||
m_bVerbose = true;
|
||||
@@ -54,7 +53,6 @@ PlaYUVerTools::~PlaYUVerTools()
|
||||
|
||||
#define GET_PARAM( X , i ) X[X.size() > i ? i : X.size() - 1]
|
||||
|
||||
|
||||
Int PlaYUVerTools::openInputs()
|
||||
{
|
||||
/**
|
||||
@@ -86,7 +84,7 @@ Int PlaYUVerTools::openInputs()
|
||||
}
|
||||
if( Opts().hasOpt( "endianness" ) )
|
||||
{
|
||||
if( GET_PARAM( m_strEndianness, i ) == "big" )
|
||||
if( GET_PARAM( m_strEndianness, i )== "big" )
|
||||
{
|
||||
uiEndianness = 0;
|
||||
}
|
||||
@@ -279,7 +277,8 @@ Int PlaYUVerTools::Open( Int argc, Char *argv[] )
|
||||
pcModFrame = applyFrameModule();
|
||||
}
|
||||
PlaYUVerStream* pcModStream = new PlaYUVerStream;
|
||||
if( !pcModStream->open( outputFileNames[0], pcModFrame->getWidth(), pcModFrame->getHeight(), pcModFrame->getPelFormat(), pcModFrame->getBitsPel(), pcModFrame->getEndianness(), 1, false ) )
|
||||
if( !pcModStream->open( outputFileNames[0], pcModFrame->getWidth(), pcModFrame->getHeight(), pcModFrame->getPelFormat(), pcModFrame->getBitsPel(),
|
||||
pcModFrame->getEndianness(), 1, false ) )
|
||||
{
|
||||
delete pcModStream;
|
||||
pcModStream = NULL;
|
||||
@@ -500,4 +499,3 @@ Int PlaYUVerTools::ModuleOperation()
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,6 @@
|
||||
#include "lib/PlaYUVerStream.h"
|
||||
#include "PlaYUVerToolsCmdParser.h"
|
||||
|
||||
|
||||
class PlaYUVerModuleIf;
|
||||
|
||||
#define MAX_NUMBER_INPUTS 10
|
||||
@@ -65,7 +64,7 @@ private:
|
||||
|
||||
Int openInputs();
|
||||
|
||||
typedef Int (PlaYUVerTools::*FpProcess) ();
|
||||
typedef Int (PlaYUVerTools::*FpProcess)();
|
||||
FpProcess m_fpProcess;
|
||||
|
||||
Int64 m_iFrameNum;
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include "lib/PlaYUVerModuleIf.h"
|
||||
#include "modules/PlaYUVerModuleFactory.h"
|
||||
|
||||
|
||||
PlaYUVerToolsCmdParser::PlaYUVerToolsCmdParser()
|
||||
{
|
||||
m_uiLogLevel = 0;
|
||||
@@ -83,12 +82,12 @@ Int PlaYUVerToolsCmdParser::parseToolsArgs( Int argc, Char *argv[] )
|
||||
m_uiLogLevel = LOG_RESULT;
|
||||
}
|
||||
|
||||
if( m_cOptions.hasOpt("module") && m_cOptions.hasOpt("help") )
|
||||
if( m_cOptions.hasOpt( "module" ) && m_cOptions.hasOpt( "help" ) )
|
||||
{
|
||||
listModuleHelp();
|
||||
iRet = 1;
|
||||
}
|
||||
else if( m_cOptions.hasOpt("help") )
|
||||
else if( m_cOptions.hasOpt( "help" ) )
|
||||
{
|
||||
printf( "Usage: %s modules/quality/save [options] -input=input_file [--output=output_file]\n", argv[0] );
|
||||
m_cOptions.doHelp( std::cout );
|
||||
@@ -119,4 +118,3 @@ Void PlaYUVerToolsCmdParser::listModuleHelp()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#include "lib/PlaYUVerDefs.h"
|
||||
#include "lib/PlaYUVerOptions.h"
|
||||
|
||||
|
||||
class PlaYUVerStream;
|
||||
|
||||
class PlaYUVerToolsCmdParser
|
||||
|
||||
Reference in new issue
Block a user