main.cpp File Reference

Go to the source code of this file.

Enumerations

enum  OutputMethod { kOutputMethodEssentials = 1, kOutputMethodFull }

Functions

static QMap< QString, SkipTypes > * init_skip_types ()
static QMap< QString,
OutputMethod > * 
init_output_types ()
static QString get_filename (ProgramInfo *program_info)
static int QueueCommFlagJob (uint chanid, QDateTime starttime, bool rebuild)
static int CopySkipListToCutList (uint chanid, QDateTime starttime)
static int ClearSkipList (uint chanid, QDateTime starttime)
static int SetCutList (uint chanid, QDateTime starttime, QString newCutList)
static int GetMarkupList (QString list, uint chanid, QDateTime starttime)
static void streamOutCommercialBreakList (ostream &output, const frm_dir_map_t &commercialBreakList)
static void print_comm_flag_output (const ProgramInfo *program_info, const frm_dir_map_t &commBreakList, uint64_t frame_count, const CommDetectorBase *commDetect, const QString &output_filename)
static void commDetectorBreathe ()
static void commDetectorStatusUpdate (const QString &status)
static void commDetectorGotNewCommercialBreakList (void)
static void incomingCustomEvent (QEvent *e)
static int DoFlagCommercials (ProgramInfo *program_info, bool showPercentage, bool fullSpeed, int jobid, MythCommFlagPlayer *cfp, enum SkipTypes commDetectMethod, const QString &outputfilename, bool useDB)
static qint64 GetFileSize (ProgramInfo *program_info)
static bool DoesFileExist (ProgramInfo *program_info)
static void UpdateFileSize (ProgramInfo *program_info)
static bool IsMarked (uint chanid, QDateTime starttime)
static int FlagCommercials (ProgramInfo *program_info, int jobid, const QString &outputfilename, bool useDB, bool fullSpeed)
static int FlagCommercials (uint chanid, const QDateTime &starttime, int jobid, const QString &outputfilename, bool fullSpeed)
static int FlagCommercials (QString filename, int jobid, const QString &outputfilename, bool useDB, bool fullSpeed)
static int RebuildSeekTable (ProgramInfo *pginfo, int jobid)
static int RebuildSeekTable (QString filename, int jobid)
static int RebuildSeekTable (uint chanid, QDateTime starttime, int jobid)
int main (int argc, char *argv[])

Variables

int quiet = 0
bool progress = true
bool force = false
MythCommFlagCommandLineParser cmdline
bool watchingRecording = false
CommDetectorBasecommDetector = NULL
RemoteEncoderrecorder = NULL
ProgramInfoglobal_program_info = NULL
int recorderNum = -1
int jobID = -1
int lastCmd = -1
QMap< QString, SkipTypes > * skipTypes = init_skip_types()
OutputMethod outputMethod = kOutputMethodEssentials
QMap< QString, OutputMethod > * outputTypes = init_output_types()

Enumeration Type Documentation

Enumerator:
kOutputMethodEssentials 
kOutputMethodFull 

Definition at line 119 of file mythtv/programs/mythcommflag/main.cpp.


Function Documentation

static QMap< QString, SkipTypes > * init_skip_types ( void   )  [static]

Definition at line 98 of file mythtv/programs/mythcommflag/main.cpp.

static QMap< QString, OutputMethod > * init_output_types ( void   )  [static]

Definition at line 129 of file mythtv/programs/mythcommflag/main.cpp.

static QString get_filename ( ProgramInfo program_info  )  [static]
static int QueueCommFlagJob ( uint  chanid,
QDateTime  starttime,
bool  rebuild 
) [static]

Definition at line 145 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main().

static int CopySkipListToCutList ( uint  chanid,
QDateTime  starttime 
) [static]

Definition at line 198 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main().

static int ClearSkipList ( uint  chanid,
QDateTime  starttime 
) [static]

Definition at line 225 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main().

static int SetCutList ( uint  chanid,
QDateTime  starttime,
QString  newCutList 
) [static]

Definition at line 246 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main().

static int GetMarkupList ( QString  list,
uint  chanid,
QDateTime  starttime 
) [static]

Definition at line 279 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main().

