00001
00002 using namespace std;
00003
00004 #include <QString>
00005
00006 #include "mythcorecontext.h"
00007 #include "commandlineparser.h"
00008
00009 MythAVTestCommandLineParser::MythAVTestCommandLineParser() :
00010 MythCommandLineParser(MYTH_APPNAME_MYTHAVTEST)
00011 { LoadArguments(); }
00012
00013 QString MythAVTestCommandLineParser::GetHelpHeader(void) const
00014 {
00015 return "MythAVTest is a testing application that allows direct access \n"
00016 "to the MythTV internal video player.";
00017 }
00018
00019 void MythAVTestCommandLineParser::LoadArguments(void)
00020 {
00021 allowArgs();
00022 addHelp();
00023 addSettingsOverride();
00024 addVersion();
00025 addWindowed();
00026 addGeometry();
00027 addDisplay();
00028 addLogging();
00029 addInFile();
00030 add(QStringList(QStringList() << "-t" << "--test"), "test", false,
00031 "Test video performance.",
00032 "Test and debug video playback performance."
00033 "Audio, captions, deinterlacing and the On Screen Display will all "
00034 "be disabled and video will be displayed at the fastest possible rate. ")
00035 ->SetGroup("Video Performance Testing")
00036 ->SetRequiredChild("infile");
00037 add(QStringList(QStringList() << "-d" << "--decodeonly"),
00038 "decodeonly", false,
00039 "Decode video frames but do not display them.",
00040 "")
00041 ->SetGroup("Video Performance Testing")
00042 ->SetChildOf("test");
00043 add(QStringList(QStringList() << "--deinterlace"),
00044 "deinterlace", false,
00045 "Deinterlace video frames (even if progressive).",
00046 "")
00047 ->SetGroup("Video Performance Testing")
00048 ->SetChildOf("test");
00049 add(QStringList(QStringList() << "-s" << "--seconds"), "seconds", "",
00050 "The number of seconds to run the test (default 5).", "")
00051 ->SetGroup("Video Performance Testing")
00052 ->SetChildOf("test");
00053 }
00054