MythTV
master
|
#include <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 () |
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 46 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 120 of file ClassicCommDetector.cpp.
|
overrideprotecteddefault |
|
virtual |
Definition at line 270 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Reimplemented in PrePostRollFlagger.
Definition at line 281 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Reimplemented in PrePostRollFlagger.
Definition at line 624 of file ClassicCommDetector.cpp.
Referenced by go().
|
overridevirtual |
Reimplemented from CommDetectorBase.
Definition at line 696 of file ClassicCommDetector.cpp.
|
overridevirtual |
Reimplemented from CommDetectorBase.
Definition at line 703 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Definition at line 2490 of file ClassicCommDetector.cpp.
void ClassicCommDetector::logoDetectorBreathe | ( | ) |
Definition at line 2485 of file ClassicCommDetector.cpp.
Referenced by ClassicLogoDetector::searchForLogo().
|
inlineprivate |
Definition at line 93 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList().
|
private |
Definition at line 998 of file ClassicCommDetector.cpp.
Referenced by Init().
|
private |
Definition at line 1011 of file ClassicCommDetector.cpp.
|
private |
Definition at line 1021 of file ClassicCommDetector.cpp.
|
private |
Definition at line 1031 of file ClassicCommDetector.cpp.
|
private |
Definition at line 1046 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
staticprivate |
Definition at line 1145 of file ClassicCommDetector.cpp.
Referenced by BuildAllMethodsCommList().
|
private |
Definition at line 1169 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 1870 of file ClassicCommDetector.cpp.
Referenced by GetBlankCommBreakMap(), GetBlankCommMap(), and GetCommercialBreakList().
|
private |
Definition at line 2030 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2131 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2145 of file ClassicCommDetector.cpp.
Referenced by BuildBlankFrameCommList().
|
private |
Definition at line 2210 of file ClassicCommDetector.cpp.
Referenced by Combine2Maps().
|
private |
Definition at line 2242 of file ClassicCommDetector.cpp.
|
staticprivate |
Definition at line 2269 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
staticprivate |
Definition at line 2334 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
private |
Definition at line 2375 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2463 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
protected |
Definition at line 163 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 607 of file ClassicCommDetector.cpp.
Referenced by Init().
|
friend |
Definition at line 70 of file ClassicCommDetector.h.
Referenced by go().
|
private |
Definition at line 135 of file ClassicCommDetector.h.
Referenced by GetCommercialBreakList(), go(), Init(), and ProcessFrame().
|
private |
Definition at line 136 of file ClassicCommDetector.h.
Definition at line 137 of file ClassicCommDetector.h.
Referenced by go(), and requestCommBreakMapUpdate().
Definition at line 138 of file ClassicCommDetector.h.
Referenced by go(), and requestCommBreakMapUpdate().
|
private |
Definition at line 140 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 141 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), 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 BuildAllMethodsCommList(), and ClassicCommDetector().
|
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().
Definition at line 150 of file ClassicCommDetector.h.
Referenced by ClassicCommDetector(), and ProcessFrame().
Definition at line 152 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), Init(), and ProcessFrame().
|
private |
Definition at line 154 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 155 of file ClassicCommDetector.h.
Referenced by Init(), PrintFullMap(), ProcessFrame(), and SetVideoParams().
|
private |
Definition at line 157 of file ClassicCommDetector.h.
Referenced by go(), Init(), and ProcessFrame().
|
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 Init(), and ProcessFrame().
|
private |
Definition at line 160 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 161 of file ClassicCommDetector.h.
|
private |
Definition at line 162 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), CleanupFrameInfo(), Init(), and ProcessFrame().
|
private |
Definition at line 163 of file ClassicCommDetector.h.
Referenced by Init(), ProcessFrame(), and SetVideoParams().
|
private |
Definition at line 166 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 168 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), go(), Init(), and ProcessFrame().
|
private |
Definition at line 169 of file ClassicCommDetector.h.
Referenced by deleteLater(), go(), and ProcessFrame().
|
private |
Definition at line 171 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), CleanupFrameInfo(), ClearAllMaps(), and ProcessFrame().
|
private |
Definition at line 172 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), ClearAllMaps(), GetBlankCommMap(), and MergeBlankCommList().
|
private |
Definition at line 173 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), ClearAllMaps(), GetBlankCommBreakMap(), GetCommercialBreakList(), and MergeBlankCommList().
|
private |
Definition at line 174 of file ClassicCommDetector.h.
Referenced by BuildSceneChangeCommList(), ClearAllMaps(), GetSceneChangeMap(), and sceneChangeDetectorHasNewInformation().
|
private |
Definition at line 175 of file ClassicCommDetector.h.
Referenced by BuildSceneChangeCommList(), ClearAllMaps(), and GetCommercialBreakList().
|
private |
Definition at line 176 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), ClearAllMaps(), and GetCommercialBreakList().
|
private |
Definition at line 177 of file ClassicCommDetector.h.
Referenced by BuildLogoCommList(), and GetCommercialBreakList().
Definition at line 179 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 180 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 182 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), Init(), and SetVideoParams().
|
private |
Definition at line 184 of file ClassicCommDetector.h.
Referenced by deleteLater(), Init(), and ProcessFrame().
|
protected |
Definition at line 187 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), go(), and Init().
|
protected |
Definition at line 188 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::go(), go(), and Init().
|
protected |
Definition at line 189 of file ClassicCommDetector.h.
Referenced by Init().
|
protected |
Definition at line 190 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), go(), and Init().
|
protected |
Definition at line 191 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::go(), go(), and Init().
Definition at line 192 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), PrePostRollFlagger::go(), go(), Init(), and ProcessFrame().
Definition at line 193 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), go(), and recordingFinished().
Definition at line 194 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), and ClassicLogoDetector::searchForLogo().
Definition at line 195 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), PrePostRollFlagger::go(), and go().
|
protected |
Definition at line 196 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 197 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), BuildSceneChangeCommList(), CleanupFrameInfo(), Combine2Maps(), FrameIsInBreakMap(), GetLogoCommBreakMap(), go(), Init(), and ProcessFrame().
|
protected |
Definition at line 198 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), PrePostRollFlagger::GetCommercialBreakList(), PrePostRollFlagger::go(), Init(), and ClassicLogoDetector::searchForLogo().
|
protected |
Definition at line 199 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), PrePostRollFlagger::GetCommercialBreakList(), PrePostRollFlagger::go(), and Init().
|
protected |
Definition at line 205 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), CleanupFrameInfo(), ClearAllMaps(), PrePostRollFlagger::findBreakInrange(), GetLogoCommBreakMap(), PrintFullMap(), ProcessFrame(), sceneChangeDetectorHasNewInformation(), and SetVideoParams().