static void streamOutCommercialBreakList ( ostream &  output,
const frm_dir_map_t commercialBreakList 
) [static]

Definition at line 338 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by print_comm_flag_output().

static void print_comm_flag_output ( const ProgramInfo program_info,
const frm_dir_map_t commBreakList,
uint64_t  frame_count,
const CommDetectorBase commDetect,
const QString &  output_filename 
) [static]

Definition at line 363 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by DoFlagCommercials().

static void commDetectorBreathe (  )  [static]

Definition at line 412 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by DoFlagCommercials().

static void commDetectorStatusUpdate ( const QString &  status  )  [static]

Definition at line 449 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by DoFlagCommercials().

static void commDetectorGotNewCommercialBreakList ( void   )  [static]

Definition at line 458 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by DoFlagCommercials().

static void incomingCustomEvent ( QEvent *  e  )  [static]

Definition at line 484 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by DoFlagCommercials().

static int DoFlagCommercials ( ProgramInfo program_info,
bool  showPercentage,
bool  fullSpeed,
int  jobid,
MythCommFlagPlayer cfp,
enum SkipTypes  commDetectMethod,
const QString &  outputfilename,
bool  useDB 
) [static]

Definition at line 537 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by FlagCommercials().

static qint64 GetFileSize ( ProgramInfo program_info  )  [static]

Definition at line 622 of file mythtv/programs/mythcommflag/main.cpp.

static bool DoesFileExist ( ProgramInfo program_info  )  [static]

Definition at line 649 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by FlagCommercials(), and RebuildSeekTable().

static void UpdateFileSize ( ProgramInfo program_info  )  [static]

Definition at line 671 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by RebuildSeekTable().

static bool IsMarked ( uint  chanid,
QDateTime  starttime 
) [static]

Definition at line 679 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main().

static int FlagCommercials ( ProgramInfo program_info,
int  jobid,
const QString &  outputfilename,
bool  useDB,
bool  fullSpeed 
) [static]

Definition at line 733 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by FlagCommercials(), and main().

static int FlagCommercials ( uint  chanid,
const QDateTime &  starttime,
int  jobid,
const QString &  outputfilename,
bool  fullSpeed 
) [static]

Definition at line 952 of file mythtv/programs/mythcommflag/main.cpp.

static int FlagCommercials ( QString  filename,
int  jobid,
const QString &  outputfilename,
bool  useDB,
bool  fullSpeed 
) [static]

Definition at line 993 of file mythtv/programs/mythcommflag/main.cpp.

static int RebuildSeekTable ( ProgramInfo pginfo,
int  jobid 
) [static]

Definition at line 1008 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main(), and RebuildSeekTable().

static int RebuildSeekTable ( QString  filename,
int  jobid 
) [static]

Definition at line 1068 of file mythtv/programs/mythcommflag/main.cpp.

static int RebuildSeekTable ( uint  chanid,
QDateTime  starttime,
int  jobid 
) [static]

Definition at line 1079 of file mythtv/programs/mythcommflag/main.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 1094 of file mythtv/programs/mythcommflag/main.cpp.


Variable Documentation

int quiet = 0
bool progress = true
bool force = false

Definition at line 84 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by main().

Definition at line 86 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by FlagCommercials(), and incomingCustomEvent().

Definition at line 87 of file mythtv/programs/mythcommflag/main.cpp.

Definition at line 89 of file mythtv/programs/mythcommflag/main.cpp.

int recorderNum = -1

Definition at line 90 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by FlagCommercials(), and incomingCustomEvent().

int jobID = -1
int lastCmd = -1

Definition at line 93 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by commDetectorBreathe().

QMap<QString,SkipTypes>* skipTypes = init_skip_types()

Definition at line 96 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by FlagCommercials().

OutputMethod outputMethod = kOutputMethodEssentials

Definition at line 124 of file mythtv/programs/mythcommflag/main.cpp.

Referenced by DoFlagCommercials().

QMap<QString,OutputMethod>* outputTypes = init_output_types()

Definition at line 127 of file mythtv/programs/mythcommflag/main.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Sat Feb 11 06:41:45 2012 for MythTV by  doxygen 1.6.3