|
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 () |
Public Member Functions inherited from CommDetectorBase | |
| CommDetectorBase ()=default | |
| virtual bool | go ()=0 |
| void | stop () |
| void | pause () |
| void | resume () |
| virtual void | GetCommercialBreakList (frm_dir_map_t &comms)=0 |
| virtual void | recordingFinished (long long totalFileSize) |
| virtual void | requestCommBreakMapUpdate (void) |
| virtual void | PrintFullMap (std::ostream &out, const frm_dir_map_t *comm_breaks, bool verbose) const =0 |
Protected Member Functions | |
| ~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 | |
| 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 |
Protected Attributes inherited from CommDetectorBase | |
| 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 | |
Signals inherited from CommDetectorBase | |
| 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 |
|
private |
Definition at line 1153 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 1852 of file ClassicCommDetector.cpp.
Referenced by GetBlankCommBreakMap(), GetBlankCommMap(), and GetCommercialBreakList().
|
private |
Definition at line 2112 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2011 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 2356 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
private |
Definition at line 982 of file ClassicCommDetector.cpp.
Referenced by Init().
|
private |
Definition at line 1030 of file ClassicCommDetector.cpp.
Referenced by GetCommercialBreakList().
|
staticprivate |
Definition at line 2250 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
staticprivate |
Definition at line 2315 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
virtual |
Definition at line 267 of file ClassicCommDetector.cpp.
|
private |
Definition at line 2223 of file ClassicCommDetector.cpp.
|
inlineprivate |
Definition at line 94 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList().
|
private |
Definition at line 2191 of file ClassicCommDetector.cpp.
Referenced by Combine2Maps().
|
private |
Definition at line 1005 of file ClassicCommDetector.cpp.
|
private |
Definition at line 995 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Reimplemented in PrePostRollFlagger.
Definition at line 622 of file ClassicCommDetector.cpp.
Referenced by go().
|
private |
Definition at line 2444 of file ClassicCommDetector.cpp.
Referenced by BuildLogoCommList().
|
private |
Definition at line 1015 of file ClassicCommDetector.cpp.
|
overridevirtual |
Implements CommDetectorBase.
Reimplemented in PrePostRollFlagger.
Definition at line 278 of file ClassicCommDetector.cpp.
|
protected |
Definition at line 164 of file ClassicCommDetector.cpp.
Referenced by go(), and PrePostRollFlagger::Init().
| void ClassicCommDetector::logoDetectorBreathe | ( | ) |
Definition at line 2466 of file ClassicCommDetector.cpp.
Referenced by ClassicLogoDetector::searchForLogo().
|
private |
Definition at line 2126 of file ClassicCommDetector.cpp.
Referenced by BuildBlankFrameCommList().
|
overridevirtual |
Implements CommDetectorBase.
Definition at line 2471 of file ClassicCommDetector.cpp.
|
protected |
Definition at line 743 of file ClassicCommDetector.cpp.
Referenced by PrePostRollFlagger::findBreakInrange(), and go().
|
overridevirtual |
Reimplemented from CommDetectorBase.
Definition at line 694 of file ClassicCommDetector.cpp.
|
overridevirtual |
Reimplemented from CommDetectorBase.
Definition at line 699 of file ClassicCommDetector.cpp.
|
slot |
Definition at line 605 of file ClassicCommDetector.cpp.
Referenced by Init().
|
protected |
Definition at line 705 of file ClassicCommDetector.cpp.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), and PrePostRollFlagger::go().
|
staticprivate |
Definition at line 1129 of file ClassicCommDetector.cpp.
Referenced by BuildAllMethodsCommList().
|
friend |
Definition at line 71 of file ClassicCommDetector.h.
Referenced by go().
Definition at line 193 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), go(), PrePostRollFlagger::go(), Init(), and ProcessFrame().
|
private |
Definition at line 174 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), ClearAllMaps(), GetBlankCommBreakMap(), GetCommercialBreakList(), and MergeBlankCommList().
|
private |
Definition at line 173 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), ClearAllMaps(), GetBlankCommMap(), and MergeBlankCommList().
|
private |
Definition at line 163 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), CleanupFrameInfo(), Init(), and ProcessFrame().
|
private |
Definition at line 172 of file ClassicCommDetector.h.
Referenced by BuildBlankFrameCommList(), CleanupFrameInfo(), ClearAllMaps(), and ProcessFrame().
Definition at line 162 of file ClassicCommDetector.h.
|
private |
Definition at line 177 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), ClearAllMaps(), and GetCommercialBreakList().
Definition at line 138 of file ClassicCommDetector.h.
Referenced by go(), and requestCommBreakMapUpdate().
Definition at line 151 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 141 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 145 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 146 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 147 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), and ClassicCommDetector().
|
private |
Definition at line 150 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), and ClassicCommDetector().
|
private |
Definition at line 136 of file ClassicCommDetector.h.
Referenced by GetCommercialBreakList(), go(), Init(), and ProcessFrame().
|
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 156 of file ClassicCommDetector.h.
Referenced by Init(), PrintFullMap(), ProcessFrame(), and SetVideoParams().
|
private |
Definition at line 164 of file ClassicCommDetector.h.
Referenced by Init(), ProcessFrame(), and SetVideoParams().
Definition at line 183 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), Init(), and SetVideoParams().
|
protected |
Definition at line 197 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), BuildBlankFrameCommList(), BuildLogoCommList(), BuildSceneChangeCommList(), CleanupFrameInfo(), Combine2Maps(), DumpMap(), PrePostRollFlagger::findBreakInrange(), FormatMsg(), go(), PrePostRollFlagger::go(), Init(), and MergeBlankCommList().
|
protected |
Definition at line 206 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), CleanupFrameInfo(), ClearAllMaps(), PrePostRollFlagger::findBreakInrange(), GetLogoCommBreakMap(), PrintFullMap(), ProcessFrame(), sceneChangeDetectorHasNewInformation(), and SetVideoParams().
Definition at line 180 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
protected |
Definition at line 198 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), BuildSceneChangeCommList(), CleanupFrameInfo(), Combine2Maps(), FrameIsInBreakMap(), GetLogoCommBreakMap(), go(), Init(), and ProcessFrame().
Definition at line 195 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), and ClassicLogoDetector::searchForLogo().
|
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 155 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 137 of file ClassicCommDetector.h.
|
private |
Definition at line 178 of file ClassicCommDetector.h.
Referenced by BuildLogoCommList(), and GetCommercialBreakList().
|
private |
Definition at line 170 of file ClassicCommDetector.h.
Referenced by deleteLater(), go(), and ProcessFrame().
Definition at line 169 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), go(), Init(), and ProcessFrame().
|
protected |
Definition at line 188 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), PrePostRollFlagger::go(), and Init().
|
protected |
Definition at line 200 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), PrePostRollFlagger::GetCommercialBreakList(), PrePostRollFlagger::go(), and Init().
|
protected |
Definition at line 199 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), PrePostRollFlagger::GetCommercialBreakList(), PrePostRollFlagger::go(), Init(), and ClassicLogoDetector::searchForLogo().
|
protected |
Definition at line 191 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), PrePostRollFlagger::go(), and Init().
|
protected |
Definition at line 192 of file ClassicCommDetector.h.
Referenced by go(), PrePostRollFlagger::go(), and Init().
|
private |
Definition at line 185 of file ClassicCommDetector.h.
Referenced by deleteLater(), Init(), and ProcessFrame().
|
private |
Definition at line 176 of file ClassicCommDetector.h.
Referenced by BuildSceneChangeCommList(), ClearAllMaps(), and GetCommercialBreakList().
|
private |
Definition at line 175 of file ClassicCommDetector.h.
Referenced by BuildSceneChangeCommList(), ClearAllMaps(), GetSceneChangeMap(), and sceneChangeDetectorHasNewInformation().
Definition at line 139 of file ClassicCommDetector.h.
Referenced by go(), and requestCommBreakMapUpdate().
Definition at line 196 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), and PrePostRollFlagger::go().
|
protected |
Definition at line 189 of file ClassicCommDetector.h.
Referenced by go(), PrePostRollFlagger::go(), and Init().
Definition at line 181 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 194 of file ClassicCommDetector.h.
Referenced by PrePostRollFlagger::findBreakInrange(), go(), PrePostRollFlagger::go(), and recordingFinished().
|
protected |
Definition at line 190 of file ClassicCommDetector.h.
Referenced by Init().
|
private |
Definition at line 167 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
Definition at line 153 of file ClassicCommDetector.h.
Referenced by BuildAllMethodsCommList(), Init(), and ProcessFrame().
|
private |
Definition at line 161 of file ClassicCommDetector.h.
Referenced by Init(), and ProcessFrame().
|
private |
Definition at line 158 of file ClassicCommDetector.h.
Referenced by go(), Init(), and ProcessFrame().