TuttleOFX
1
|
#include <sam/common/utility.hpp>
#include <sam/common/options.hpp>
#include <tuttle/host/Graph.hpp>
#include <detector.hpp>
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
Go to the source code of this file.
enum EImageStatus |
enum EReturnCode |
EImageStatus checkFile | ( | Graph::Node & | read, |
Graph::Node & | stat, | ||
Graph & | graph, | ||
const bfs::path & | filename | ||
) |
Definition at line 69 of file main.cpp.
References _blackImage, _corruptedImage, _missingFiles, _nullFileSize, checkImageStatus(), eImageStatusBlack, eImageStatusFileSizeError, eImageStatusImageError, eImageStatusNoFile, eImageStatusOK, and TUTTLE_LOG_INFO.
Referenced by checkSequence(), and main().
EImageStatus checkImageStatus | ( | Graph::Node & | read, |
Graph::Node & | stat, | ||
Graph & | graph, | ||
const bfs::path & | filename | ||
) |
Check the image status.
Definition at line 39 of file main.cpp.
References tuttle::host::Graph::compute(), eImageStatusBlack, eImageStatusFileSizeError, eImageStatusImageError, eImageStatusNoFile, eImageStatusOK, tuttle::host::INode::getParam(), tuttle::host::ofx::attribute::OfxhParam::setValue(), and TUTTLE_LOG_INFO.
Referenced by checkFile().
void checkSequence | ( | Graph::Node & | read, |
Graph::Node & | stat, | ||
Graph & | graph, | ||
const sequenceParser::Sequence & | seq | ||
) |
Definition at line 99 of file main.cpp.
References checkFile(), sequenceParser::Sequence::getAbsoluteFilenameAt(), sequenceParser::Sequence::getFirstTime(), and sequenceParser::Sequence::getLastTime().
Referenced by main().
void checkSequence | ( | Graph::Node & | read, |
Graph::Node & | stat, | ||
Graph & | graph, | ||
const sequenceParser::Sequence & | seq, | ||
const sequenceParser::Time | first, | ||
const sequenceParser::Time | last | ||
) |
Definition at line 107 of file main.cpp.
References checkFile(), and sequenceParser::Sequence::getAbsoluteFilenameAt().
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 115 of file main.cpp.
References _blackImage, _corruptedImage, _missingFiles, _nullFileSize, checkFile(), checkSequence(), tuttle::host::Graph::connect(), tuttle::host::core(), tuttle::host::Graph::createNode(), sequenceParser::eMaskTypeDirectory, sequenceParser::eMaskTypeFile, sequenceParser::eMaskTypeSequence, sequenceParser::eMaskTypeUndefined, eReturnCodeApplicationError, OFX::Log::error(), sequenceParser::fileObjectInDirectory(), sequenceParser::File::getAbsoluteFilename(), sequenceParser::FileObject::getMaskType(), tuttle::host::INode::getParam(), sam::kBriefOptionLongName, sam::kBriefOptionMessage, sam::kBriefOptionString, sam::kColorOptionLongName, sam::kColorOptionMessage, sam::kColorOptionString, sam::kEnableColorOptionLongName, sam::kEnableColorOptionMessage, sam::kEnableColorOptionString, sam::kHelpOptionLongName, sam::kHelpOptionMessage, sam::kHelpOptionString, sam::kInputDirOptionLongName, sam::kInputOptionLongName, sam::kInputOptionMessage, sam::kInputOptionString, sam::kRangeOptionLongName, sam::kRangeOptionMessage, sam::kRangeOptionString, sam::kReaderOptionLongName, sam::kReaderOptionMessage, sam::kReaderOptionString, sam::kScriptOptionLongName, sam::kScriptOptionMessage, sam::kScriptOptionString, sam::kUrlTuttleofxProject, tuttle::host::Core::preload(), tuttle::host::ofx::attribute::OfxhParam::setValue(), signal_callback_handler(), string_to_boolean(), TUTTLE_LOG_ERROR, TUTTLE_LOG_INFO, and TUTTLE_LOG_WARNING.
int _blackImage = 0 [static] |
Definition at line 16 of file main.cpp.
Referenced by checkFile(), and main().
int _corruptedImage = 0 [static] |
Definition at line 18 of file main.cpp.
Referenced by checkFile(), and main().
int _missingFiles = 0 [static] |
Definition at line 19 of file main.cpp.
Referenced by checkFile(), and main().
int _nullFileSize = 0 [static] |
Definition at line 17 of file main.cpp.
Referenced by checkFile(), and main().