MythTV
master
|
#include <mythcommflag/ClassicCommDetector.h>
Classes | |
struct | FrameBlock |
Public Slots | |
void | sceneChangeDetectorHasNewInformation (unsigned int framenum, bool isSceneChange, float debugValue) |
Public Member Functions | |
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) |
bool | go () override |
void | GetCommercialBreakList (frm_dir_map_t &marks) override |
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 () |
![]() | |
CommDetectorBase ()=default | |
void | stop () |
void | pause () |
void | resume () |
virtual void | recordingFinished ([[maybe_unused]] long long totalFileSize) |
Protected Member Functions | |
~ClassicCommDetector () override=default | |
void | Init () |
void | SetVideoParams (float aspect) |
void | ProcessFrame (MythVideoFrame *frame, long long frame_number) |
![]() | |
~CommDetectorBase () override=default | |
Protected Attributes | |
MythCommFlagPlayer * | m_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, FrameInfoEntry > | m_frameInfo |
![]() | |
bool | m_bPaused { false } |
bool | m_bStop { false } |
Private Member Functions | |
template<typename T > | |
QString | FormatMsg (T first, const FrameBlock *fbp) |
void | ClearAllMaps (void) |
void | GetBlankCommMap (frm_dir_map_t &comms) |
void | GetBlankCommBreakMap (frm_dir_map_t &comms) |
void | GetSceneChangeMap (frm_dir_map_t &scenes, int64_t start_frame) |
frm_dir_map_t | Combine2Maps (const frm_dir_map_t &a, const frm_dir_map_t &b) const |
void | BuildAllMethodsCommList (void) |
void | BuildBlankFrameCommList (void) |
void | BuildSceneChangeCommList (void) |
void | BuildLogoCommList () |
void | MergeBlankCommList (void) |
bool | FrameIsInBreakMap (uint64_t f, const frm_dir_map_t &breakMap) const |
void | DumpMap (frm_dir_map_t &map) const |
void | CleanupFrameInfo (void) |
void | GetLogoCommBreakMap (show_map_t &map) |
Static Private Member Functions | |
static void | UpdateFrameBlock (FrameBlock *fbp, const FrameInfoEntry &finfo, int format, int aspect) |
static void | CondenseMarkMap (show_map_t &map, int spacing, int length) |
static void | ConvertShowMapToCommMap (frm_dir_map_t &out, const show_map_t &in) |
Friends | |
class | ClassicLogoDetector |
Additional Inherited Members | |
![]() | |
void | statusUpdate (const QString &a) |
void | gotNewCommercialBreakList () |
void | breathe () |
Definition at line 47 of file ClassicCommDetector.h.
ClassicCommDetector::ClassicCommDetector | ( | SkipType | commDetectMethod, |
bool | showProgress, | ||
bool | fullSpeed, | ||
MythCommFlagPlayer * | player, | ||
QDateTime | startedAt_in, | ||
QDateTime | stopsAt_in, | ||
QDateTime | recordingStartedAt_in, | ||
QDateTime | recordingStopsAt_in | ||
) |
Definition at line 121 of file ClassicCommDetector.cpp.
|
overrideprotecteddefault |
|
virtual |
Definition at line 271 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Reimplemented in PrePostRollFlagger.
Definition at line 282 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Reimplemented in PrePostRollFlagger.
Definition at line 626 of file ClassicCommDetector.cpp.
Referenced by go().
|
override |
Definition at line 698 of file ClassicCommDetector.cpp.
|
overridevirtual |
Reimplemented from CommDetectorBase.
Definition at line 703 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Definition at line 2480 of file ClassicCommDetector.cpp.
void ClassicCommDetector::logoDetectorBreathe | ( | ) |
Definition at line 2475 of file ClassicCommDetector.cpp.
Referenced by ClassicLogoDetector::searchForLogo().
|
inlineprivate |
Definition at line 94 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList().
|
private |
Definition at line 991 of file ClassicCommDetector.cpp.
Referenced by Init().
|
private |
Definition at line 1004 of file ClassicCommDetector.cpp.
|
private |
Definition at line 1014 of file ClassicCommDetector.cpp.
|
private |
Definition at line 1024 of file ClassicCommDetector.cpp.
|
private |
Definition at line 1039 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
staticprivate |
Definition at line 1138 of file ClassicCommDetector.cpp.
Referenced by BuildAllMethodsCommList().
|
private |
Definition at line 1162 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 1861 of file ClassicCommDetector.cpp.
Referenced by GetBlankCommBreakMap(), GetBlankCommMap(), and GetCommercialBreakList().
|
private |
Definition at line 2020 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2121 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2135 of file ClassicCommDetector.cpp.
Referenced by BuildBlankFrameCommList().
|
private |
Definition at line 2200 of file ClassicCommDetector.cpp.
Referenced by Combine2Maps().
|
private |
Definition at line 2232 of file ClassicCommDetector.cpp.
|
staticprivate |
Definition at line 2259 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
staticprivate |
Definition at line 2324 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
private |
Definition at line 2365 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2453 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
protected |
Definition at line 164 of file ClassicCommDetector.cpp.
Referenced by go(), and PrePostRollFlagger::Init().
|
protected |
Definition at line 709 of file ClassicCommDetector.cpp.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), and go().
|
protected |
Definition at line 747 of file ClassicCommDetector.cpp.
Referenced by PrePostRollFlagger::findBreakInrange(), and go().
|
slot |
Definition at line 609 of file ClassicCommDetector.cpp.
Referenced by Init().
|
friend |
Definition at line 71 of file ClassicCommDetector.h.
Referenced by go().
|
private |
Definition at line 136 of file ClassicCommDetector.h.
Referenced by GetCommercialBreakList(), go(), Init(), and ProcessFrame().
|
private |
Definition at line 137 of file ClassicCommDetector.h.
Definition at line 138 of file ClassicCommDetector.h.
Referenced by go(), and requestCommBreakMapUpdate().
Definition at line 139 of file ClassicCommDetector.h.
Referenced by go(), and requestCommBreakMapUpdate().
|
private |
Definition at line 141 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 142 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), and ProcessFrame().
|
private |
Definition at line 143 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), and ProcessFrame().
|
private |
Definition at line 144 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), and ProcessFrame().
|
private |
Definition at line 145 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), and ProcessFrame().
|
private |
Definition at line 146 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), and ProcessFrame().
|
private |
Definition at line 147 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), and ClassicCommDetector().
|
private |
Definition at line 148 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), and ClassicCommDetector().
|
private |
Definition at line 149 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), and ClassicCommDetector().
|
private |
Definition at line 150 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), and ClassicCommDetector().
Definition at line 151 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), and ProcessFrame().
Definition at line 153 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), Init(), and ProcessFrame().
|
private |
Definition at line 155 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 156 of file ClassicCommDetector.h.
Referenced by Init(), PrintFullMap(), ProcessFrame(), and SetVideoParams().
|
private |
Definition at line 158 of file ClassicCommDetector.h.
Referenced by go(), Init(), and ProcessFrame().
|
private |
Definition at line 159 of file ClassicCommDetector.h.
Referenced by go(), Init(), and ProcessFrame().
|
private |
Definition at line 160 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 161 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 162 of file ClassicCommDetector.h.
|
private |
Definition at line 163 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), CleanupFrameInfo(), Init(), and ProcessFrame().
|
private |
Definition at line 164 of file ClassicCommDetector.h.
Referenced by Init(), ProcessFrame(), and SetVideoParams().
|
private |
Definition at line 167 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 169 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), go(), Init(), and ProcessFrame().
|
private |
Definition at line 170 of file ClassicCommDetector.h.
Referenced by deleteLater(), go(), and ProcessFrame().
|
private |
Definition at line 172 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), CleanupFrameInfo(), ClearAllMaps(), and ProcessFrame().
|
private |
Definition at line 173 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), ClearAllMaps(), GetBlankCommMap(), and MergeBlankCommList().
|
private |
Definition at line 174 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), ClearAllMaps(), GetBlankCommBreakMap(), GetCommercialBreakList(), and MergeBlankCommList().
|
private |
Definition at line 175 of file ClassicCommDetector.h.
Referenced by BuildSceneChangeCommList(), ClearAllMaps(), GetSceneChangeMap(), and sceneChangeDetectorHasNewInformation().
|
private |
Definition at line 176 of file ClassicCommDetector.h.
Referenced by BuildSceneChangeCommList(), ClearAllMaps(), and GetCommercialBreakList().
|
private |
Definition at line 177 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), ClearAllMaps(), and GetCommercialBreakList().
|
private |
Definition at line 178 of file ClassicCommDetector.h.
Referenced by BuildLogoCommList(), and GetCommercialBreakList().
Definition at line 180 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 181 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 183 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), Init(), and SetVideoParams().
|
private |
Definition at line 185 of file ClassicCommDetector.h.
Referenced by deleteLater(), Init(), and ProcessFrame().
|
protected |
Definition at line 188 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), go(), and Init().
|
protected |
Definition at line 189 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::go(), go(), and Init().
|
protected |
Definition at line 190 of file ClassicCommDetector.h.
Referenced by Init().
|
protected |
Definition at line 191 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), go(), and Init().
|
protected |
Definition at line 192 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::go(), go(), and Init().
Definition at line 193 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), PrePostRollFlagger::go(), go(), Init(), and ProcessFrame().
Definition at line 194 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), go(), and recordingFinished().
Definition at line 195 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), and ClassicLogoDetector::searchForLogo().
Definition at line 196 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), and go().
|
protected |
Definition at line 197 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), BuildBlankFrameCommList(), BuildLogoCommList(), BuildSceneChangeCommList(), CleanupFrameInfo(), Combine2Maps(), DumpMap(), PrePostRollFlagger::findBreakInrange(), FormatMsg(), PrePostRollFlagger::go(), go(), Init(), and MergeBlankCommList().
|
protected |
Definition at line 198 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), BuildSceneChangeCommList(), CleanupFrameInfo(), Combine2Maps(), FrameIsInBreakMap(), GetLogoCommBreakMap(), go(), Init(), and ProcessFrame().
|
protected |
Definition at line 199 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), PrePostRollFlagger::GetCommercialBreakList(), PrePostRollFlagger::go(), Init(), and ClassicLogoDetector::searchForLogo().
|
protected |
Definition at line 200 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), PrePostRollFlagger::GetCommercialBreakList(), PrePostRollFlagger::go(), and Init().
|
protected |
Definition at line 206 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), CleanupFrameInfo(), ClearAllMaps(), PrePostRollFlagger::findBreakInrange(), GetLogoCommBreakMap(), PrintFullMap(), ProcessFrame(), sceneChangeDetectorHasNewInformation(), and SetVideoParams().