MythTV  master
PrePostRollFlagger.h
Go to the documentation of this file.
1 #ifndef PREPOSTROLLFLAGGER_H
2 #define PREPOSTROLLFLAGGER_H
3 
4 #include "ClassicCommDetector.h"
5 
7 {
8 public:
9  PrePostRollFlagger(SkipType commDetectMethod, bool showProgress,
10  bool fullSpeed, MythCommFlagPlayer* player,
11  const QDateTime& startedAt_in,
12  const QDateTime& stopsAt_in,
13  const QDateTime& recordingStartedAt_in,
14  const QDateTime& recordingStopsAt_in);
15 
16  void GetCommercialBreakList(frm_dir_map_t &marks) override; // ClassicCommDetector
17  ~PrePostRollFlagger() override = default;
18  bool go() override; // ClassicCommDetector
19 
20 private:
21  long long m_myTotalFrames {0};
22  long long m_closestAfterPre {0};
23  long long m_closestBeforePre {0};
24  long long m_closestAfterPost {0};
25  long long m_closestBeforePost {0};
26 
27  void Init();
28 
29  long long findBreakInrange(long long startFrame, long long stopFrame,
30  long long totalFrames,
31  long long &framesProcessed,
32  QElapsedTimer &flagTime, bool findLast);
33 };
34 
35 #endif // PREPOSTROLLFLAGGER_H
ClassicCommDetector.h
PrePostRollFlagger::PrePostRollFlagger
PrePostRollFlagger(SkipType commDetectMethod, bool showProgress, bool fullSpeed, MythCommFlagPlayer *player, const QDateTime &startedAt_in, const QDateTime &stopsAt_in, const QDateTime &recordingStartedAt_in, const QDateTime &recordingStopsAt_in)
Definition: PrePostRollFlagger.cpp:13
frm_dir_map_t
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
Definition: programtypes.h:119
PrePostRollFlagger::m_closestAfterPost
long long m_closestAfterPost
Definition: PrePostRollFlagger.h:24
PrePostRollFlagger::m_closestAfterPre
long long m_closestAfterPre
Definition: PrePostRollFlagger.h:22
PrePostRollFlagger::findBreakInrange
long long findBreakInrange(long long startFrame, long long stopFrame, long long totalFrames, long long &framesProcessed, QElapsedTimer &flagTime, bool findLast)
Definition: PrePostRollFlagger.cpp:211
PrePostRollFlagger::GetCommercialBreakList
void GetCommercialBreakList(frm_dir_map_t &marks) override
Definition: PrePostRollFlagger.cpp:384
MythCommFlagPlayer
Definition: mythcommflagplayer.h:25
ClassicCommDetector
Definition: ClassicCommDetector.h:46
PrePostRollFlagger::m_closestBeforePre
long long m_closestBeforePre
Definition: PrePostRollFlagger.h:23
PrePostRollFlagger::~PrePostRollFlagger
~PrePostRollFlagger() override=default
PrePostRollFlagger::m_myTotalFrames
long long m_myTotalFrames
Definition: PrePostRollFlagger.h:21
marks
static const std::array< const mark, 16 > marks
Definition: lang.cpp:22
SkipType
SkipType
This is used as a bitmask.
Definition: programtypes.h:129
PrePostRollFlagger::m_closestBeforePost
long long m_closestBeforePost
Definition: PrePostRollFlagger.h:25
PrePostRollFlagger::Init
void Init()
Definition: PrePostRollFlagger.cpp:26
PrePostRollFlagger::go
bool go() override
Definition: PrePostRollFlagger.cpp:31
PrePostRollFlagger
Definition: PrePostRollFlagger.h:6