MythTV master
PrePostRollFlagger.h
Go to the documentation of this file.
1#ifndef PREPOSTROLLFLAGGER_H
2#define PREPOSTROLLFLAGGER_H
3
5
7{
8public:
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
20private:
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
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)
void GetCommercialBreakList(frm_dir_map_t &marks) override
~PrePostRollFlagger() override=default
long long findBreakInrange(long long startFrame, long long stopFrame, long long totalFrames, long long &framesProcessed, QElapsedTimer &flagTime, bool findLast)
SkipType
This is used as a bitmask.
Definition: programtypes.h:127
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
Definition: programtypes.h:117