MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
PrePostRollFlagger Class Reference

#include <mythcommflag/PrePostRollFlagger.h>

Inheritance diagram for PrePostRollFlagger:
[legend]
Collaboration diagram for PrePostRollFlagger:
[legend]

Public Member Functions

 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
 
bool go () override
 
- Public Member Functions inherited from ClassicCommDetector
 ClassicCommDetector (SkipType commDetectMethod, bool showProgress, bool fullSpeed, MythCommFlagPlayer *player, QDateTime startedAt_in, QDateTime stopsAt_in, QDateTime recordingStartedAt_in, QDateTime recordingStopsAt_in)
 
virtual void deleteLater (void)
 
void recordingFinished (long long totalFileSize) override
 
void requestCommBreakMapUpdate (void) override
 
void PrintFullMap (std::ostream &out, const frm_dir_map_t *comm_breaks, bool verbose) const override
 
void logoDetectorBreathe ()
 
- Public Member Functions inherited from CommDetectorBase
 CommDetectorBase ()=default
 
void stop ()
 
void pause ()
 
void resume ()
 
virtual void recordingFinished ([[maybe_unused]] long long totalFileSize)
 

Private Member Functions

void Init ()
 
long long findBreakInrange (long long startFrame, long long stopFrame, long long totalFrames, long long &framesProcessed, QElapsedTimer &flagTime, bool findLast)
 

Private Attributes

long long m_myTotalFrames {0}
 
long long m_closestAfterPre {0}
 
long long m_closestBeforePre {0}
 
long long m_closestAfterPost {0}
 
long long m_closestBeforePost {0}
 

Additional Inherited Members

- Public Slots inherited from ClassicCommDetector
void sceneChangeDetectorHasNewInformation (unsigned int framenum, bool isSceneChange, float debugValue)
 
- Signals inherited from CommDetectorBase
void statusUpdate (const QString &a)
 
void gotNewCommercialBreakList ()
 
void breathe ()
 
- Protected Member Functions inherited from ClassicCommDetector
 ~ClassicCommDetector () override=default
 
void Init ()
 
void SetVideoParams (float aspect)
 
void ProcessFrame (MythVideoFrame *frame, long long frame_number)
 
- Protected Member Functions inherited from CommDetectorBase
 ~CommDetectorBase () override=default
 
- Protected Attributes inherited from ClassicCommDetector
MythCommFlagPlayerm_player {nullptr}
 
QDateTime m_startedAt
 
QDateTime m_stopsAt
 
QDateTime m_recordingStartedAt
 
QDateTime m_recordingStopsAt
 
bool m_aggressiveDetection {false}
 
bool m_stillRecording {false}
 
bool m_fullSpeed {false}
 
bool m_showProgress {false}
 
double m_fps {0.0}
 
uint64_t m_framesProcessed {0}
 
long long m_preRoll {0}
 
long long m_postRoll {0}
 
QMap< long long, FrameInfoEntrym_frameInfo
 
- Protected Attributes inherited from CommDetectorBase
bool m_bPaused { false }
 
bool m_bStop { false }
 

Detailed Description

Definition at line 6 of file PrePostRollFlagger.h.

Constructor & Destructor Documentation

◆ 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 at line 14 of file PrePostRollFlagger.cpp.

◆ ~PrePostRollFlagger()

PrePostRollFlagger::~PrePostRollFlagger ( )
overridedefault

Member Function Documentation

◆ GetCommercialBreakList()

void PrePostRollFlagger::GetCommercialBreakList ( frm_dir_map_t marks)
overridevirtual

Reimplemented from ClassicCommDetector.

Definition at line 386 of file PrePostRollFlagger.cpp.

◆ go()

bool PrePostRollFlagger::go ( )
overridevirtual

Reimplemented from ClassicCommDetector.

Definition at line 32 of file PrePostRollFlagger.cpp.

◆ Init()

void PrePostRollFlagger::Init ( )
private

Definition at line 27 of file PrePostRollFlagger.cpp.

Referenced by go().

◆ findBreakInrange()

long long PrePostRollFlagger::findBreakInrange ( long long  startFrame,
long long  stopFrame,
long long  totalFrames,
long long &  framesProcessed,
QElapsedTimer &  flagTime,
bool  findLast 
)
private

Definition at line 212 of file PrePostRollFlagger.cpp.

Referenced by go().

Member Data Documentation

◆ m_myTotalFrames

long long PrePostRollFlagger::m_myTotalFrames {0}
private

Definition at line 21 of file PrePostRollFlagger.h.

Referenced by GetCommercialBreakList(), and go().

◆ m_closestAfterPre

long long PrePostRollFlagger::m_closestAfterPre {0}
private

Definition at line 22 of file PrePostRollFlagger.h.

Referenced by GetCommercialBreakList(), and go().

◆ m_closestBeforePre

long long PrePostRollFlagger::m_closestBeforePre {0}
private

Definition at line 23 of file PrePostRollFlagger.h.

Referenced by GetCommercialBreakList(), and go().

◆ m_closestAfterPost

long long PrePostRollFlagger::m_closestAfterPost {0}
private

Definition at line 24 of file PrePostRollFlagger.h.

Referenced by GetCommercialBreakList(), and go().

◆ m_closestBeforePost

long long PrePostRollFlagger::m_closestBeforePost {0}
private

Definition at line 25 of file PrePostRollFlagger.h.

Referenced by GetCommercialBreakList(), and go().


The documentation for this class was generated from the following files: