|
MythTV master
|
#include <unistd.h>#include <cmath>#include <cstdio>#include <cstdlib>#include <fstream>#include <iostream>#include <string>#include <QCoreApplication>#include <QDir>#include <QEvent>#include <QString>#include <QtGlobal>#include "libmyth/mythcontext.h"#include "libmythbase/exitcodes.h"#include "libmythbase/mythappname.h"#include "libmythbase/mythcorecontext.h"#include "libmythbase/mythdate.h"#include "libmythbase/mythdb.h"#include "libmythbase/mythlogging.h"#include "libmythbase/mythmiscutil.h"#include "libmythbase/mythtranslation.h"#include "libmythbase/mythversion.h"#include "libmythbase/remotefile.h"#include "libmythtv/io/mythmediabuffer.h"#include "libmythtv/jobqueue.h"#include "libmythtv/mythcommflagplayer.h"#include "libmythtv/programinfo.h"#include "libmythtv/remoteencoder.h"#include "libmythtv/tvremoteutil.h"#include "mythcommflag_commandlineparser.h"#include "CommDetectorBase.h"#include "CommDetectorFactory.h"#include "CustomEventRelayer.h"#include "SlotRelayer.h"Go to the source code of this file.
Namespaces | |
| namespace | anonymous_namespace{mythcommflag.cpp} |
Macros | |
| #define | LOC QString("MythCommFlag: ") |
| #define | LOC_WARN QString("MythCommFlag, Warning: ") |
| #define | LOC_ERR QString("MythCommFlag, Error: ") |
Enumerations | |
| enum | OutputMethod : std::uint8_t { kOutputMethodEssentials = 1 , kOutputMethodFull } |
Functions | |
| static QMap< QString, SkipType > * | init_skip_types () |
| static QMap< QString, OutputMethod > * | init_output_types () |
| static QString | get_filename (ProgramInfo *program_info) |
| static int | QueueCommFlagJob (uint chanid, const QDateTime &starttime, bool rebuild) |
| static void | streamOutCommercialBreakList (std::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, SkipType 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, const 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 (const QString &filename, int jobid, const QString &outputfilename, bool useDB, bool fullSpeed) |
| static int | RebuildSeekTable (ProgramInfo *pginfo, int jobid, bool writefile=false) |
| static int | RebuildSeekTable (const QString &filename, int jobid, bool writefile=false) |
| static int | RebuildSeekTable (uint chanid, const QDateTime &starttime, int jobid, bool writefile=false) |
| int | main (int argc, char *argv[]) |
| #define LOC QString("MythCommFlag: ") |
Definition at line 53 of file mythcommflag.cpp.
| #define LOC_ERR QString("MythCommFlag, Error: ") |
Definition at line 55 of file mythcommflag.cpp.
| #define LOC_WARN QString("MythCommFlag, Warning: ") |
Definition at line 54 of file mythcommflag.cpp.
| enum OutputMethod : std::uint8_t |
| Enumerator | |
|---|---|
| kOutputMethodEssentials | |
| kOutputMethodFull | |
Definition at line 100 of file mythcommflag.cpp.
|
static |
Definition at line 249 of file mythcommflag.cpp.
Referenced by DoFlagCommercials().
|
static |
Definition at line 297 of file mythcommflag.cpp.
Referenced by DoFlagCommercials().
|
static |
Definition at line 288 of file mythcommflag.cpp.
Referenced by DoFlagCommercials().
|
static |
Definition at line 484 of file mythcommflag.cpp.
Referenced by FlagCommercials(), and RebuildSeekTable().
|
static |
Definition at line 378 of file mythcommflag.cpp.
Referenced by FlagCommercials().
|
static |
Definition at line 837 of file mythcommflag.cpp.
|
static |
Definition at line 569 of file mythcommflag.cpp.
Referenced by FlagCommercials(), and main().
|
static |
Definition at line 796 of file mythcommflag.cpp.
|
static |
Definition at line 118 of file mythcommflag.cpp.
Referenced by DoesFileExist(), FlagCommercials(), GetFileSize(), and RebuildSeekTable().
|
static |
Definition at line 462 of file mythcommflag.cpp.
Referenced by DoesFileExist(), and UpdateFileSize().
|
static |
Definition at line 322 of file mythcommflag.cpp.
Referenced by DoFlagCommercials().
|
static |
Definition at line 110 of file mythcommflag.cpp.
|
static |
Definition at line 79 of file mythcommflag.cpp.
Definition at line 514 of file mythcommflag.cpp.
Referenced by main().
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
Definition at line 943 of file mythcommflag.cpp.
|
static |
Definition at line 200 of file mythcommflag.cpp.
Referenced by DoFlagCommercials().
Definition at line 126 of file mythcommflag.cpp.
Referenced by main().
Definition at line 917 of file mythcommflag.cpp.
|
static |
Definition at line 852 of file mythcommflag.cpp.
Referenced by main(), and RebuildSeekTable().
|
static |
Definition at line 928 of file mythcommflag.cpp.
|
static |
Definition at line 175 of file mythcommflag.cpp.
Referenced by print_comm_flag_output().
|
static |
Definition at line 506 of file mythcommflag.cpp.
Referenced by RebuildSeekTable().
| OutputMethod outputMethod = kOutputMethodEssentials |
Definition at line 105 of file mythcommflag.cpp.
Referenced by DoFlagCommercials(), and main().
| QMap<QString,OutputMethod>* outputTypes = init_output_types() |
Definition at line 108 of file mythcommflag.cpp.
Referenced by main().
| QMap<QString,SkipType>* skipTypes = init_skip_types() |
Definition at line 77 of file mythcommflag.cpp.
Referenced by FlagCommercials().