MythTV master
SceneChangeDetectorBase.h
Go to the documentation of this file.
1#ifndef SCENECHANGEDETECTORBASE_H
2#define SCENECHANGEDETECTORBASE_H
3
4#include <QObject>
6
7class 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: */
~SceneChangeDetectorBase() override=default
void haveNewInformation(unsigned int framenum, bool scenechange, float debugValue=0.0)
virtual void processFrame(MythVideoFrame *frame)=0
SceneChangeDetectorBase(unsigned int w, unsigned int h)