Go to the documentation of this file. 1 #ifndef COMMDETECTOR2_H
2 #define COMMDETECTOR2_H
29 QString
strftimeval(std::chrono::microseconds usecs);
42 int chanid, QDateTime startts, QDateTime endts,
43 QDateTime recstartts, QDateTime recendts,
bool useDB);
44 bool go(
void)
override;
54 void reportState(
int elapsedms,
long long frameno,
long long nframes,
55 unsigned int passno,
unsigned int npasses);
Abstract base class for all CommDetectors. Please use the CommDetectFactory to make actual instances.
void reportState(int elapsedms, long long frameno, long long nframes, unsigned int passno, unsigned int npasses)
void recordingFinished(long long totalFileSize) override
QMap< long long, long long > FrameMap
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
FrameAnalyzer::FrameMap m_breaks
void requestCommBreakMapUpdate(void) override
MythCommFlagPlayer * m_player
FrameAnalyzerItem m_finishedAnalyzers
void createDebugDirectory(const QString &dirname, const QString &comment)
QString debugDirectory(int chanid, const QDateTime &recstartts)
int computeBreaks(long long nframes)
CommDetector2(SkipType commDetectMethod, bool showProgress, bool fullSpeed, MythCommFlagPlayer *player, int chanid, QDateTime startts, QDateTime endts, QDateTime recstartts, QDateTime recendts, bool useDB)
void PrintFullMap(std::ostream &out, const frm_dir_map_t *comm_breaks, bool verbose) const override
std::vector< FrameAnalyzer * > FrameAnalyzerItem
void GetCommercialBreakList(frm_dir_map_t &marks) override
long long m_currentFrameNumber
QString strftimeval(std::chrono::microseconds usecs)
FrameAnalyzerList m_frameAnalyzers
SceneChangeDetector * m_sceneChangeDetector
bool m_sendBreakMapUpdates
SkipType
This is used as a bitmask.
std::vector< FrameAnalyzerItem > FrameAnalyzerList
TemplateMatcher * m_logoMatcher
FrameAnalyzerList::iterator m_currentPass
TemplateFinder * m_logoFinder
SkipType m_commDetectMethod
static const std::array< const mark, 16 > marks
QString frameToTimestampms(long long frameno, float fps)
QString frameToTimestamp(long long frameno, float fps)
BlankFrameDetector * m_blankFrameDetector
~CommDetector2() override=default
bool m_breakMapUpdateRequested