MythTV  master
SceneChangeDetectorBase.h
Go to the documentation of this file.
1 #ifndef SCENECHANGEDETECTORBASE_H
2 #define SCENECHANGEDETECTORBASE_H
3 
4 #include <QObject>
5 #include "mythframe.h"
6 
7 class SceneChangeDetectorBase : public QObject
8 {
9  Q_OBJECT
10 
11  public:
12  SceneChangeDetectorBase(unsigned int w, unsigned int h) :
13  m_width(w), m_height(h) {}
14 
15  virtual void processFrame(MythVideoFrame* frame) = 0;
16 
17  signals:
18  void haveNewInformation(unsigned int framenum, bool scenechange,
19  float debugValue = 0.0);
20 
21  protected:
22  ~SceneChangeDetectorBase() override = default;
23 
24  protected:
25  unsigned int m_width, m_height;
26 };
27 
28 #endif // SCENECHANGEDETECTORBASE_H
29 
30 /* vim: set expandtab tabstop=4 shiftwidth=4: */
mythframe.h
SceneChangeDetectorBase::haveNewInformation
void haveNewInformation(unsigned int framenum, bool scenechange, float debugValue=0.0)
SceneChangeDetectorBase::~SceneChangeDetectorBase
~SceneChangeDetectorBase() override=default
SceneChangeDetectorBase::m_height
unsigned int m_height
Definition: SceneChangeDetectorBase.h:25
SceneChangeDetectorBase::processFrame
virtual void processFrame(MythVideoFrame *frame)=0
SceneChangeDetectorBase
Definition: SceneChangeDetectorBase.h:7
SceneChangeDetectorBase::SceneChangeDetectorBase
SceneChangeDetectorBase(unsigned int w, unsigned int h)
Definition: SceneChangeDetectorBase.h:12
SceneChangeDetectorBase::m_width
unsigned int m_width
Definition: SceneChangeDetectorBase.h:25
MythVideoFrame
Definition: mythframe.h:88